FIFO and average costing are two different rules, built into most inventory management software, for deciding which purchase price to use when stock is sold. FIFO (first-in, first-out) assumes the oldest purchase costs are used up first. Average costing blends every purchase into one running per-unit rate and applies that same rate to every sale. Same physical stock, same sale — but the two methods can report different cost of goods sold and different ending inventory value.
In short: FIFO uses the oldest purchase price for cost of goods sold and the newest price for what's left in stock. Average costing blends every purchase into one rate and applies it to both. The worked example below shows exactly how many dollars that difference comes to.
Key takeaways
- FIFO assumes the oldest inventory costs are sold first, so cost of goods sold uses earlier prices and ending inventory reflects the most recent purchase costs.
- Average costing blends all purchase costs into one running per-unit rate, applied to every sale and to ending inventory alike.
- When purchase prices are rising, FIFO reports lower cost of goods sold and higher profit than average costing for the same period.
- The costing method doesn't change how much cash the business actually made — it changes how that cost is split between this period's COGS and the inventory value carried forward.
- Both methods must be applied consistently, not switched period to period, or your cost of goods sold trend stops meaning anything.
What Is FIFO Costing?
FIFO stands for first-in, first-out. When you sell a unit, FIFO assumes it came from your oldest purchase batch still in stock — the first units in are treated as the first units out. Once that oldest batch is fully used up, the next-oldest batch takes over.
This isn't necessarily about which physical unit leaves the shelf — it's an accounting assumption about which cost to assign to the sale. For many businesses, especially those with perishable or rotated stock, it also happens to match how goods actually move.
What Is Average Costing?
Average costing takes a different approach: instead of tracking which specific purchase batch a sale came from, it blends the cost of every unit currently available into one running average, recalculated each time new stock comes in. Every sale, and whatever's left in stock, is valued at that same blended rate — no batch-by-batch tracking required.
A Worked Example: Same Purchases, Two Methods
Harbor Supply Co. buys the same product three times in a month, at rising prices each time — each a separate purchase order recorded as it arrives:
| Purchase | Units | Unit cost | Total cost |
|---|---|---|---|
| Jan 5 | 100 | $10.00 | $1,000 |
| Jan 15 | 100 | $12.00 | $1,200 |
| Jan 25 | 100 | $14.00 | $1,400 |
| Total available | 300 | $3,600 |
On Jan 30, Harbor Supply sells 200 units at $20 each ($4,000 revenue). Here's how the cost of those 200 units — and the 100 left over — differs by method.
FIFO calculation
FIFO draws from the oldest batch first: all 100 units from Jan 5, then 100 of the 100 units from Jan 15.
(100 × $10.00) + (100 × $12.00) = $1,000 + $1,200 = $2,200
FIFO cost of goods sold
Ending inventory is whatever's left: the 100 units from the Jan 25 batch, never touched.
100 × $14.00 = $1,400
FIFO ending inventory
Check: $2,200 + $1,400 = $3,600 — matches total available cost.
Average costing calculation
Average cost per unit = total cost ÷ total units = $3,600 ÷ 300 = $12.00 per unit, applied to everything.
200 × $12.00 = $2,400
Average costing — cost of goods sold
100 × $12.00 = $1,200
Average costing — ending inventory
Check: $2,400 + $1,200 = $3,600 — also matches.
The two results, side by side
| FIFO | Average costing | Difference | |
|---|---|---|---|
| Cost of goods sold | $2,200 | $2,400 | $200 lower under FIFO |
| Ending inventory | $1,400 | $1,200 | $200 higher under FIFO |
| Gross profit ($4,000 revenue) | $1,800 | $1,600 | $200 higher under FIFO |
Same 300 units purchased, same 200 units sold, same $4,000 of revenue — but FIFO reports $200 more gross profit this period than average costing does, purely from which purchase prices got assigned to the sale.
Prices were rising across the three purchases. FIFO matches the oldest, cheapest costs against this period's revenue, while average costing blends in the newer, pricier stock too. When prices are falling instead, the effect reverses — FIFO reports lower profit than average costing.
What Doesn't Change: Total Cost Over Time
It's tempting to read the $200 gap above as one method being more "generous" than the other. It isn't — no cash changed hands differently, and no extra profit was created. Add up cost of goods sold across every period until all 300 units are eventually sold, under either method, and the total converges on the same $3,600. The only thing that differs is when each dollar of cost shows up: FIFO recognizes older, cheaper costs sooner; average costing spreads the blend more evenly. The choice affects the shape of your reported profit over time, not the total amount of it.
That's exactly why the method still matters for decisions made period by period — pricing, tax timing, and comparing this month to last all depend on the number your income statement shows right now, even though the long-run total is unaffected.
Reyuko lets you set the costing method — Average or FIFO — per product, on the product record itself, rather than picking one method for the whole business. Every purchase, sale, and transfer updates a batch-level stock movement ledger behind the scenes, which is what makes an accurate FIFO calculation possible without you tracking purchase batches by hand.
Whichever method a product uses, cost of goods sold and ending inventory value are calculated the same way, consistently, every time that product sells — matching the mechanics worked through above. This costing engine is part of Reyuko's free edition, available from the first product you set up, not gated behind a paid plan.
Try it yourself
Show the exercise
A shop buys the same item twice: 50 units at $6.00, then 50 units at $8.00. It then sells 60 units at $15.00 each.
- Under FIFO, what is cost of goods sold?
- Under FIFO, what is ending inventory value?
- Under average costing, what is the average cost per unit?
- Under average costing, what is cost of goods sold?
Answers: FIFO COGS = (50 × $6.00) + (10 × $8.00) = $300 + $80 = $380. FIFO ending inventory = 40 × $8.00 = $320. Average cost per unit = ($300 + $400) ÷ 100 = $7.00. Average costing COGS = 60 × $7.00 = $420.
Whichever method you use, the ending inventory figure above is only as trustworthy as the stock count behind it — a stock opname is how you confirm the book quantity actually matches what's on the shelf. Unfamiliar terms along the way are covered in the glossary of inventory and costing terms.
What This Means for Choosing a Method
This article showed the mechanics; it doesn't tell you which method fits your business. That depends on how your prices actually move, whether your stock is perishable, and what your reporting needs to show — covered in how to choose between FIFO and average costing. Either way, the resulting number flows straight into your cost of goods sold and, from there, your gross profit — so getting the mechanics right, as above, matters regardless of which method you pick.
Reyuko