Inventory
Inventory Valuation Calculator (FIFO / LIFO / Average)
Compare FIFO, LIFO, and Weighted Average on the same transactions, side by side
- Free
- No Signup
- Calculated in your browser
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 |
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
Which method should I use for Saudi tax filing?
FIFO or Weighted Average. LIFO is not permitted under IFRS / SOCPA, which governs Saudi accounting standards. ZATCA accepts either FIFO or WAvg.
Can I switch methods between periods?
Not without disclosure. Changing your costing method is an accounting policy change — it requires restating comparatives and disclosing the impact in your notes.
Why are FIFO and LIFO results so different?
Because prices change. If unit cost never changed, all three methods would give the same answer. The bigger the price swings, the bigger the gap between methods.
Does this tool handle returns or write-offs?
Returns: model as a negative-quantity sale (the tool doesn't accept negatives directly — use the comparison view conceptually). Write-offs: treat as a sale at zero revenue; the COGS impact still matches the method's cost flow.
What if my inventory has multiple SKUs?
Each SKU is valued independently. Run this tool once per SKU with its own transaction log.
How does this differ from periodic vs. perpetual inventory?
This tool models the perpetual (moving) view — values update after each transaction. A periodic system applies the method once at period-end; for FIFO and LIFO the answer is the same, but for Weighted Average the periodic figure can differ from the moving figure.
From the same drawer
Everything in Inventory- SKU GeneratorGenerate single or bulk SKU codes with 5 ready industry templates
- Reorder Point CalculatorKnow when to reorder before you run out, with a basic mode and an advanced Z-score mode
- Inventory Turnover CalculatorMeasure how many times you sell through your inventory in a year
- Economic Order Quantity (EOQ) CalculatorFind the order size that minimizes total inventory cost (ordering + holding)
When you run the same sum every day
Invoicing every day? In Snad each invoice posts its entry and updates your stock automatically.
Free plan, no end date · 7-day trial, no card
- Accounting, inventory and ZATCA e-invoicing in the same software
- Tax and balances are computed from your own transactions, so no figure moves to a separate spreadsheet