Guide · Stock valuation
FIFO vs weighted average cost: which should your business use?
FIFO (first in, first out) charges the oldest purchase prices to sales first, so closing stock carries the latest prices. Weighted average charges every sale at the average cost of all units on hand. When prices rise, FIFO shows lower cost of sales and higher profit; average smooths price swings. Both are accepted under IFRS; LIFO is not.
Published: · Last updated: · By Daftiq team · Topic: Guides
- FIFO
- Oldest cost goes to sales first; stock holds the newest costs
- Weighted average
- Every unit costs the running average of what you hold
- When prices rise
- FIFO: higher profit and stock value; average: in between
- Not allowed
- LIFO is not permitted under IFRS (IAS 2)
Why does the costing method matter?
When you buy the same product several times at different prices, each sale raises a question: which price did the goods you just sold cost? The answer sets your cost of goods sold (COGS), your gross profit and the value of the stock left in the godown. In Pakistan, where the rupee, fuel and import duties move prices up several times a year, the choice makes a visible difference.
The method does not change the cash you paid. It only decides how the same total cost is split between "sold this month" and "still in stock". Over the life of the stock the totals are equal; within one month or one year, they are not.
FIFO vs weighted average: a worked example
A trader buys and sells one product in January. The numbers are made up to show the method:
| Date | Movement | Units | Price (Rs) | Value (Rs) |
|---|---|---|---|---|
| 1 Jan | Purchase | 100 | 200 | 20,000 |
| 10 Jan | Purchase | 100 | 240 | 24,000 |
| 15 Jan | Sale | 150 | ||
| 31 Jan | Left in stock | 50 |
How do you calculate cost with FIFO?
FIFO assumes the first units bought are the first sold. The sale of 150 units takes all 100 units from 1 January and 50 from 10 January.
- Cost of goods sold = 100 × 200 + 50 × 240 = Rs 32,000.
- Closing stock = 50 × 240 = Rs 12,000.
- Check: 32,000 + 12,000 = Rs 44,000, the total you paid.
FIFO keeps "layers": each purchase stays a separate batch with its own cost until it is used up. That is also how most shops physically rotate stock, oldest first.
How do you calculate weighted average cost?
Weighted average works out a new average cost every time stock comes in: total value on hand divided by total units on hand.
- After the second purchase: (20,000 + 24,000) ÷ 200 units = Rs 220 per unit.
- Cost of goods sold = 150 × 220 = Rs 33,000.
- Closing stock = 50 × 220 = Rs 11,000.
- Check: 33,000 + 11,000 = Rs 44,000.
This is the "moving" or perpetual average, recalculated with each receipt. A periodic average uses the whole month's purchases at once; in software, the moving average is the usual choice.
What is the effect on profit and stock?
Say the 150 units were sold for Rs 300 each, Rs 45,000 in total:
| FIFO | Weighted average | |
|---|---|---|
| Sales | 45,000 | 45,000 |
| Cost of goods sold | 32,000 | 33,000 |
| Gross profit | 13,000 | 12,000 |
| Closing stock | 12,000 | 11,000 |
With rising prices, FIFO shows Rs 1,000 more profit this month and Rs 1,000 more stock. When prices fall, the effect reverses. Over time the difference evens out, because the stock still has to be sold.
Which costing method should you choose?
- Choose FIFO for goods with expiry dates or fast price changes, such as medicines, food, cosmetics and imported goods. It matches how stock really moves and keeps the balance sheet close to current prices.
- Choose weighted average for interchangeable goods bought in bulk and mixed together, such as grain, cement, yarn, chemicals or spare parts in one bin. It is simpler and smooths out price jumps.
- Use specific identification only for unique items with serial numbers, such as vehicles or high-value machines.
- Do not use LIFO (last in, first out). IAS 2, which applies under the IFRS framework followed in Pakistan, does not allow it.
- Pick one method per type of product and stick to it. Changing every year makes your profits impossible to compare.
For tax, the Income Tax Ordinance 2001 has its own rules on valuing stock-in-trade (section 35), and changing your method may need approval. Speak to your tax adviser before you switch.
What about standard cost?
Many small businesses simply value stock at a fixed cost price per product, called standard cost. It is easy, but when purchase prices move, the stock value drifts away from what you actually paid and the difference has to be corrected. It suits stable prices and manufacturers who compare actual production cost with a standard, as explained in bill of materials and production costing.
How do you set FIFO or average cost in Daftiq?
Stock valuation is in Buy & Stock with the Inventory module.
- Open Stock valuation and find Costing method per category.
- For each product category, choose Standard (cost price), Average or FIFO and confirm. Daftiq asks before it values the category by the new method from now on.
- From that day, Average and FIFO keep valuation layers: each bill or goods receipt adds a layer, and each sale, POS sale or production use takes cost from them.
- Check the page: it shows the quantity, unit cost and value of each product, and compares the total with the 1200 Inventory account in your books, so a gap shows up.
- Freight, customs and clearing charges can be added to Average and FIFO products as landed costs.
Average and FIFO start from the stock you hold on the day you switch; past movements are not re-costed. Switch at the start of a month or year if you can.
What should you read next?
The cost of an imported product is more than the supplier's invoice. See how to calculate landed cost. Valuation is only right if quantities are right, so pair it with a regular stock count.
Frequently asked questions
Is FIFO or weighted average better for tax?
When prices are rising, FIFO usually shows a higher profit and so more tax in that year; weighted average shows a little less. Over the full life of the stock the totals even out. Ask your tax adviser before choosing or changing.
Can I use FIFO for some products and average for others?
Yes, as long as products of the same kind use the same method consistently. Many businesses use FIFO for dated goods and average for bulk goods.
Is LIFO allowed in Pakistan?
No, not for financial statements prepared under IFRS, because IAS 2 does not permit it. Use FIFO, weighted average or, for unique items, specific identification.
Does FIFO mean I must sell old stock first?
No. FIFO is a costing assumption. But selling oldest stock first is good practice for anything that expires or goes out of fashion.
What happens to stock value when I switch methods?
Usually the new method starts from the stock on hand on the switch date at its current cost. Past sales are not re-costed. Note the switch and the reason in your records.
Do this in Daftiq
- Stock Valuation: FIFO, Average or Standard Cost : Value stock at standard cost, moving average or FIFO per product category, see stock value per product and compare it with the Inventory account.
- Landed Cost: Freight, Customs, Clearing : Add freight, customs duty and clearing charges to the cost of imported goods, spread by value, quantity or weight, from the clearing agent's bill.
Recent posts
- Urdu Accounting Terms: Khata, Rokar, Udhaar : A plain glossary of Urdu business and accounting words used in Pakistan, from khata, rokar and udhaar to naam, jama and goshwara, with English meanings.
- How to Choose ERP Software for a Small Business : A practical checklist for choosing ERP software in Pakistan: your must-haves, FBR and payroll needs, total cost, trial with real data and an exit plan.
- Move from Excel, Tally or QuickBooks to an ERP : A step-by-step plan to move your books from Excel, Tally or QuickBooks to an ERP: cut-off date, clean lists, opening balances, open invoices and checks.
Value stock the way your business works
Choose standard, average or FIFO per category and see stock value next to your books in Daftiq. Read inventory software for Pakistan.