Warehouse & Inventory

Inventory Valuation Calculator (FIFO, LIFO, Weighted Average)

Enter your purchase lots in the order they were received and the number of units sold. The calculator works out cost of goods sold (COGS) and closing stock value under FIFO, LIFO and the weighted average cost method, side by side.

Also known as: FIFO LIFO calculator · weighted average cost calculator · closing stock valuation calculator · COGS calculator FIFO · stock valuation methods calculator

Enter details

Purchase lots (oldest first, incl. opening stock)
#Quantity (units)Unit cost (₹)Remove
1
2
3

Result

COGS – FIFO₹16,250
Closing stock – FIFO
₹9,000
COGS – LIFO (periodic)
₹17,500
Closing stock – LIFO (periodic)
₹7,750
COGS – Weighted average
₹16,833.33
Closing stock – Weighted average
₹8,416.67
Weighted average cost per unit
₹56.11
Closing stock units
150
Cost of goods available
₹25,250

Method comparison

MethodCOGSClosing stock valueClosing cost per unit
FIFO16,2509,00060
Weighted average16,833.338,416.6756.11
LIFO (periodic)17,5007,75051.67

LIFO and weighted average are calculated on a periodic basis (all purchases in the period, then sales). A perpetual system that re-costs after every sale can give slightly different figures.

IFRS and India's Ind AS 2 / AS 2 do not permit LIFO; it is shown for comparison and for jurisdictions such as the US where it is allowed.

Results are estimates for planning. Confirm final rates, rules and charges with your carrier or authority.

How to use the Inventory Valuation Calculator

  1. Enter Purchase lots, Units sold / issued in the period, Headline method.
  2. Use “+ Add row” for every additional item, box or line.
  3. Read the result instantly – it updates as you type, with a breakdown below the main figure.
  4. Use “Copy link” to share the exact calculation, or “Copy results” to paste it into an email, quote or invoice.

Inventory Valuation Calculator formula

FIFO COGS = cost of the oldest units first, until units sold are used up
LIFO COGS = cost of the newest units first
Weighted average cost = total cost of goods available ÷ total units available
Closing stock = cost of goods available − COGS

About the Inventory Valuation Calculator

Inventory valuation decides which purchase costs go into cost of goods sold and which stay on the balance sheet as closing stock. When purchase prices change during a period, the method chosen changes reported profit, tax and stock value – even though the physical goods are identical.

FIFO (first in, first out) assumes the oldest units are sold first, so closing stock is valued at the latest prices. LIFO (last in, first out) charges the newest costs to COGS. The weighted average method spreads total cost evenly over all units available. With rising prices, FIFO gives the lowest COGS and highest profit, LIFO the opposite, and weighted average sits in between.

Enter opening stock as the first lot, then each purchase in date order. The calculator uses the periodic approach: all lots available in the period are pooled before sales are costed. Accounting standards such as IFRS and India's Ind AS 2 allow FIFO and weighted average but not LIFO; US GAAP still allows LIFO. Check which method your books and tax filings require.

Worked example

Here is the calculation for the sample values pre-filled in the inventory valuation calculator above.

Inputs
Purchase lots (oldest first, incl. opening stock)3 lines
Units sold / issued in the period300
Headline methodFIFO (first in, first out)
Results
COGS – FIFO₹16,250
Closing stock – FIFO₹9,000
COGS – LIFO (periodic)₹17,500
Closing stock – LIFO (periodic)₹7,750
COGS – Weighted average₹16,833.33
Closing stock – Weighted average₹8,416.67
Weighted average cost per unit₹56.11
Closing stock units150
Cost of goods available₹25,250
Purchase lots (oldest first, incl. opening stock)
Quantity (units)Unit cost
10050
15055
20060

Who uses this tool

  • Accountants and small business owners preparing month-end or year-end closing stock.
  • Commerce students practising FIFO, LIFO and weighted average problems.
  • Traders seeing how rising purchase prices affect margins under each method.
  • Auditors cross-checking inventory valuation reported by an ERP.

Tips to save cost and avoid mistakes

  • List lots strictly in receipt order, with opening stock first – FIFO and LIFO depend on the sequence.
  • Include freight, duty and other costs of bringing goods to their location in the unit cost, as accounting standards require.
  • Use the same method consistently from period to period; changes normally need justification and disclosure.
  • Keep the closing stock value at the lower of cost and net realisable value if prices have fallen.

Inventory Valuation Calculator – frequently asked questions

What is the difference between FIFO and LIFO?

FIFO costs sales at the oldest purchase prices, leaving the newest prices in closing stock. LIFO costs sales at the newest prices, leaving the oldest prices in stock.

How do you calculate weighted average cost?

Divide the total cost of all units available (opening stock plus purchases) by the total units available. With the default lots, 25,250 ÷ 450 = 56.11 per unit.

Which method gives higher profit when prices are rising?

FIFO, because cheaper older units are charged to cost of goods sold. LIFO gives the lowest profit and weighted average falls in between.

Is LIFO allowed in India?

No. Ind AS 2 and AS 2 permit FIFO and weighted average cost (and specific identification for unique items) but not LIFO. Confirm current requirements with your accountant.

Does the method change the number of units in stock?

No. Closing units are the same under every method; only the value placed on them changes.

Related tools