Inventory and Cost of Goods Sold
Calculate cost of goods sold with the periodic formula, apply FIFO, LIFO and weighted average costing, and see how each method changes profit and taxes.
Welcome back!
Step 1 of 11Learn
Which jacket did you sell?
A ski shop buys identical jackets three times during the season: 100 in October at $10 each (a simplified price to keep the math easy), 200 in November at $12 and 100 in December at $15, as its supplier's costs rise. By the end of December it has sold 250 jackets. The jackets are identical, and nobody tracks which carton each one came from. So what did the 250 jackets cost?
The answer matters because inventory is an asset on the balance sheet until it's sold, and then its cost moves to the income statement as cost of goods sold (COGS). Every dollar assigned to COGS lowers gross profit; every dollar left in inventory stays on the balance sheet.
Businesses track inventory in one of two ways. A perpetual system updates inventory and COGS with every sale, which is what point-of-sale software does. A periodic system counts inventory at the end of the period and works out COGS with a simple formula:
COGS = beginning inventory + purchases − ending inventory
The logic: everything you had at the start plus everything you bought is what was available for sale. Whatever isn't still on the shelves must have been sold (or lost, stolen or damaged, which is called shrinkage). The physical count is also how businesses discover shrinkage, since the books can't see a stolen item until someone notices it's missing.
Step 2 of 11Practice · Work it out
A hardware store began the year with $18,000 of inventory, bought $64,000 of merchandise during the year, and counted $22,000 of inventory at year end. What was its cost of goods sold, in dollars?
Step 3 of 11Learn
Three cost flow methods: FIFO, LIFO and weighted average
When identical units are bought at different prices, accountants choose a cost flow assumption. It doesn't have to match which items physically leave the store; it's a rule for assigning costs.
Back to the ski shop: 400 jackets available at a total cost of $1,000 + $2,400 + $1,500 = $4,900. It sold 250.
FIFO (first in, first out) assumes the oldest units are sold first. COGS = 100 × $10 + 150 × $12 = $2,800. Ending inventory is the newest units: 50 × $12 + 100 × $15 = $2,100.
LIFO (last in, first out) assumes the newest units are sold first. COGS = 100 × $15 + 150 × $12 = $3,300. Ending inventory is the oldest: 100 × $10 + 50 × $12 = $1,600.
Weighted average uses the average cost of all units available: $4,900 ÷ 400 = $12.25 per jacket. COGS = 250 × $12.25 = $3,062.50; ending inventory = 150 × $12.25 = $1,837.50.
In every method, COGS + ending inventory = $4,900. The methods don't change the total cost; they only split it differently between the income statement and the balance sheet.
A fourth method, specific identification, tracks the actual cost of each item. It's used for unique, high-value goods such as cars, jewelry and real estate, where each unit has its own serial number and price.
Step 4 of 11Practice · Chart
The ski shop's $4,900, split three ways
Every bar has the same total. The method only decides how much goes to the income statement and how much stays on the balance sheet.
Which method sends the most cost to the income statement?
Tap the bar that answers the question, then press Check.
| Item | Cost of goods sold | Ending inventory |
|---|---|---|
| FIFO | $2,800 | $2,100 |
| LIFO | $3,300 | $1,600 |
| Weighted average | $3,063 | $1,838 |
Step 5 of 11Try the calculator
Inventory costing calculator
Enter a beginning inventory and two purchases, each with units and cost per unit, plus the units sold. Compare COGS under each method.
- Cost of goods available
- 4,900 $
- COGS, FIFO
- 2,800 $
- COGS, LIFO
- 3,300 $
- COGS, weighted average
- 3,062.5 $
- Ending inventory, FIFO
- 2,100 $
Step 6 of 11Practice · Work it out
A shop starts with 50 units at $20, then buys 100 units at $22 and 50 units at $25. It sells 120 units. Using FIFO, what is the cost of ending inventory, in dollars?
Step 7 of 11Learn
Why the choice matters: profit, taxes and rules
When prices are rising, as they usually are over time, the methods give predictably different results:
- FIFO assigns the older, cheaper costs to COGS. COGS is lowest, so gross profit and net income are highest, and ending inventory on the balance sheet is closest to current replacement cost.
- LIFO assigns the newest, most expensive costs to COGS. COGS is highest, so reported profit is lowest, and so is taxable income, which is why some US companies prefer it. Ending inventory can end up valued at costs from decades ago.
- Weighted average falls in between and smooths out price swings.
When prices fall, the effects reverse.
Two rules shape the choice. First, IFRS does not permit LIFO, so companies reporting under international standards use FIFO or weighted average. US GAAP allows LIFO. Second, the US LIFO conformity rule says a company that uses LIFO for its tax return must also use it in its financial statements; it can't show investors high FIFO profits while showing the tax authority low LIFO profits.
Whatever method a company chooses, it must use it consistently and disclose it, so readers can compare years. Inventory is also subject to a write-down rule: if its value falls below cost (because of damage, obsolescence or falling prices), it must be written down, generally to net realizable value, and the loss recognized. That's conservatism at work.
Step 8 of 11Compare
FIFO vs. LIFO vs. weighted average when prices are rising
| Aspect | FIFO | LIFO | Weighted average |
|---|---|---|---|
| Cost of goods sold | Lowest | Highest | In between |
| Net income | Highest | Lowest | In between |
| Income taxes | Highest | Lowest | In between |
| Ending inventory on the balance sheet | Closest to current cost | Based on old, low costs | In between |
| Allowed under IFRS | Yes | No | Yes |
Step 9 of 11Practice · Choose one
During a year of steadily rising purchase prices, which inventory method will report the highest net income?
Step 10 of 11Practice · True or false
A company reporting under IFRS can choose LIFO to reduce its reported profit during inflation.
Step 11 of 11Practice · Work it out
Use the same data: 50 units at $20, 100 units at $22 and 50 units at $25, with 120 units sold. Using the weighted average method, what is cost of goods sold, in dollars?
Lesson complete!