Quick answer
Inventory accounting divides the cost of goods available for sale between goods still on hand and goods already sold. The amount assigned to unsold goods remains an asset; the amount assigned to sold goods is recognized as Cost of Goods Sold (COGS). FIFO and weighted average are two common ways to make that assignment.
A goods sale has two accounting effects: the selling price becomes revenue, and the assigned inventory cost becomes Cost of Goods Sold.
Cost flow from inventory to expense
Inventory is an asset made up of goods a business holds for sale, goods being produced for sale, and materials that will be used to produce them.
Cost of Goods Sold (COGS) is the expense representing the cost assigned to goods sold during a period. It may also be called cost of sales, although that term can be used more broadly. Until goods are sold, their cost normally remains in Inventory on the balance sheet. When they are sold, the related cost moves from Inventory to COGS on the income statement.
Components of inventory cost
Inventory cost is more than the supplier’s listed price. For a retailer, it normally begins with the purchase price, reduced by trade discounts and similar reductions, and includes acquisition, transport, and handling costs needed to bring the goods to their present location and condition. For a manufacturer, inventory cost also includes the production costs needed to turn raw materials into finished goods.
Costs that do not help bring the goods to their present location and condition are expensed instead: selling costs, general administration, storage after the goods are ready, and abnormal waste.
Effects of inventory cost allocation
Inventory cost remains an asset until the goods are sold or written down. Interchangeable units are ordinarily indistinguishable in use. When these goods have different costs, inventory accounting must also determine how much of the available cost belongs to the goods sold and how much remains in ending inventory.
Assigning too much cost to ending Inventory overstates assets and understates COGS; assigning too little has the opposite effect. Because this period’s ending inventory is next period’s opening inventory, an uncorrected error reverses through the following period’s COGS if that period’s ending inventory is measured correctly. Both periods’ profit figures are then wrong, but the second balance sheet is right. The allocation also changes gross profit:
Gross Profit = Sales Revenue − COGS
Gross profit is the amount left after subtracting the cost of the goods sold. It is not final profit: operating expenses and any other relevant income or expenses still have to be considered.
Perpetual and periodic inventory systems
A perpetual system updates the Inventory account after purchases and sales, so recorded inventory and Cost of Goods Sold (COGS) are updated through the period. Physical counts and adjustments are still needed for shrinkage, damage, and write-downs. A periodic system instead accumulates purchases separately and determines COGS at period end from the count. A simplified form is:
COGS = Beginning Inventory + Net Purchases and Included Acquisition Costs − Ending Inventory
The system and the cost formula answer different questions. Perpetual versus periodic determines when the records are updated. FIFO, weighted average, or specific identification determines which costs are assigned to units sold and units remaining. A business therefore does not choose “perpetual instead of FIFO”; it identifies both the recording system and the applicable cost formula.
Scroll horizontally to see all columns.
| Event | Perpetual system | Periodic system |
|---|---|---|
| Purchase | Updates Inventory when the purchase is recorded. | Accumulates purchases separately during the period. |
| Sale | Records revenue and the related COGS/inventory reduction. | Records the sale; COGS is not finalized with each sale. |
| Period end | Uses the physical count to verify and adjust the records. | Uses the count and cost formula to determine ending Inventory and COGS. |
Cost formulas
Specific identification follows the actual cost of a particular item. FIFO and weighted average instead use a cost formula to assign costs among interchangeable units. IAS 2 and ASPE Section 3031 use specific identification for non-interchangeable items and specified projects and FIFO or weighted average for other inventory of similar nature and use. Neither framework permits last-in, first-out (LIFO) as a cost formula.
- Specific identification — traces an item’s own cost when goods are not ordinarily interchangeable or are segregated for a specific project (for example, custom equipment or a particular real estate lot).
- First-in, first-out (FIFO) — assumes the oldest costs are the first expensed to COGS, leaving the most recent costs in ending inventory.
- Weighted average cost — divide the cost of units available by the number of units available. Recompute this average after each purchase in a perpetual system, or for the period in a periodic system. Apply the relevant average to units sold and units remaining.
When unit costs rise consistently, FIFO will typically assign older, lower costs to COGS and newer, higher costs to ending inventory. Compared with weighted average for the same purchases and sales, that usually produces lower COGS and higher gross profit. Actual results depend on the cost pattern and transaction sequence.
Lower of cost and net realizable value
A cost formula first determines the cost assigned to the inventory that remains. At the reporting date, that cost is then compared with the amount expected to be recovered from selling the inventory. Under IAS 2, inventory is measured at the lower of cost and net realizable value (NRV). NRV is an estimate of the selling price less the costs still needed to complete and sell the goods.
If NRV falls below cost, the inventory is written down and the difference is recognized as an expense. This measurement applies to the inventory still on hand at the reporting date; it does not revise the cost already assigned to goods sold. Under IFRS, IAS 2 requires a later increase in NRV to reverse the earlier write-down only up to the amount originally written down; the revised carrying amount still cannot exceed cost. ASPE Section 3031 reaches the same ceiling when changed economic circumstances support a reversal. Under both frameworks, the reversal reduces inventory expense in the later period rather than creating a carrying amount above cost.
Follow one retailer purchase and sale
Compare FIFO and weighted average
A retailer has 80 opening units at $10 and buys 100 more on account at $12 each, for 180 units costing $2,000 in total. It then sells 120 units on credit for $2,400. Holding the facts constant shows that the cost formula changes the split between COGS and the 60 units that remain—it does not change the selling price or the total $2,000 cost available for allocation.
Scroll horizontally to see all columns.
| Formula | Calculation | COGS | Ending inventory | Gross profit |
|---|---|---|---|---|
| FIFO | 80 × $10, then 40 × $12 | $1,280.00 | $720.00 | $1,120.00 |
| Weighted average | $2,000 ÷ 180 = $11.1111 per unit | $1,333.33 | $666.67 | $1,066.67 |
Under these rising costs, FIFO assigns the older $10 units to COGS first, so it reports lower COGS and higher ending inventory than weighted average. The weighted-average amounts include rounding; COGS plus ending inventory still equals the same $2,000 cost pool.
Purchase and sale under a perpetual system
A perpetual system records the purchase as inventory immediately. The later sale requires two entries: one for the amount charged to the customer and another for the cost leaving inventory.
Scroll horizontally to see all columns.
| Account | Debit | Credit |
|---|---|---|
| Inventory | 1,200 | |
| Accounts Payable | 1,200 |
The purchase creates an asset because these goods remain available for a future sale; it does not create COGS yet.
Scroll horizontally to see all columns.
| Account | Debit | Credit |
|---|---|---|
| Accounts Receivable | 2,400 | |
| Sales Revenue | 2,400 |
This entry records the selling price and the related revenue.
Scroll horizontally to see all columns.
| Account | Debit | Credit |
|---|---|---|
| Cost of Goods Sold | 1,280 | |
| Inventory | 1,280 |
This separate entry moves the FIFO cost of the 120 units from the balance sheet to the income statement.
The $2,400 selling price and $1,280 inventory cost measure different parts of the transaction. Their difference is $1,120 of gross profit. Ending inventory is $720; it is a separate asset amount, not another measure of profit.
Apply lower of cost and NRV at the reporting date
Assume the 60 units remaining under FIFO have an NRV of $650 at the reporting date. Because $650 is below their $720 cost, the inventory is written down by $70.
Scroll horizontally to see all columns.
| Account | Debit | Credit |
|---|---|---|
| Inventory Write-Down Expense | 70 | |
| Inventory | 70 |
This simplified direct write-down reduces ending Inventory from $720 to $650 and reduces profit by $70. Account names and whether an allowance is used can depend on the entity’s presentation and applicable requirements.
Manufacturing Inventory Cost Flow
Manufacturing inventory moves through raw materials, work in progress, and finished goods. Qualifying production costs remain in inventory until the finished goods are sold or written down. The full lifecycle is explained in Manufacturing Inventory Cost Flow.
Common errors
- Treating the selling price as COGS. Revenue records what the customer is charged; COGS records the cost assigned to the goods sold.
- Assuming a cost formula must describe the physical movement of the goods. FIFO assigns costs; it does not necessarily prove which physical unit was delivered.
- Assuming a perpetual system removes the need for physical counts and adjustments for shrinkage, damage, or errors.
- Treating an NRV write-down as a change to the cost already assigned to goods sold. It adjusts the inventory that remains at the reporting date.