Warehouse aisle with older and newer pallets stacked side by side at a loading position

What are FIFO, LIFO and weighted average cost

FIFO (first in, first out), LIFO (last in, first out) and weighted average cost are the three methods for assigning cost to inventory issues and to the closing balance. When purchase prices change over time, the same physical movements produce a different cost of goods sold (COGS), ending inventory and profit under each method.

The method sets the accounting value, not the physical flow: a plant can consume the newest lot and still value inventory by FIFO. What matters is to choose one method, apply it consistently and trace every issue back to the receipt it came from.

Visual map: three methods, the same receipts and issues

The map values the same set of movements under the three methods and compares COGS, ending inventory and gross profit.

FIFO, LIFO AND WEIGHTED AVERAGE
Visual map 143: FIFO, LIFO and Weighted Average Inventory Valuation Example. Click the map to see it full size.Download the map as PNG

How each method works

Average cost = value of balance ÷ quantity of balance

COGS = beginning inventory + purchases − ending inventory

Advertisement

Worked example: one month of movements

Fictional example with rising purchase prices. Beginning inventory is 100 units at $10.00. The selling price is $20.00 per unit. Movements:

EventDayQuantityUnit cost ($)
1Beginning inventory+10010.00
5Purchase+20012.00
8Sale−150—
15Purchase+10014.00
20Sale−180—

Total sold: 150 + 180 = 330 units, revenue 330 × 20 = $6,600. Total available: 400 units at $4,800 (1,000 + 2,400 + 1,400). Physical ending inventory: 70 units. Calculation by method, with each issue costed at the time of the sale:

Method1st sale (150 units)2nd sale (180 units)Ending inventory ($)
FIFO150 units: 100 × 10 + 50 × 12 = 1,600180 units: 150 × 12 + 30 × 14 = 2,22070 units × 14 = 980
LIFO150 units: 150 × 12 = 1,800180 units: 100 × 14 + 50 × 12 + 30 × 10 = 2,30070 units × 10 = 700
Moving averageAverage 3,400 ÷ 300 = 11.3333; 150 × 11.3333 = 1,700Balance 1,700 + 1,400 = 3,100 ÷ 250 = 12.40; 180 × 12.40 = 2,232868 (70 × 12.40)

Comparing the results

MethodCOGS 1st saleCOGS 2nd saleTotal COGSEnding inventoryGross profit
FIFO1,6002,2203,8209802,780
LIFO1,8002,3004,1007002,500
Moving average1,7002,2323,9328682,668
Periodic average——3,9608402,640

With the periodic average, the single average is 4,800 ÷ 400 = $12.00: COGS = 330 × 12 = 3,960 and ending inventory = 70 × 12 = 840. Under every method, COGS + ending inventory = 4,800, so the method only splits the same cost between what left and what stayed.

With rising prices, FIFO gives the highest ending inventory (980) and the highest profit (2,780). LIFO gives the lowest inventory (700) and the lowest profit (2,500). The $280 gap between the two is exactly the difference in ending inventory value (980 − 700). The average sits in the middle. With falling prices, the order reverses.

What standards and law allow

Advertisement

Which method to use

SituationMost common methodReason
Perishables, short shelf life, traceable lotsFIFOFollows physical flow and expiry date
Many similar items, frequent purchasesWeighted averageSimple to maintain in the system and smooths price swings
High-value items traceable by lot or serial numberSpecific identificationEach unit carries its actual cost
Reporting under IFRSFIFO or weighted averageLIFO is not allowed

The chosen method feeds production cost, inventory turnover (which uses COGS) and margin by product. To decide which items deserve tighter control, combine it with ABC analysis.

How to keep control day to day

  1. Record every receipt with date, quantity and full unit cost (price, freight and non-recoverable taxes).
  2. Define the method in writing and apply it to all items of the same nature.
  3. Post the issue in the system at the time of consumption or sale, linked to MRP and the production order.
  4. Reconcile the system balance with the physical count through cycle counting.
  5. Review inventory adjustments: recurring discrepancies distort cost under any method.

For replenishment policy and stock levels, see inventory management.

Common mistakes and limitations

Frequently asked questions

What is FIFO?

The method in which the first lot received is the first one issued. COGS uses the oldest costs and ending inventory is valued at the most recent purchases.

What is LIFO?

The method in which the last lot received is the first one issued. COGS uses the most recent costs. IAS 2 does not allow it; US GAAP does.

What is weighted average cost?

The average cost of the units in stock, weighted by quantity: value of balance ÷ quantity of balance. It can be moving (at each receipt) or periodic.

Which method gives the highest profit when prices rise?

FIFO, because it expenses the oldest and lowest costs. In the example, gross profit is $2,780 under FIFO, $2,668 under moving average and $2,500 under LIFO.

What is the difference between moving and periodic average?

Moving recalculates the cost at each receipt and issues at that value. Periodic uses one average at period end. In the example, COGS is $3,932 versus $3,960.

Does the valuation method change total cost?

No. Total cost available is the same ($4,800 in the example). The method only splits it between COGS and ending inventory.

Advertisement

Sources

  1. IFRS Foundation. IAS 2 Inventories.
  2. WEYGANDT, J. J.; KIMMEL, P. D.; KIESO, D. E. Financial Accounting. Wiley.
  3. KIESO, D. E.; WEYGANDT, J. J.; WARFIELD, T. D. Intermediate Accounting. Wiley.
  4. HEIZER, J.; RENDER, B. Operations Management. Pearson.

Keep studying: trusted sources and links

Save this address: Manufatura Enxuta is your school for lean manufacturing. Come back whenever you need to study, with a complete article, a visual map and trusted sources. Follow one of the learning paths or check the A–Z glossary.

Want to measure what really matters?

Download the free e-book on performance indicators and track the losses in your operation.

Download the e-book
Photo of Vagner Soares

About the author

Vagner Soares

Lean Manufacturing & Behavioral Management Specialist

Over 20 years in the automotive and metalworking industries (GM and Dana), Lean Manufacturing practitioner since 2006. SENAI instructor and mentor in Brazil’s Brasil Mais Produtivo program, delivering consulting, training and audits for 50+ companies, combining quality, productivity and people development.