Inventory Valuation Calculator (FIFO, LIFO, Average) Free

Enter your opening stock and each purchase with its unit cost, then the units sold. See how the three costing methods change cost of goods sold, closing stock value and profit.

📦 Stock available for sale

Enter opening stock and purchases in date order (oldest first).

LayerUnitsCost / unit

📊 Method comparison

MethodCOGSEnding stockGross profit
FIFO3,780.001,820.002,620.00 (40.9%)
LIFO4,240.001,360.002,160.00 (33.8%)
Weighted average3,982.221,617.782,417.78 (37.8%)
  • FIFO: Oldest cost goes to COGS first; ending stock carries the newest costs.
  • LIFO: Newest cost goes to COGS first. Not permitted under IFRS (IAS 2).
  • Weighted average: Every unit costs the average of 12.4444.

Goods available for sale: 450 units costing 5,600.00. Revenue at your price: 6,400.00.

Periodic method: costs are matched to the units sold at period end. A perpetual system (cost updated after every sale) can give different FIFO/average figures when purchases and sales interleave.
Built by Pyalm

Pyalm Books tracks products with cost and price, real-time stock levels and transfers between stores, with every sale and purchase posting to the ledger.

Pyalm productPyalm BooksAccounting, invoicing, POS and inventory for UAE businesses — VAT returns, e-invoices and PDF documents generated for you.Start free on Pyalm Books

Same stock, three answers

When purchase prices change, the cost you assign to units sold depends on the method. FIFO assumes the oldest units are sold first, so closing stock carries recent costs. LIFO assumes the newest units are sold first. Weighted average blends all costs into one average. In rising prices FIFO shows the highest profit and LIFO the lowest.

Which methods are allowed

IFRS (and therefore UAE and most international reporting) permits FIFO and weighted average cost but prohibits LIFO under IAS 2. LIFO is allowed under US GAAP. The method must be applied consistently, and a change is an accounting policy change requiring disclosure. Check tax treatment with your adviser.

Related

More free tools you might need

📦

COGS Calculator (Cost of Goods Sold)Free

Opening stock + purchases − closing stock = cost of goods sold.

🔄

Inventory Turnover CalculatorFree

See how many times you sell and replace stock, and days of inventory on hand.

📦

Reorder Point CalculatorFree

Know exactly when to reorder stock so you never run out.

📈

Profit Margin CalculatorFree

Turn cost and selling price into margin %, markup %, and net profit.

Browse all free tools

FAQ

Frequently asked questions

Is this a periodic or perpetual calculation?

Periodic: costs are matched to total units sold at the end of the period. Perpetual systems that update after every sale can give different FIFO and average results when purchases and sales interleave.

Why can't I sell more than I have?

Units sold can't exceed opening stock plus purchases. Add the missing purchase layer or reduce the units sold.

How does this relate to the COGS calculator?

The COGS calculator uses the simple opening stock + purchases − closing stock formula. This tool shows how the costing method changes that closing stock and COGS.

Stop building business documents by hand

Pyalm Books tracks products with cost and price, real-time stock levels and transfers between stores, with every sale and purchase posting to the ledger.

Start free on Pyalm Books

Need a tool like this built around your own workflow? Custom software · AI automation