Module 04 · Inventory and Cost Management

FIFO vs Average Costing: What's the Difference? (With Example)

Same purchases, same sale, two different numbers on your income statement — here's exactly why, worked through in dollars.

6 min readLesson 3 of 13 in this moduleUpdated 2026-11-17

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.

Why FIFO shows more profit here

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.

Doing this in Reyuko

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.

  1. Under FIFO, what is cost of goods sold?
  2. Under FIFO, what is ending inventory value?
  3. Under average costing, what is the average cost per unit?
  4. 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.

Keep going: the module Inventory Accounting and COGS in Practice covers when FIFO vs average cost actually matters for a growing retailer.

Frequently asked questions

What is the difference between FIFO and average cost method?

FIFO (first-in, first-out) assumes the oldest inventory costs are used up first, so cost of goods sold reflects older prices and ending inventory reflects newer ones. Average costing blends all purchase costs into one running average, so every unit sold or left in stock is valued at that same blended rate.

Does FIFO or average cost method give higher profit?

When purchase prices are rising, FIFO usually shows higher profit because it matches older, cheaper costs against current sales revenue. Average costing smooths that effect out, giving a profit figure between FIFO and a strict last-in-first-out approach. When prices are falling, the effect reverses.

How do you calculate the weighted average cost of inventory?

Add the total cost of all units available for sale (opening inventory value plus all purchases), then divide by the total number of units available. That per-unit average is applied to both cost of goods sold and ending inventory value until new purchases recalculate it again.

Which is better, FIFO or average costing?

Neither is universally better — FIFO tends to fit businesses with perishable or fast-moving stock where costs actually flow in a first-in-first-out order, while average costing suits businesses with mixed-batch or fungible stock where tracking exact purchase order is impractical. The right choice depends on the business, not the method's reputation.

How does FIFO affect ending inventory value?

Under FIFO, the units assumed to remain in stock are the most recently purchased ones. So when purchase prices are rising, FIFO ending inventory is valued closer to current replacement cost, typically higher than the ending inventory value average costing would report for the same stock.

Can a small business switch between FIFO and average costing?

Most inventory and accounting software lets a business select a costing method, and switching is technically possible, but it should be done deliberately and consistently rather than changed often. Frequent switching distorts cost of goods sold trends and can complicate tax reporting in some jurisdictions.

When does FIFO costing actually save a growing retailer money over average costing?

FIFO does not change what you pay for stock, only how cost is assigned to sales, so any saving is indirect. When purchase prices are falling, FIFO charges the older, higher costs to sales first and reports lower profit, which can lower tax in that period. When prices are rising, FIFO reports higher profit than average costing, so it usually does not save tax; its advantage is that closing stock is valued close to current cost, which gives a more realistic balance sheet and margin signals while the business grows. Check your local tax rules, because some countries restrict which costing method you may use.

Let costing run itself, per product

Reyuko applies FIFO or average costing automatically, per product, so cost of goods sold is calculated consistently every time it sells.

Download Reyuko freeSee what's included