FINANCIAL ACCOUNTING • INVENTORY

FIFO, LIFO & Weighted Average — Compute cost of goods sold and ending inventory under FIFO, LIFO, and weighted average

Master three inventory cost-flow assumptions that shape reported profits, taxes, and balance sheet values.

Historical Context & Motivation

Before formal accounting standards existed, merchants tracked goods using simple physical counts—what was on the shelf was what you owned, and what left the store was what you sold. As commerce scaled during the Industrial Revolution and firms began holding large, heterogeneous inventories purchased at varying prices, a pressing question emerged: when identical items are bought at different costs, which cost should be assigned to the units sold and which to the units remaining? The answer to that question directly affects a company's reported gross profit, income tax liability, and balance sheet valuation of assets, making the choice of inventory cost-flow assumption one of the most consequential decisions in financial reporting.

1930s
Rise of LIFO in the U.S.
During the Great Depression, U.S. petroleum companies lobbied Congress for the right to use LIFO, arguing that matching current replacement costs against revenue yielded a more realistic profit figure during volatile price swings.
1939
IRC §472 Enacted
The U.S. Internal Revenue Code officially permitted LIFO for tax purposes, subject to the LIFO conformity rule—firms using LIFO for taxes must also use it in their financial statements.
1953
ARB No. 43 — Restatement of Standards
The American Institute of Accountants (now AICPA) codified FIFO, LIFO, weighted average, and specific identification as acceptable methods under U.S. GAAP.
2003–2005
IFRS Prohibits LIFO
International Accounting Standard (IAS) 2 was revised and explicitly prohibited LIFO under IFRS, citing its potential to misstate balance sheet inventory values. FIFO and weighted average remain permitted.
2014–Present
ASC 330 — Ongoing U.S. GAAP Guidance
FASB's Accounting Standards Codification Topic 330 continues to allow FIFO, LIFO, and weighted average, while the debate about potential LIFO repeal and IFRS convergence continues.

The core problem remains deceptively simple: when a retailer buys 100 units of the same product in January at $10 each and another 100 units in March at $12 each, then sells 120 units in April, which costs—$10, $12, or some blend—should attach to the 120 units sold and which to the 80 units still on hand? The three dominant approaches—FIFO, LIFO, and Weighted Average—each answer that question differently, producing different figures for cost of goods sold, ending inventory, gross profit, and net income from identical physical transactions.

Core Principles & Definitions

At the foundation of every inventory system lies the cost-flow assumption—a convention that determines the sequence in which previously recorded costs are transferred from the Inventory account on the balance sheet to Cost of Goods Sold on the income statement. Crucially, the cost-flow assumption does not need to mirror the physical flow of goods; a grocery store may physically sell older milk first, yet an electronics retailer selling identical USB cables may use any permissible assumption regardless of which physical unit ships. The choice affects two interrelated magnitudes: the cost of goods sold (COGS) that reduces revenue on the income statement and the ending inventory (EI) that remains as a current asset on the balance sheet.

1

FIFO (First-In, First-Out)

The earliest costs incurred are the first costs expensed to COGS. Ending inventory reflects the most recent purchase prices, making the balance sheet inventory value closer to current replacement cost.
2

LIFO (Last-In, First-Out)

The most recent costs incurred are the first costs expensed to COGS. Ending inventory retains the oldest costs, which may significantly diverge from current market values over time.
3

Weighted Average Cost

A single weighted average cost per unit is computed by dividing total cost of goods available for sale by total units available, then applied uniformly to both COGS and ending inventory.
4

The Inventory Equation

All three methods share the same constraint: Beginning Inventory + Purchases = COGS + Ending Inventory. The goods available for sale are simply allocated between COGS and EI differently under each method.
KEY TAKEAWAY
Think of inventory like a stack of differently colored plates. Under FIFO, you always pull from the bottom of the stack (oldest first). Under LIFO, you pull from the top (newest first). Under weighted average, you melt all the plates together into one blended color before serving. The total clay used is always the same—what changes is which clay colors end up on the table (COGS) versus still in the kiln (ending inventory).

Visual Explanation — How Cost Layers Flow

The diagram shows three purchase layers (100 units at $10, 100 units at $12, and 50 units at $14) flowing into COGS and ending inventory under each cost-flow assumption. Note that the total goods available for sale ($2,900) is identical in all three columns; only the allocation between COGS and ending inventory differs.

Observe the pattern in the diagram above. Under FIFO, the oldest (cheapest) layers flow to COGS first, producing the lowest COGS ($1,240) and the highest ending inventory ($1,660) when prices are rising. Under LIFO, the newest (most expensive) layers flow out first, yielding the highest COGS ($1,540) and the lowest ending inventory ($1,360). The weighted average method falls between the two extremes by blending all costs into a single per-unit figure of $11.60. These relationships hold whenever prices trend upward; in a deflationary environment, the rankings reverse.

Mathematical Framework

Regardless of the cost-flow assumption chosen, the fundamental accounting identity governing inventory remains the same. The total cost of goods available for sale must equal the sum of cost of goods sold and ending inventory. The three methods differ only in how they split that total between the income statement and the balance sheet.

INVENTORY EQUATION
Beginning Inventory + Net Purchases = Cost of Goods Sold + Ending Inventory
Equivalently, COGS = Beginning Inventory + Net Purchases − Ending Inventory. This identity holds under all three methods. Once you compute ending inventory, COGS can be derived by subtraction (and vice versa).
FIFO — COST ASSIGNMENT RULE
COGS = Σ (cost of the earliest available layers consumed)
Assign costs starting from the oldest purchase layer and work forward until the number of units sold is exhausted. Ending inventory consists of the remaining units from the most recent layers.
LIFO — COST ASSIGNMENT RULE
COGS = Σ (cost of the most recent available layers consumed)
Assign costs starting from the newest purchase layer and work backward. Ending inventory retains the oldest layers. If sales exceed recent purchases, older 'LIFO layers' are eroded—a phenomenon called LIFO liquidation.
WEIGHTED AVERAGE COST PER UNIT
Weighted Average Cost = Total Cost of Goods Available for Sale ÷ Total Units Available for Sale
Under a periodic system, this single rate is computed at the end of the period and applied to both COGS and ending inventory. COGS = Units Sold × Weighted Average Cost and EI = Units Remaining × Weighted Average Cost.
📝 Periodic vs. Perpetual Systems
Under a periodic system, COGS is computed at the end of the period. Under a perpetual system, COGS is updated with every sale. FIFO yields identical results under both systems, but LIFO and weighted average can produce different numbers because the cost layers available at each sale date may differ. This lesson focuses on the periodic system to build foundational intuition.

Side-by-Side Comparison Table

To consolidate the differences, consider a single set of inventory data and compute COGS and ending inventory under all three methods. Suppose a company has no beginning inventory and the following purchases during the period: Jan 5: 200 units at $8, Mar 15: 300 units at $10, Sep 20: 100 units at $13. The company sells 400 units during the period. Total goods available for sale equal 600 units costing $5,900.

Side-by-side inventory results for 600 units at $5,900 total cost, 400 units sold (periodic system, rising prices)
ItemFIFOLIFOWeighted Average
Units Sold400400400
COGS Layers200 × $8 + 200 × $10100 × $13 + 300 × $10400 × $9.833
COGS Total$3,600$4,300$3,933
EI Layers100 × $10 + 100 × $13200 × $8200 × $9.833
Ending Inventory$2,300$1,600$1,967
COGS + EI$5,900$5,900$5,900
Bar chart comparing COGS (darker bars) and ending inventory (lighter bars) across the three methods. In a rising-price environment, LIFO produces the highest COGS and lowest ending inventory, while FIFO produces the lowest COGS and highest ending inventory.

The chart makes visually apparent what the table shows numerically: the three methods simply redistribute the same total pool of cost. When prices trend upward, FIFO assigns lower (older) costs to COGS—boosting reported gross profit—while LIFO assigns higher (newer) costs to COGS—lowering reported profit but also lowering the current tax obligation. The weighted average method smooths both extremes. In a period of declining prices, these rankings reverse entirely: FIFO would produce the highest COGS and LIFO the lowest.

Worked Example — Full Computation

Greenfield Electronics has no beginning inventory on January 1 and records the following transactions during the quarter:

Greenfield Electronics — Q1 inventory data
DateTransactionUnitsUnit CostTotal Cost
Jan 10Purchase150$20$3,000
Feb 5Purchase200$22$4,400
Mar 18Purchase100$25$2,500
QuarterSales320
Totals Available450$9,900
FIFO — First-In, First-Out
1
Step 1 — Identify units available and units soldTotal units available for sale = 150 + 200 + 100 = 450 units at a total cost of $9,900. Units sold = 320, so ending inventory = 450 − 320 = 130 units.
2
Step 2 — Assign oldest costs to COGSUnder FIFO, the first 320 units sold draw costs from the earliest layers: all 150 units from Jan 10 at $20 = $3,000, then 170 of the 200 units from Feb 5 at $22 = $3,740.
COGS = $3,000 + $3,740 = $6,740
3
Step 3 — Compute ending inventoryRemaining units come from the most recent layers: 30 units remaining from Feb 5 at $22 = $660, plus all 100 units from Mar 18 at $25 = $2,500.
Ending Inventory = $660 + $2,500 = $3,160
4
Step 4 — Verify with inventory equationCOGS + EI = $6,740 + $3,160 = $9,900 ✓ (matches total goods available for sale).
LIFO — Last-In, First-Out
1
Step 1 — Assign newest costs to COGSUnder LIFO, the 320 units sold pull costs from the most recent layers first: all 100 units from Mar 18 at $25 = $2,500, then all 200 units from Feb 5 at $22 = $4,400, then 20 of the 150 units from Jan 10 at $20 = $400.
COGS = $2,500 + $4,400 + $400 = $7,300
2
Step 2 — Compute ending inventoryThe remaining 130 units are the oldest: 130 units from Jan 10 at $20 = $2,600.
Ending Inventory = $2,600
3
Step 3 — VerifyCOGS + EI = $7,300 + $2,600 = $9,900 ✓
Weighted Average Cost
1
Step 1 — Compute weighted average cost per unitWeighted Average Cost = $9,900 ÷ 450 units = $22.00 per unit.
WAC = $22.00 per unit
2
Step 2 — Compute COGSCOGS = 320 units × $22.00 = $7,040.
COGS = $7,040
3
Step 3 — Compute ending inventoryEI = 130 units × $22.00 = $2,860.
Ending Inventory = $2,860
4
Step 4 — VerifyCOGS + EI = $7,040 + $2,860 = $9,900 ✓
💡 Summary of Greenfield Results
FIFO COGS = $6,740 | LIFO COGS = $7,300 | W. Avg COGS = $7,040. Notice that LIFO produces COGS that is $560 higher than FIFO. If the corporate tax rate is 25%, choosing LIFO over FIFO saves Greenfield $140 in taxes this quarter (0.25 × $560), illustrating the real economic consequence of cost-flow assumptions.

Strengths, Limitations & Strategic Considerations

No single cost-flow assumption is universally superior; each has trade-offs that affect different stakeholders—managers, investors, creditors, and tax authorities—in different ways. A company's choice often reflects a strategic balance between tax savings, financial statement presentation, and regulatory constraints.

Comparative evaluation of the three cost-flow assumptions
CriterionFIFOLIFOWeighted Average
Balance Sheet RelevanceHigh — ending inventory approximates current replacement costLow — ending inventory may contain very old, understated costsModerate — blended value, neither current nor outdated
Income Statement MatchingWeak — old costs matched against current revenuesStrong — recent costs matched against current revenuesModerate — smoothed cost against revenue
Tax Effect (Rising Prices)Higher taxable income → more taxesLower taxable income → tax deferralModerate tax effect
IFRS PermissibilityAllowedProhibitedAllowed
U.S. GAAP PermissibilityAllowedAllowedAllowed
ComplexityLowModerate (layer tracking, conformity rule)Low
KEY TAKEAWAY
FIFO optimizes the balance sheet (inventory closer to market), LIFO optimizes the income statement's matching and defers taxes, and weighted average provides a middle path with computational simplicity. In practice, the choice often hinges on the firm's primary stakeholder audience—investor-facing firms may prefer FIFO's higher reported earnings, while privately held U.S. firms may favor LIFO's tax advantages.

Connection to Advanced Theory

The three periodic cost-flow assumptions form the foundation for several advanced inventory topics encountered in intermediate and advanced accounting courses. Understanding these baseline methods is essential before tackling the complexities of perpetual systems, dollar-value LIFO, and inventory estimation techniques.

From foundational cost-flow assumptions to advanced inventory topics
Foundation (This Lesson)Advanced Extension
Periodic FIFO / LIFO / Weighted AveragePerpetual FIFO / LIFO / Moving Average — cost is assigned at each sale date rather than period-end; moving average recalculates after every purchase
LIFO layer conceptDollar-Value LIFO — pools similar items and measures layers in dollar terms adjusted by a price index, reducing the administrative burden of unit-level tracking
COGS and EI computationLower of Cost or Net Realizable Value (LCNRV) — after computing EI under any method, firms must write down inventory if market value drops below cost (ASC 330 / IAS 2)
Inventory equationGross Profit Method & Retail Inventory Method — estimate ending inventory when a physical count is impractical, using historical gross profit percentages or retail-to-cost ratios
LIFO vs. FIFO tax effectLIFO Reserve & LIFO Liquidation — the LIFO reserve (difference between FIFO and LIFO inventory) enables analysts to convert between methods; liquidation of old LIFO layers inflates income and triggers unexpected tax bills

As you progress in your accounting coursework, you will also encounter the LIFO conformity rule in greater detail: under IRC §472, any firm that uses LIFO for tax purposes must also use LIFO in its primary financial statements sent to shareholders and creditors—though supplemental FIFO disclosures are permitted. This rule has no parallel under IFRS, which simply prohibits LIFO outright. The ongoing debate about potential U.S. LIFO repeal, driven partly by IFRS convergence efforts, illustrates how deeply intertwined inventory methods are with tax policy, financial reporting, and international harmonization.

Practice Problems

PROBLEM 1CONCEPTUAL
In a period of steadily rising purchase prices, which inventory cost-flow assumption will report the highest net income? Which will report the highest ending inventory on the balance sheet? Explain why these outcomes are linked.
PROBLEM 2BASIC CALCULATION
A firm has no beginning inventory and makes two purchases: 80 units at $15 on March 1 and 120 units at $18 on March 20. It sells 140 units during March. Compute COGS and ending inventory under FIFO (periodic system).
PROBLEM 3INTERMEDIATE
Using the same data from Problem 2 (80 units at $15, 120 units at $18, 140 units sold), compute COGS and ending inventory under both LIFO and weighted average (periodic system). Then calculate the difference in gross profit between FIFO and LIFO if selling price is $30 per unit.
PROBLEM 4APPLIED
TechParts Inc. reports under U.S. GAAP and uses LIFO. Its footnotes disclose a LIFO reserve of $240,000 at year-end. The company's reported (LIFO) ending inventory is $860,000. If TechParts' corporate tax rate is 21%, estimate (a) what ending inventory would be on a FIFO basis, and (b) the cumulative tax savings TechParts has achieved by using LIFO instead of FIFO.
PROBLEM 5CRITICAL THINKING
A multinational corporation operates subsidiaries in both the United States and Germany. The U.S. subsidiary uses LIFO and the German subsidiary uses FIFO (LIFO is prohibited under IFRS). During a period of rising prices, the CEO asks you: 'Can we simply add the two subsidiaries' COGS figures together for consolidated reporting?' Critically evaluate this question, addressing comparability, the LIFO conformity rule, and what adjustments might be needed for meaningful consolidated financial statements.

Lesson Summary

The three primary inventory cost-flow assumptionsFIFO (First-In, First-Out), LIFO (Last-In, First-Out), and Weighted Average Cost—determine how the total cost of goods available for sale is allocated between cost of goods sold on the income statement and ending inventory on the balance sheet. All three methods obey the same inventory equation: Beginning Inventory + Purchases = COGS + Ending Inventory; they simply slice that total differently.

In a rising-price environment, FIFO yields the lowest COGS, highest ending inventory, and highest net income, while LIFO yields the highest COGS, lowest ending inventory, and the greatest tax deferral; weighted average falls in between. LIFO is prohibited under IFRS but remains permissible under U.S. GAAP, subject to the LIFO conformity rule. Mastering these three methods provides the essential groundwork for more advanced topics including the LIFO reserve, lower of cost or net realizable value, and dollar-value LIFO.

Varsity Tutors • Financial Accounting • FIFO, LIFO & Weighted Average