Sub topic 3
Periodic and perpetual inventory systems
This chapter assumes you know debits and credits, and that you can compute cost of goods sold (COGS) as goods available for sale minus ending inventory. It introduces the two ways of recording inventory. The method chapters that follow (FIFO, LIFO, weighted average) apply to both.
Two ways to keep the records
A periodic system updates the inventory account only at the end of a period, after a physical count. During the period, purchases go to a temporary Purchases account. COGS is found by calculation:
COGS = beginning inventory + purchases − ending inventory
A perpetual system updates the inventory account after every purchase and every sale. The books always show units and cost on hand. Each sale records two entries: revenue, and the cost of the goods that left.
What the entries look like
| Event | Periodic system | Perpetual system |
|---|---|---|
| Buy goods on credit | Dr Purchases, Cr Accounts Payable | Dr Inventory, Cr Accounts Payable |
| Sell goods on credit | Dr Accounts Receivable, Cr Sales | Dr Accounts Receivable, Cr Sales; Dr COGS, Cr Inventory |
| Period end | Count inventory, then adjust to find COGS | Compare the count with the books and adjust for shrinkage |
Why the cost flow method interacts with the system
Timing changes the answer for some methods.
- FIFO gives the same result in both systems. The oldest layers always go first, whenever you apply the rule.
- LIFO can differ. A periodic system takes the newest layers of the whole period. A perpetual system takes the newest layers on hand at each sale date, which may be older ones. In our example both give $3,200, but only because the last purchase came before the last sale.
- Weighted average differs. A periodic system uses one average for the whole period. A perpetual system recalculates a moving average after each purchase.
Worked example: moving average
Start with 100 units at $10. Buy 200 at $12 on day 5. Sell 150 on day 10. Buy 100 at $14 on day 15. Sell 100 on day 20.
# Perpetual moving average: recompute the average cost after every purchase.
units, total_cost = 100, 1000.0
cogs = 0.0
events = [
('buy', 200, 12), # day 5
('sell', 150, None), # day 10
('buy', 100, 14), # day 15
('sell', 100, None), # day 20
]
for kind, qty, unit_cost in events:
if kind == 'buy':
units += qty
total_cost += qty * unit_cost
else:
avg = total_cost / units
out = qty * avg
cogs += out
units -= qty
total_cost -= out
print(round(cogs, 2), units, round(total_cost, 2))
# 2940.0 150 1860.0On day 10 the average is $3,400 / 300 = $11.33, so the sale costs $1,700. On day 20 the average is $3,100 / 250 = $12.40, so the sale costs $1,240. COGS is $2,940, and ending inventory is $1,860.
The periodic weighted average for the same events uses one average: $4,800 / 400 = $12.00. Multiplied by 250 units sold, COGS is $3,000 and ending inventory is $1,800. The difference of $60 comes only from timing.
Common errors
- Using the periodic average in a perpetual system. The average must be recalculated after each purchase.
- Averaging a sale's cost with units bought after the sale. In a perpetual system, a sale uses only what was on hand at that date.
- Forgetting the second entry. Each perpetual sale needs both the revenue entry and the COGS entry.
- Assuming the count is unnecessary under a perpetual system.
Exercise
A company uses a perpetual system with moving average. It holds 100 units at $10 and buys 100 more at $14. It then sells 150 units. What is the COGS for that sale?
Show answer
The average cost is (1,000 + 1,400) / 200 = $12 per unit. COGS is 150 × $12 = $1,800.
Exercise
Which of FIFO, LIFO, and weighted average always give the same COGS under periodic and perpetual systems?
Show answer
Only FIFO. The oldest costs go first whenever the rule is applied. LIFO and weighted average can differ because the layers or averages available at each sale date change with timing.