Inventory Valuation Calculator

Compare FIFO, LIFO and weighted-average inventory valuation and cost of goods sold from two cost layers.

100% FreeNo sign-upPrivate — runs in your browser
—

Result

Cost of goods sold (COGS)
—
Ending inventory value
—
Units sold
—
Units available for sale
—
Total cost of goods available
—

Copied to clipboard

How to use this tool

1
Enter beginning inventory

Units on hand at the period start and their unit cost.

2
Enter purchases

Units bought in the period and their unit cost (one blended layer).

3
Enter ending inventory

Units still on hand at the period end.

4
Compare methods

Switch FIFO, LIFO and weighted average to see the COGS and inventory effect.

Formula & worked example

Units sold = beginning + purchases − ending. FIFO sells oldest units first; LIFO sells newest first; weighted average uses total cost ÷ total units for every unit sold. Ending inventory = total cost − COGS in all methods.

Beginning 100 units at $10 plus purchases of 100 at $12, with 80 units left, means 120 sold. FIFO COGS is $1,240 with ending inventory of $960; LIFO COGS is $1,400 with ending inventory of $800; weighted average gives COGS of $1,320.

Limitations — read this before you rely on it

Two cost layers only — real inventory has many layers, plus freight, shrinkage, obsolescence and write-downs. LIFO is not permitted under IFRS and its tax treatment varies by jurisdiction; this is an educational comparison, not accounting advice.

Frequently asked questions

First in, first out: the oldest inventory is assumed sold first, so ending inventory reflects the newest costs.

Last in, first out: the newest inventory is assumed sold first. It is banned under IFRS and restricted in some jurisdictions.

In rising prices, FIFO reports lower COGS and higher profit than LIFO, because older cheaper costs are matched against sales.

It should match the actual flow of goods where possible and follow local accounting standards — the choice also affects tax.

Real systems track every layer. This calculator uses two layers (beginning + one purchase layer) for a clear comparison.