Ending Inventory Calculator (FIFO, LIFO, Average)

Updated 5 Dec 2026 · By , HisaabHub · How we check

Quick answer: Ending inventory = beginning inventory + purchases - cost of goods sold. Start 100 units, buy 50 and sell 80, and you end with 70 units.

Advertisement

Ending inventory methods

MethodCost of goods sold usesEnding inventory uses
FIFOoldest costsnewest costs
LIFOnewest costsoldest costs
Weighted averageaverage costaverage cost

Ending inventory formula and example

Beginning 100 units at Rs 50, purchase 50 units at Rs 60, sell 80. FIFO cost of goods sold = 100 x 50 only up to 80 units = Rs 4,000, so ending inventory = 20 x 50 + 50 x 60 = Rs 4,000. Weighted average cost is Rs 53.33 per unit.

Advertisement

Inventory turnover and accuracy

Inventory turnover = cost of goods sold / average inventory. A higher number means stock sells faster. Count stock often and compare with records to keep accuracy above 95%. See also the percentile calculator and our unit converter.

Roman Urdu: Shuru ka stock, khareedari aur farokht daal kar bacha hua stock aur uski keemat nikalein.

Official sources

Questions people ask

How do you calculate ending inventory?
Beginning inventory plus purchases minus cost of goods sold.
What is the difference between FIFO and LIFO?
FIFO sells the oldest stock first. LIFO sells the newest first, so ending stock holds the older costs.
How do I calculate beginning inventory?
It equals the ending inventory of the last period.
How do I calculate inventory turnover?
Cost of goods sold divided by average inventory.
Is LIFO allowed in Pakistan?
IFRS and Pakistani standards do not allow LIFO. Use FIFO or weighted average for reports.
Advertisement