Inventory Valuation Calculator (FIFO / LIFO / Average)
Compare FIFO, LIFO, and Weighted Average on the same transactions, side by side
Costing method
Transactions
| Date | Type | Quantity | Unit cost | |
|---|---|---|---|---|
| — | ||||
| — | ||||
| — |
Ending units
Ending inventory value
Cost of goods sold
Side-by-side comparison
Same transactions, three methods. Under rising prices FIFO shows the highest ending value, LIFO the lowest.
FIFO
1,200SAR
Cost of goods sold: 2,500 SAR
Weighted Average
1,025.45SAR
Cost of goods sold: 2,674.55 SAR
LIFO
800SAR
Cost of goods sold: 2,900 SAR
Transaction trace
| Date | Type | Quantity | Unit cost | Running units | Running value | COGS impact |
|---|---|---|---|---|---|---|
| 1/5/2026 | Purchase | 100 | 10 | 100 | 1,000 | — |
| 2/10/2026 | Purchase | 100 | 12 | 200 | 2,200 | — |
| 3/15/2026 | Sale | 80 | 10 | 120 | 1,400 | 800 |
| 4/20/2026 | Purchase | 100 | 15 | 220 | 2,900 | — |
| 5/5/2026 | Sale | 90 | 11.56 | 130 | 1,860 | 1,040 |
| 5/25/2026 | Sale | 50 | 13.2 | 80 | 1,200 | 660 |
Do this every day? Snad automates it for you.
- Full accounting + ZATCA + invoicing in one system
- Calculations happen automatically — no separate calculators needed
- Free 30-day trial · no credit card required
How does it work?
Three accounting methods can assign different costs to the same units sold — and produce different ending inventory values and COGS. FIFO assumes oldest stock leaves first; LIFO assumes newest leaves first; Weighted Average recomputes a running average after each purchase. Under rising prices, FIFO shows the highest profit and ending inventory; LIFO shows the lowest. Under IFRS (and SOCPA in Saudi Arabia), LIFO is not permitted — but this tool models it for teaching and US-GAAP audiences.
How each method draws cost
All three accept the same purchases + sales feed. They differ only in which layer (or average) each sale pulls from:
FIFO: sale draws from oldest layer first | LIFO: sale draws from newest layer first | WAvg: sale draws at running average cost = total value ÷ total units
Worked example
Buy 100 @ 10, buy 100 @ 12, sell 80, buy 100 @ 15, sell 90, sell 50 — rising prices:
- Total purchased: 300 units for 3,700 SAR
- Total sold: 220 units; ending units across all methods = 80
- FIFO: ending inventory = 80 @ 15 = 1,200 SAR; COGS = 2,500 SAR
- LIFO: ending inventory = 80 @ 10 = 800 SAR; COGS = 2,900 SAR
- WAvg: ending value ≈ 1,000 SAR; COGS ≈ 2,700 SAR (depends on rounding)
- FIFO highest profit, LIFO lowest — under rising prices
Practical tips
- Saudi Arabia (under SOCPA / IFRS) does not allow LIFO for financial reporting — use FIFO or Weighted Average for your statements.
- Once chosen, the method must be applied consistently across periods (consistency principle).
- Weighted Average is computationally simplest and matches how most ERP systems calculate cost on the fly.
- If prices are rising, FIFO inflates profit (good for valuations, but higher tax). Under falling prices, the opposite.
- Pair this tool with the Reorder Point calculator to plan replenishment around the same transaction log.
Frequently Asked Questions
Related Tools
Discover more free Snad tools
Dozens of free tools to manage your business smarter — all in one place.