HalalBook
🎓 Advanced accounting · Advanced · ⏱ 9 min

Inventory valuation: FIFO and average cost

When prices change, which cost do you use?

If you bought the same item at different prices, you must decide which cost goes to cost of goods sold when you sell one.

PurchaseUnitsCost eachTotal
1 March10550
10 March10770
Total20120

On 15 March you sell 12 units.

FIFO: first in, first out

The oldest units are sold first: 10 at 5 + 2 at 7 = 64 cost of goods sold. The 8 left are valued at 7 each = 56.

Weighted average cost

Average cost = 120 ÷ 20 = 6 per unit. COGS = 12 × 6 = 72. The 8 left are valued at 48.

MethodCOGSStock left
FIFO6456
Average cost7248

Both are correct methods. Choose one and use it every year so your reports can be compared.

HalalBook uses moving average cost. Each purchase updates the average, and every sale uses the average at that moment.

See the Inventory guide →

⭐ Key points

  • FIFO sells the oldest costs first.
  • Average cost uses one blended cost per unit.
  • Be consistent from year to year.

🧠 Quick quiz

1 FIFO stands for…
2 You have 10 units at 4 and 10 units at 6. The average cost is…
3 Which method does HalalBook use?
Feedback
An unexpected error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.