Inventory costing: FIFO
ProWhen the same item is bought at different prices, each sale raises a question: which cost goes to Cost of Goods Sold? First-in, first-out (FIFO) assumes the oldest units are sold first. Cost of goods sold uses the oldest costs, and ending inventory is valued at the newest.
Keep a list of cost layers: how many units at what cost. On a sale, take units from the oldest layer until it's empty, then from the next. When prices rise, FIFO gives a lower cost of goods sold and a higher ending inventory than the other methods.
Summit Gear starts with 100 headlamps at $20. Work out each cost before you record it.
Unlock this lesson with Pro
Pro opens all 42 Pro lessons, from merchandising and payroll to closing entries and a final exam. You come straight back here after paying.
Pro, monthly
$19 per month
For a short burst before an exam.
- Everything in Pro
- Cancel any time
Pro, yearly
Best value · save 65%$79 per year
That’s $6.58 a month, for a whole course or an exam season.
- Everything in Free
- 42 Pro lessons: merchandising, payroll, depreciation, closing and more
- Entries, multiple choice and calculations, all checked
- A final exam over the whole cycle
- Progress synced across devices
Pro, lifetime
$199 once
Pay once, yours forever. No renewal, no subscription to remember.
- Everything in Pro
- Every Pro lesson we add later
- One payment, no renewal
About this lesson: inventory costing: fifo
First-in, first-out: which costs go to cost of goods sold when prices change. You work through 6 tasks for Summit Gear, a headlamp retailer: 3 journal entries that post to the T-accounts and the trial balance, plus questions and calculations. Each answer is checked straight away, and a wrong one gets an explanation instead of just a red mark.
What you’ll work through
- Summit Gear buys 150 headlamps at $22 each on account.
- Calculation It sells 180 headlamps. Under FIFO, what is the cost of goods sold?
- Record the sale: 180 headlamps at $40 each on account, at the FIFO cost you worked out.
- Calculation What is ending inventory now under FIFO? Enter its cost.
- It buys 100 more headlamps at $24 each, paying cash.
- Calculation It sells 120 headlamps. What is the FIFO cost of goods sold?
Worked example: a journal entry from this lesson
Summit Gear buys 150 headlamps at $22 each on account.
| Account | Debit | Credit |
|---|---|---|
| Inventory | 3,300 | |
| Accounts Payable | 3,300 | |
| Total | 3,300 | 3,300 |
Inventory increased, so it's a debit. Assets increase with a debit. Accounts Payable increased, so it's a credit. Liabilities increase with a credit. A new cost layer: 150 units at $22. Now there are two layers.
Written by Sascha Heyer. Last updated November 10, 2026. US GAAP and IFRS wording are simplified for learning.