The mug cost you KES 90 last month. This month's delivery cost KES 110. Today you sold one. What did that mug cost you?
It sounds like a trick question, and it's a real one. The answer depends on which method you use to decide, and the method changes your profit and the value of what's left on your shelf. There are three common ones.
The problem
When a product's price from your supplier changes, you end up holding the same item at two different costs. Sell one, and your books need to say which cost went out the door.
There's no physical way to tell. A mug is a mug. So you choose a rule, and the rule has a name:
- FIFO (first in, first out): the oldest cost leaves first.
- LIFO (last in, first out): the newest cost leaves first.
- Weighted average: every unit is given the same average cost.
These methods are different ways of assigning the cost of your stock between what you've sold and what remains. But you can't always choose freely between them. The accounting rules that apply to your business determine which methods you can use. We'll look at that shortly.
One example, three answers
You bought 10 mugs at KES 90, and later another 10 at KES 110. That's 20 mugs for KES 2,000 in total. You've sold 8, and 12 are left. (If it looks familiar, it's the example from how to calculate the value of your stock, where we looked at two of these methods.)
| Method | Cost of the 8 sold | Value of the 12 left |
|---|---|---|
| FIFO | KES 720 | KES 1,280 |
| LIFO | KES 880 | KES 1,120 |
| Weighted average | KES 800 | KES 1,200 |

Here is where each number comes from.
FIFO. The oldest mugs go first, so the 8 sold all came from the KES 90 batch: 8 × 90 = 720. What's left is 2 old mugs and 10 new ones: (2 × 90) + (10 × 110) = 180 + 1,100 = 1,280.
LIFO. The newest mugs go first, so the 8 sold came from the KES 110 batch: 8 × 110 = 880. What's left is 10 old mugs and 2 new ones: (10 × 90) + (2 × 110) = 900 + 220 = 1,120.
If your business prepares accounts under IFRS or IFRS for SMEs, LIFO isn't permitted. We'll return to this below.
Weighted average. Spread the total cost evenly. KES 2,000 over 20 mugs is KES 100 each. The 8 sold cost 8 × 100 = 800, and the 12 left are worth 12 × 100 = 1,200.
Notice that in every row, the two numbers add up to KES 2,000. No money has appeared or vanished. It has only been divided up differently.
What it does to your profit

Say you sold those 8 mugs at KES 150 each, which brings in KES 1,200.
| Method | Cost of goods sold | Gross profit |
|---|---|---|
| FIFO | KES 720 | KES 480 |
| LIFO | KES 880 | KES 320 |
| Weighted average | KES 800 | KES 400 |
Same sales, same stock, same prices. The calculated gross profit ranges from KES 320 to KES 480, depending on the costing method.
That's because prices were rising. When costs go up, FIFO charges your sales with the older, cheaper cost, so profit looks higher. LIFO charges them with the newer, dearer cost, so profit looks lower. Weighted average lands in between. If prices were falling, the order would reverse.
It's why the method matters, and why you should pick one and keep to it. Changing methods without a valid reason can make your reported profit jump for reasons unrelated to how the business performed.
Rotating your stock is a different question
It's easy to mix up two ideas that share a name.
FIFO as a way of arranging stock means selling the oldest items first, so they don't go stale. It's good practice for anything that expires. For perishables, the rule is sometimes called FEFO, first expired first out.
FIFO as a costing method is just a bookkeeping assumption about which cost to record.

You can rotate your shelves oldest-first and still value your stock at the average cost. Rotation is about the goods. The costing method is about the numbers. They don't have to match.
Why LIFO isn't usually an option.
LIFO is useful to understand, but it has a catch. Under IFRS, inventory must be valued using FIFO or weighted average for interchangeable items. LIFO isn't permitted. The same restriction applies under IFRS for SMEs.
So while we've included LIFO in the example to show how the numbers can differ, don't assume you can use it in your own accounts. Check which accounting standards apply to your business.
Which should you use?
For most small shops, we'd say weighted average. It's the simplest to keep: one cost per product, updated when you buy. It smooths out price jumps, and it's easy to explain.

FIFO is a good choice if you keep batch records already, or you sell items that expire and you track them by delivery.
Whichever you choose, three things matter more than the choice itself:
- Pick one and stay with it, so your months can be compared.
- Check what your accountant or tax authority expects, especially if you need figures for a loan or a tax return.
- Use the same method for similar products. Don't switch between FIFO and weighted average just because one gives you a more attractive profit figure. Different types of inventory may justify different methods, but keep the treatment consistent within each group.
For items that are one of a kind, like jewellery or second-hand equipment, you'd just record the actual cost of each. It's called specific identification, and it's the simplest of all. But keep in mind that tracking the actual cost of each item can require more record-keeping.
Keeping the numbers
With weighted average, you can calculate an average for a period or update it whenever new stock arrives. For a small shop tracking stock continuously, the second approach is often more practical. Each time you buy more, add the new purchase value to the existing stock value and divide by the new total quantity.
With FIFO, keep a small table of batches for each product: the date, the quantity, the cost. When you sell, take from the oldest row first.
You can do either in a spreadsheet. Our free stock value calculator works with whichever you choose. For average cost, enter one row per product with the average. With FIFO, enter each batch on its own row, with its own quantity and cost. The calculator adds the remaining batches to get your total stock value. In our example, the two remaining mugs from the KES 90 batch and the ten from the KES 110 batch come to KES 1,280. With weighted average, one row for all 12 mugs at KES 100 each gives KES 1,200.
Common mistakes
Changing methods without telling anyone. Your profit will move, and you won't know why.
Averaging once and forgetting. The average cost needs updating every time you buy at a new price.
Mixing cost and selling price. Whatever method you use, it only works with costs.
Ignoring the cost of getting the goods. Delivery and duties belong in the cost of each batch. Our guide to cost of goods sold explains what goes in.
Forgetting to check with an accountant. Some businesses are required to use a particular method.
Final thoughts
None of the three methods is the right one. They're three honest ways to answer a question that has no physical answer, and the best of them is the one you'll keep up and apply the same way every month.
If you've never thought about it, you're probably using one by accident. Next time a price changes, notice which cost you assumed, and decide whether you meant to.
Key takeaways
- When a product's cost changes, FIFO, LIFO and weighted average give three different splits of the same total cost.
- In the example, the 8 mugs sold cost KES 720, 880 or 800, and gross profit ranged from KES 320 to KES 480.
- When prices rise, FIFO shows higher profit than LIFO, and weighted average sits between them.
- Rotating stock oldest-first is separate from the costing method you use in your books.
- For most small shops, weighted average is simplest. Pick one method, keep to it, and check what your accountant expects.


