FIFO, LIFO and weighted average inventory calculator.

What do these figures come to once the work is shown?

Paste beginning inventory and purchase layers, enter units sold, and compare cost of goods sold and ending inventory under FIFO, periodic LIFO and weighted average cost.

  • Runs in your browser
  • Nothing stored or sent
  • Free, no sign-up
FIFO, LIFO and weighted average cost
FIFO COGS
$2,800.00
Ending inventory $2,550.00
LIFO (periodic) COGS
$3,150.00
Ending inventory $2,200.00
Weighted average (periodic) COGS
$2,972.22
Ending inventory $2,377.78
How this was worked out
Work shownrecomputed as you type
Goods available = 450.00 units costing $5,350.00; sold 250.00; ending 200.00 units.
Weighted average cost per unit = $5,350.00 ÷ 450.00 = $11.8889
FIFO takes the oldest layers first, LIFO takes the newest first, and cost of goods sold plus ending inventory always equals goods available.
MethodCost of goods soldEnding inventoryGross margin effect vs FIFONRV write-down
FIFO$2,800.00$2,550.00$0.00$150.00
LIFO (periodic)$3,150.00$2,200.00-$350.00n/a
Weighted average (periodic)$2,972.22$2,377.78-$172.22$0.00

Illustrative defaults. FIFO and weighted average ending inventory is measured at the lower of cost and net realizable value, and LIFO at the lower of cost or market, which this tool does not compute. The write-down shown is item-level on total ending units. Periodic LIFO treats every layer as available to the period's sales.

The arithmetic

Goods available for sale = beginning inventory + purchases. FIFO cost of goods sold is the cost of the earliest units to the number sold. Periodic LIFO cost of goods sold is the cost of the latest units to the number sold. Weighted average cost of goods sold = units sold × (total cost ÷ total units). Cost of goods sold plus ending inventory equals goods available under each method. ASC 330-10 permits these cost flow assumptions.

When to use it

Use it to test the inventory costing method a client reports, to size the effect of a change in method, or to check the ending balance in a roll-forward.

Limits

It models a single item in one period. It does not compute the lower of cost or market for LIFO, apply the dollar-value LIFO technique, or cost a perpetual system. The NRV write-down is on total ending units with one NRV per unit, so apply it by item for real populations.

Illustrative figures only. Check the result against your firm's methodology before relying on it.

Common questions

How does each method assign cost?

FIFO treats the oldest units as sold first, so ending inventory carries the latest costs. Periodic LIFO treats the newest purchases as sold first, so ending inventory carries the oldest costs. Weighted average divides the total cost of goods available by total units and applies that one cost per unit to sales and to ending inventory.

When prices rise, which method gives the highest profit?

FIFO gives the lowest cost of goods sold and the highest ending inventory and gross profit. LIFO gives the opposite. Weighted average falls between them. When prices fall the ranking reverses.

What does ASC 330 say about lower of cost and net realizable value?

Inventory measured by any method other than LIFO or the retail inventory method is measured at the lower of cost and net realizable value. Net realizable value is estimated selling price in the ordinary course of business less reasonably predictable costs of completion, disposal and transportation. LIFO and retail method inventory is measured at the lower of cost or market.

Why must units sold not exceed units available?

Cost of goods sold cannot take cost from layers that do not exist. If the units sold exceed the layers entered, check for a missing beginning balance or purchase.

How does a perpetual system differ?

Under a perpetual system each sale is costed when it occurs, so FIFO matches this tool's result but LIFO and moving average can differ from the periodic results shown here.

Runs in your browser. The figures you type are not sent to CORAA or stored. Check the result against your firm's methodology before relying on it.

Related audit calculators

For US CPA firms

Join the CORAA waitlist

CORAA AI drafts audit working papers from your client’s QuickBooks books and does the first pass: lead schedules, tie-out, memos, draft notes and letters. CORAA Network reviewers clear every finding. Your firm reviews and signs.

  • First audit free, so you can judge the quality on a real file
  • Flat fee by entity size; messy books included
  • We work only with CPA firms, never their clients
See how it works →

* required