Skip to content
Keyboard shortcuts
Esc
Everywhere
Search the site
⌘K
Search the site
/
Show these shortcuts
?
Close what is open
Esc
Talk to us

Inventory and cost of goods sold

October's drills, costed FIFO and by weighted average, counted against the record, and written down to what they will sell for.

Northwind closed September with $1,000 of inventory: twenty cordless drills at $50 each. In October it delivers the dozen the deposit paid for, restocks at a higher price, sells a trade order and counts the shelf. Every one of those moves asks the same question: what did the goods that left cost? That figure is cost of revenue, and it decides the gross margin.

  1. Oct 1

    Opening stock: 20 drills at $50

  2. Oct 6

    The deposit order delivered: 12 drills out

  3. Oct 10

    Restock: 40 drills in at $55, on 30-day terms

  4. Oct 20

    Trade order: 30 drills out at $240 each

  5. Oct 31

    Count: 17 on the shelf against 18 on the record

The drills' October, in order.

Which drills left? A cost-flow assumption

Once drills bought at two prices sit on one shelf, nobody can say which physical drill went out. So the books assume an order. First-in, first-out assumes the oldest leave first. Weighted-average cost gives every drill on the shelf the same average cost. US GAAP allows both (and LIFO), and Northwind's policy is FIFO.

FIFOWeighted average
Opening inventory1,0001,000
Purchased2,2002,200
Out — OCT-3, 12 drills(600)(600)
Out — OCT-5, 30 drills(1,610)(1,625)
Out — OCT-9, 1 drills(55)(54.17)
Closing inventory, before any write-down935920.83
The same October, costed both ways. Same drills, same count; different cost of revenue and a different shelf.

Prices rose in October, from $50 to $55 a drill. FIFO sends the cheaper, older drills out first, so it reports the lower cost of revenue and leaves the shelf at the newest prices: $935 against $920.83. When prices fall, the order reverses. Over the life of the stock the two methods expense the same total; they disagree about which month.

Your turn

Cost the drills, first in, first out

October opens with 20 drills at $50 each, and 40 more arrive on October 10 at $55. Cost each issue first-in, first-out: the oldest drills leave first.

Cost the drills, first in, first out
RowAEntryBWhat left the shelfCUnitsDFIFO cost
1
2
3
4
5
6

Enter the cost of the first issue to begin.

FIFO

Good at
  • The shelf is valued near current prices
  • Every unit leaves at a cost it came in at — no rounding
Watch for

In rising prices, a higher gross margin than the replacement cost supports

Best for
Goods that really do sell oldest-first, and most small resellers

Weighted average

Good at
  • Smooths price swings out of the margin
  • No layers to track
Watch for
  • The average is recomputed after every purchase
  • Each issue rounds, to the cent
Best for
Interchangeable goods bought often at varying prices — fuel, grain, bulk parts
The two cost-flow methods most startups choose between.

The entries

2026-10-10

Restock: forty drills arrive on 30-day terms, at the supplier's new price.

AccountDebitCredit
1300Inventory2,200.00
2000Accounts payable2,200.00
Balanced2,200.002,200.00

OCT-4

2026-10-20

Sell thirty drills to the trade customer on account, and take their cost out of inventory, oldest first.

AccountDebitCredit
1200Accounts receivable7,200.00
4000Revenue7,200.00
5000Cost of revenue1,610.00
1300Inventory1,610.00
Balanced8,810.008,810.00

OCT-5, October 20. The sale, and its cost: eight drills from the September layer and twenty-two from October's.

The count

A perpetual record says what should be on the shelf. On October 31 the record says 18 drills, and the count finds 17. The missing one is shrinkage: lost, stolen, broken or never received. It leaves inventory at its FIFO cost, $55, as a loss of October. It isn't a sale, so it doesn't belong in the margin on the drills sold, and Northwind books it to its own line inside cost of revenue.

2026-10-31

The count finds fewer drills than the record. The missing ones leave inventory as a loss.

AccountDebitCredit
5100Inventory losses55.00
1300Inventory55.00
Balanced55.0055.00

OCT-9

The periodic system gets to the same place without a record: opening stock, plus purchases, less the count. $1,000 + $2,200 − $935 = $2,265. That's the $2,210 of drills sold plus the $55 lost, together, because a count can't tell a sale from a loss. That's what the perpetual record buys.

  1. Step 1: Freeze the shelf

    Stop receiving and shipping, or note exactly what moved during the count.

  2. Step 2: Count blind

    Two people, one counting, one recording, neither the person who keeps the record.

  3. Step 3: Compare to the record

    Every difference is investigated before it's booked: a receipt keyed twice is not shrinkage.

  4. Step 4: Book what's real

    Shrinkage at cost; then test what's left against what it will sell for.

Counting stock at a month end.

Inventory is cost on hold. The method decides which cost leaves first, the count decides what's really there, and net realizable value caps what the rest may be carried at.

In this lesson: what happens when stock on the shelf is worth less than it cost has its own page below.

Finished this lesson?

Pages in this lesson

1 page goes deeper, about 4 minutes in all. Read them in order, or open the one you need.

Where this lesson's rules come from

The sources behind this lesson's requirements, by kind. Background reading explains; it is never the authority for a rule. Anything marked as a convention is ours, not the rule-maker's.

US GAAP
Background reading — not an authority

The full map is in US GAAP, and where these rules come from.

The words this lesson teaches

Each links to its glossary definition, which also names the authority behind it and the components that render it.

In the founder glossary

This lesson’s ideas, explained for the founder running the company. Each has an entry in the founder glossary.

See also