A FIFO vs weighted average example
A retailer's inventory movements for the year, in date order:
| Lot | Units | Unit cost | Cost |
|---|---|---|---|
| Opening inventory | 100 | 10.00 | 1,000 |
| Purchase 1 | 200 | 11.00 | 2,200 |
| Purchase 2 | 300 | 12.00 | 3,600 |
| Purchase 3 | 100 | 13.00 | 1,300 |
| Available for sale | 700 | 8,100 |
It sells 450 units at 20 each, revenue of 9,000, leaving 250 units.
How does FIFO work?
The 450 units sold are taken from the oldest lots: 100 at 10, 200 at 11 and 150 at 12, a cost of sales of 5,000. The 250 units left are the newest: 150 at 12 and 100 at 13, so closing inventory is 3,100. FIFO keeps inventory close to current replacement cost on the balance sheet.
How does weighted average cost work?
The average cost of all units available is 8,100 / 700 = 11.5714. Cost of sales is 450 x 11.5714 = 5,207.14, and closing inventory 2,892.86. Under a perpetual system the average is recalculated after each purchase, which can give slightly different figures; the method shown is the periodic average.
How would LIFO compare?
LIFO, allowed only under US GAAP, takes the newest units first: 100 at 13, 300 at 12 and 50 at 11, a cost of sales of 5,450 and closing inventory of 2,650. With rising prices it gives the lowest profit and the most out-of-date inventory value, which is why IFRS removed it. See IAS 2 vs ASC 330.
What happens when prices fall?
The effect reverses. With falling purchase prices, FIFO charges the older, dearer units to cost of sales, so it reports lower profit than weighted average, and closing inventory at the newer, cheaper costs. Falling prices also make net realisable value write-downs more likely, whichever formula is used.
Periodic or perpetual weighted average?
The periodic method shown calculates one average for the whole period. A perpetual system recalculates the average after every purchase and charges each sale at the average at that moment. If the retailer here sold 200 units before buying the third lot, those units would be costed at the average of the first two lots, 10.67, not the period average of 11.57, so the results differ slightly. Most modern inventory systems use the perpetual method; both are acceptable if applied consistently.
How do you choose between FIFO and weighted average?
- FIFO suits perishable or dated goods, where the oldest stock really is sold first, and businesses that want inventory at recent costs.
- Weighted average suits goods that are mixed together, such as fuel, grain or chemicals in tanks, and smooths out price volatility.
- Both are acceptable; the choice should reflect the business and must be applied consistently to inventories of a similar nature and use, year after year.
Can a company change cost formula?
Only if the change results in reliable and more relevant information. It is a change in accounting policy under IAS 8, applied retrospectively with comparatives restated, not a change in estimate.
Can you compare them in Excel?
Yes. The Inventory costing comparison (Excel) takes up to ten lots and the units sold, and shows cost of sales, closing inventory and gross profit under FIFO, weighted average and LIFO side by side, with a net realisable value test. See also IAS 2 explained.
Need help applying the standards?
Our Chartered Accountants help finance teams and students apply IFRS and US GAAP to real transactions.
Questions people ask
What is the difference between FIFO and weighted average?
FIFO assumes the oldest units are sold first; weighted average assigns the average cost of all units available to both cost of sales and closing inventory.
Which gives higher profit, FIFO or weighted average?
When prices are rising, FIFO gives lower cost of sales and higher profit.
Can a company use both FIFO and weighted average?
Yes, for inventories of a different nature or use, but the same formula must be used for inventories of a similar nature and use.
Is changing from weighted average to FIFO a change in estimate?
No. It is a change in accounting policy, applied retrospectively.
Sources
Every fee, date and rule on this page was taken from these official and primary sources.
Rules and fees change. If you are reading this long after October 4, 2026, confirm the figures with the source before you rely on them.
Related guides
More in IAS 2
This guide is general information. It is not tax or legal advice for your situation.