Inventory valuation: weighted average cost and first-in, first-out with a worked example

You buy the same item at different prices during the year, so at which price do you calculate the cost of what you sold and the value of what is left? The valuation method answers this question, and it directly affects gross profit and the value of inventory in the statement of financial position.

Last updated: 6 min read

Accounting and financial statementsPractical examples in Saudi riyals

What goes into the cost of inventory?

Cost includes the purchase price, freight, customs duties and whatever is needed to bring the item to its location and condition, less trade discounts. Deductible input VAT does not go into cost, because it is recovered from output VAT.

Two accepted methods, with one example

A business bought 100 units at SAR 10, then 100 units at SAR 12, and sold 150 units.

First-in, first-out: the oldest goes out first
100 units × SAR 10
SAR 1,000
50 units × SAR 12
SAR 600
Cost of goods sold
SAR 1,600
Remaining inventory (50 × 12)
SAR 600
Average cost: one weighted price
Total purchases
SAR 2,200
Average unit cost (2,200 ÷ 200)
SAR 11
Cost of goods sold (150 × 11)
SAR 1,650
Remaining inventory (50 × 11)
SAR 550

When prices are rising, first-in, first-out gives higher profit and slightly higher inventory, while average cost gives a smoother result. In this example the difference is SAR 50.

Why is last-in, first-out not accepted?

International standards, including the standard for small and medium-sized entities adopted in the Kingdom, do not allow last-in, first-out. The same method is used for similar items, and it changes only for a justified reason. Items that are not interchangeable, such as a special order made to a customer's specifications, are tracked at their actual cost.

When inventory is worth less than its cost

Inventory is never shown at more than can be recovered from it. If an item is damaged or its price falls, compare its cost with its net realisable value, that is, the expected selling price less the costs of completion and sale, and record the difference as a loss.

Example: a slow-moving item
Cost
SAR 550
Expected selling price
SAR 520
Selling costs
SAR 40
Net realisable value
SAR 480
Impairment loss
SAR 70

The stock count corrects the books

  1. Set the count date, and stop movements in the warehouse or record whatever moves during the count.
  2. Count the quantities physically, without looking at the system balance if possible.
  3. Compare the quantities with the system balances, and look for the causes of large differences.
  4. Approve the adjustments with their entry, after review by someone other than the person who counted.

Valuation in Muhhkam

Muhhkam values inventory at average cost, and uses it to calculate the cost of goods sold and of issues automatically with every document. Under Inventory, Stock counts and adjustments («الجرد والتسويات») records the actual quantities and their differences, and you will find the balances in Items and balances («الأصناف والأرصدة») and Inventory movements («حركة المخزون»). The software does not currently offer the first-in, first-out method.

This guide is general information based on the regulations published up to its last update. Regulations and rates may change, so check the official sources or a qualified adviser before you make a decision. The Arabic version of this guide is the original.

Frequently asked questions

Ready to take control?
Start today. The trial is free.

14 days on the Comprehensive plan with every feature. Sign up in minutes and issue your first invoice today.