Skip to content

Inventory

Inventory Valuation Calculator (FIFO / LIFO / Average)

Compare FIFO, LIFO, and Weighted Average on the same transactions, side by side

Inventory Valuation Calculator (FIFO / LIFO / Average)
  • Free
  • No Signup
  • Calculated in your browser

Costing method

Transactions

DateTypeQuantityUnit cost
—
—
—

Ending units

80units

Ending inventory value

1,200SAR

Cost of goods sold

2,500SAR

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
DateTypeQuantityUnit costRunning unitsRunning valueCOGS impact
1/5/2026Purchase100101001,000—
2/10/2026Purchase100122002,200—
3/15/2026Sale80101201,400800
4/20/2026Purchase100152202,900—
5/5/2026Sale9011.561301,8601,040
5/25/2026Sale5013.2801,200660

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:

  1. Total purchased: 300 units for 3,700 SAR
  2. Total sold: 220 units; ending units across all methods = 80
  3. FIFO: ending inventory = 80 @ 15 = 1,200 SAR; COGS = 2,500 SAR
  4. LIFO: ending inventory = 80 @ 10 = 800 SAR; COGS = 2,900 SAR
  5. WAvg: ending value ≈ 1,000 SAR; COGS ≈ 2,700 SAR (depends on rounding)
  6. 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.

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