Finance Formulas

Financial Statement Analysis

core

Inventory Cost Flow: FIFO, LIFO and Weighted Average

Builds onInventory Turnover & Days of Inventory on Hand — if this page feels steep, start there.

BI+Purchases⏟goods available=COGS+EI,COGSFIFO=∑oldestuici,COGSLIFO=∑newestuici,COGSAVG=∑uici∑ui×units sold\underbrace{BI + \text{Purchases}}_{\text{goods available}} = COGS + EI, \qquad COGS_{FIFO} = \sum_{\text{oldest}} u_i c_i, \quad COGS_{LIFO} = \sum_{\text{newest}} u_i c_i, \quad COGS_{AVG} = \frac{\sum u_i c_i}{\sum u_i}\times \text{units sold}

Reading the notation

BI+PurchasesBI + \text{Purchases}
goods available for sale: the cost of the beginning inventory plus everything bought during the year
COGSCOGS
cost of goods sold: the part of goods available that was sold, charged to the income statement
EIEI
ending inventory: the part of goods available still on the shelf, carried on the balance sheet
ui,ciu_i, c_i
units and cost per unit in layer i (the beginning inventory and each purchase)
∑uici∑ui\frac{\sum u_i c_i}{\sum u_i}
the weighted-average cost per unit: total cost of goods available divided by total units available

Why it must be true

A company buys the same product at different prices through the year. When it sells units, which cost goes to the income statement? The physical goods are interchangeable, so accounting needs a convention — a cost flow assumption. Every unit of cost ends up in one of two places: sold (COGS) or still held (ending inventory). The assumption only decides which layers go where.

- FIFO assumes the oldest units sell first: COGS carries old costs and ending inventory carries the newest. - LIFO assumes the newest units sell first: COGS carries the latest costs, and ending inventory carries the oldest. - Weighted average smooths everything: each unit costs the same average.

When prices rise, LIFO puts the expensive layers in COGS: higher COGS, lower profit and a lower tax bill, while FIFO shows higher profit and an inventory closer to current cost. When prices fall the ranking flips. Total cost is identical either way: only the split moves.

The derivation

Everything starts from the cost identity. For each layer ii with uiu_i units at cic_i each:

Goods available=∑uici=COGS+EI\text{Goods available} = \sum u_i c_i = COGS + EI

For the units sold, usu_s, take layers in the order the method dictates until usu_s units are filled:

COGSFIFO:oldest firstCOGSLIFO:newest firstCOGS_{FIFO}: \text{oldest first} \qquad COGS_{LIFO}: \text{newest first}

Weighted average spreads the total over all units:

cˉ=∑uici∑uiCOGSAVG=uscˉ\bar{c} = \frac{\sum u_i c_i}{\sum u_i} \qquad COGS_{AVG} = u_s \bar{c}

Ending inventory is what is left of the cost pool: EI=∑uici−COGSEI = \sum u_i c_i - COGS. Gross profit is us×price−COGSu_s \times \text{price} - COGS. Rising prices give COGSLIFO>COGSAVG>COGSFIFOCOGS_{LIFO} > COGS_{AVG} > COGS_{FIFO}.

When to reach for it

A company's beginning inventory and purchases are given at different unit costs, and the question asks for cost of goods sold, ending inventory or gross profit under a stated cost flow assumption.

Listen for

“periodic inventory system … beginning inventory … purchases”“cost of goods sold using FIFO / LIFO / weighted average cost”“ending inventory under the first-in, first-out method”“effect of rising prices on cost of goods sold and gross profit”

Back-of-the-envelope

Estimate it in your head first — then the calculator only confirms.

  • ≈

    Pick the layers before you multiply: FIFO takes layers from the top of the table down, LIFO from the bottom up. Write the unit counts first and check they add to the units sold.

  • ≈

    Rising prices: LIFO COGS > weighted average > FIFO COGS (and the reverse for ending inventory). If your three answers are not in that order, a layer is misallocated.

  • ≈

    COGS + ending inventory = goods available for sale under every method: use that to check, or to get ending inventory in one subtraction.

Traps in applying it

  • ✗Using the units sold from the wrong end: under periodic LIFO the NEWEST purchases are sold first, including purchases made after the sale date.
  • ✗Averaging the unit costs instead of weighting them by units.
  • ✗Reporting ending inventory when asked for COGS (or the reverse): they add to goods available, so they are mirror images.
  • ✗Forgetting that falling prices flip the ranking: LIFO then shows the LOWEST COGS.

Limits & criticisms

The periodic examples assume the cost flow is applied at year end; under a perpetual system LIFO and weighted average give different numbers because costs are matched as each sale happens. The cost flow assumption is an accounting convention, not a statement about which goods physically left the warehouse, and LIFO can leave very old costs on the balance sheet (a LIFO reserve) and, if inventory shrinks, trigger a LIFO liquidation that releases those old costs into profit.

Where it came from

LIFO arrived in the United States in the 1930s, when companies lobbied to stop paying tax on "inventory profits" that disappeared the moment they restocked at higher prices; it became permitted for tax with the Revenue Act of 1939, with the LIFO conformity rule requiring companies that use it for tax to use it in their published statements too. IFRS (IAS 2) prohibits LIFO, which is one of the most visible differences between US GAAP and IFRS reporting. Today the choice is why analysts convert LIFO companies to a FIFO basis before comparing them with peers.

One identity, 4 questions

The exam can hide any variable. Each face below is the same equation solved for a different unknown — drill them separately.

Cost of goods sold under a stated method

COGS=∑(layers in method order)COGS = \sum \text{(layers in method order)}

The core skill: pick the layers in the order the method dictates until the units sold are filled.

Drill this face →

Ending inventory

EI=Goods available−COGSEI = \text{Goods available} - COGS

The mirror image of COGS: whatever cost was not sold stays on the balance sheet.

Drill this face →

Gross profit

GP=us×price−COGSGP = u_s \times \text{price} - COGS

Sales are the same under every method, so differences in gross profit are exactly differences in COGS.

Drill this face →

LIFO COGS minus FIFO COGS

Δ=COGSLIFO−COGSFIFO\Delta = COGS_{LIFO} - COGS_{FIFO}

Positive when prices rise (LIFO expenses the dearer layers), negative when prices fall. The difference equals the change in the LIFO reserve.

Drill this face →

On the BA II Plus

Worked example: A distributor values inventory with a periodic system. The exhibit shows its beginning inventory and purchases during the year; it sold 550 units at $32.00 each. Under the first-in, first-out (FIFO) method, ending inventory for the year is closest to:

  1. 1.200 [×] 14 [=] [STO] 1FIFO cost of goods sold: first layer, units × cost
  2. 2.350 [×] 16 [+] [RCL] 1 [=] [STO] 1FIFO cost of goods sold: add the next layer
  3. 3.200 [×] 14 [=] [STO] 3goods available for sale: first layer, units × cost
  4. 4.400 [×] 16 [+] [RCL] 3 [=] [STO] 3goods available for sale: add the next layer
  5. 5.375 [×] 18 [+] [RCL] 3 [=] [STO] 3goods available for sale: add the next layer
  6. 6.[RCL] 3 [−] [RCL] 1 [=]goods available for sale − cost of goods sold = ending inventory

→ $7,550.00

Where it leads

Master this and the following come almost for free: