Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Inventory valuation lab

Cost of goods sold and closing stock by FIFO, LIFO (perpetual and periodic), weighted average and moving average, side by side.

How to use

  1. List purchases and sales in the order they happened, one per line. Start with your opening stock as a purchase.
  2. Press Value the stock. The first table compares the cost of goods sold, closing stock and gross profit under five methods.
  3. Choose a method under Show the working to see the cost of each sale and the layers of stock left.
  4. The second tab works from totals: cost of goods sold = opening stock + purchases − closing stock.

Keyboard and touch

TabMove between tabs, boxes and buttons
Enter in a one-line boxCalculate

Tips

  • When prices are rising, FIFO gives the lowest cost of goods sold and the highest profit; LIFO gives the opposite.
  • Every method splits the same total (all purchases) between cost of goods sold and closing stock.
  • LIFO worked out at each sale can differ from LIFO worked out at the end of the period, because a sale can only use stock bought before it.
  • LIFO is not allowed under IFRS; US GAAP allows it.

About the methods

FIFO assumes the oldest units are sold first; LIFO the newest first. The weighted average for the period divides all purchase costs by all units bought; the moving average works out a new average cost after every purchase and uses it at each sale. Unit costs are kept at full precision and shown to the cent. Lines starting with # are notes. This lab does not handle returns, write-downs to net realisable value or the lower-of-cost-or-market rule. It is a learning tool, not accounting advice. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product