Toolvito

Works on this device

Inventory Valuation Calculator

Enter your opening stock, purchases and sales in the order they happened. The calculator works out the cost of goods sold and the value of the stock left by the method you choose, and can show all methods side by side.

Enter your values

Enter the opening stock, the purchases and the sales in date order, and choose a method. You get the cost of goods sold, the ending inventory and a stock card.

Your values

FIFO and the two averages are allowed under IFRS. LIFO is not allowed under IFRS.

Stock movements, oldest first

One row for each opening stock, purchase or sale, in the order they happened. Give a unit cost for stock that comes in, and leave it empty for a sale. A selling price is optional: give it for every sale or for none. Units and amounts per unit may have up to 4 decimal places.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Add one row for each movement of stock, oldest first: the opening stock, each purchase and each sale. A date is optional, but rows with dates must be in date order.
  2. For opening stock and purchases, enter the units and the cost of one unit. For a sale, enter the units only. A selling price is optional: give it for every sale to see the gross profit.
  3. Choose a method and choose Calculate. The stock card shows each movement, and a table shows which units are left at the end.
  4. Choose Compare all methods side by side to see how much each method moves between the cost of goods sold and the ending inventory.
  5. For goods you can tell apart, such as cars or machines with serial numbers, choose Specific identification of the units sold.

The methods

  • FIFO (first in, first out): each sale takes the oldest units first. The stock left holds the latest purchases.
  • LIFO (last in, first out): each sale takes the latest units first. At each sale (perpetual) uses only the units on hand at the moment of the sale. At the end of the period (periodic) takes all units sold from the latest purchases of the whole period. LIFO is not allowed under IFRS (IAS 2 Inventories).
  • Weighted average cost of the period (periodic, also called AVCO): average cost = cost of goods available ÷ units available. Units sold and units left are valued at that one average.
  • Moving average (perpetual): after each purchase, average cost = value on hand ÷ units on hand. Each sale is costed at the average of that moment.
  • Specific identification: the cost of the very units that were sold.
  • For every method: cost of goods available = opening inventory + purchases = cost of goods sold + ending inventory.

Worked example

Opening stock: 100 units at 10. Then a purchase of 200 units at 11, a sale of 250 units, a purchase of 150 units at 12 and a sale of 80 units. The cost of goods available is 1,000 + 2,200 + 1,800 = 5,000 for 450 units. 330 units were sold and 120 are left.

FIFO: the first sale takes 100 units at 10 and 150 at 11 (2,650). The second takes the last 50 at 11 and 30 at 12 (910). Cost of goods sold = 3,560 and ending inventory = 120 × 12 = 1,440.

LIFO at each sale gives 3,660 and 1,340. LIFO at the end of the period gives 3,780 and 1,220. Weighted average: 5,000 ÷ 450 = 11.1111 a unit, so 3,666.67 and 1,333.33. Moving average gives 3,600.00 and 1,400.00.

With selling prices of 18 and 18.50, sales are 5,980, so the gross profit by FIFO is 5,980 − 3,560 = 2,420.

How amounts are rounded

Every amount is worked in whole cents, rounded half away from zero. A line of stock that comes in costs units × unit cost. Units taken out cost units × their cost per unit, and the last units of a lot, or of the stock at an average cost, take all the cents that are left. So the cost of goods sold and the ending inventory always add up to the cost of goods available, to the cent.

Limits you should know

  • Purchase returns, sales returns, freight costs, discounts and write-downs to a lower value are not part of the calculation. Adjust the unit cost or the units yourself.
  • Units and amounts per unit may have up to 4 decimal places. Sales for the period may have 2. All amounts are taken as one currency.
  • No method is best for every business. Which methods a business may use depends on the rules it reports under, and tax rules may differ again. Ask an accountant.
  • To see turnover and days in inventory from these figures, use the Inventory Turnover Calculator.
  • The result is arithmetic on the movements you type. It is not accounting, tax or legal advice.

Related tools