Stock valuation is how you put a rupee value on the stock you hold and on the stock you sold. In Sri Lanka the two common methods are FIFO (first in, first out) and weighted average cost; LIFO is not allowed. When you buy the same item at different prices, the method decides which price goes to cost of sales and which stays in closing stock, so it changes both your profit and your balance sheet.
This guide works through both methods with the same example in rupees, so you can see the difference, and explains the rules a Sri Lankan shop or wholesaler should know.
Why the method matters
Suppose you bought the same pipe at Rs. 500, then Rs. 560, then Rs. 600, and sold some in between. Which of those prices did the pipes you sold cost? There is no single answer, so accounting standards give you a few cost formulas to choose from. The choice affects:
- Gross profit: sales minus the cost of the goods sold.
- Closing stock: the value on your balance sheet at the end of the period.
- Income tax: because profit is the starting point for it.
- Pricing: if you price on cost plus margin, the cost you see changes your selling price.
What goes into the cost of stock
Before choosing a method, get the cost per unit right. Under LKAS 2, the cost of purchase includes:
- the purchase price, less trade discounts and rebates,
- import duties and other taxes that you cannot recover,
- transport, handling and other costs directly needed to bring the goods to your shop or warehouse.
For a VAT-registered business that claims input VAT, the 18% VAT is recoverable, so it is not part of cost. For a business that is not VAT-registered, the VAT paid is part of cost. Freight, duty and clearing on imports are part of cost; see landed cost explained.
The example we will use
A hardware shop sells PVC pipe, 1/2 inch, 6 m lengths. In November it records:
| Date | Event | Units | Cost per unit (Rs.) | Value (Rs.) |
|---|---|---|---|---|
| 1 Nov | Opening stock | 100 | 500.00 | 50,000.00 |
| 5 Nov | Purchase | 200 | 560.00 | 112,000.00 |
| 12 Nov | Sale | 180 | ||
| 20 Nov | Purchase | 150 | 600.00 | 90,000.00 |
| 26 Nov | Sale | 170 |
Goods available for sale: 450 units costing Rs. 252,000.00. Units sold: 350. Units left at the end: 100. The pipes sell at Rs. 750.00 each, so sales are 350 x Rs. 750.00 = Rs. 262,500.00.
FIFO (first in, first out)
FIFO assumes the oldest units leave first. Each sale uses up the oldest batch before touching the next, so the stock left at the end carries the latest prices.
Sale on 12 November, 180 units:
| From | Units | Cost per unit (Rs.) | Cost (Rs.) |
|---|---|---|---|
| Opening stock | 100 | 500.00 | 50,000.00 |
| 5 Nov purchase | 80 | 560.00 | 44,800.00 |
| Cost of this sale | 180 | 94,800.00 |
That leaves 120 units from 5 November at Rs. 560.00.
Sale on 26 November, 170 units:
| From | Units | Cost per unit (Rs.) | Cost (Rs.) |
|---|---|---|---|
| 5 Nov purchase | 120 | 560.00 | 67,200.00 |
| 20 Nov purchase | 50 | 600.00 | 30,000.00 |
| Cost of this sale | 170 | 97,200.00 |
FIFO result: cost of goods sold Rs. 94,800.00 + Rs. 97,200.00 = Rs. 192,000.00. Closing stock is the last 100 units from 20 November at Rs. 600.00 = Rs. 60,000.00. Check: Rs. 192,000.00 + Rs. 60,000.00 = Rs. 252,000.00, the total cost of goods available.
Weighted average cost
Weighted average cost gives every unit on hand the same cost: the total cost of the units available divided by the number of units.
Average cost per unit = total cost of units available ÷ number of units available
There are two ways to apply it.
Moving average (worked out after each purchase)
The average is recalculated every time new stock arrives, and each sale is costed at the average on that day.
| Date | Event | Units | Cost per unit (Rs.) | Value (Rs.) | Units on hand | Stock value (Rs.) | Average (Rs.) |
|---|---|---|---|---|---|---|---|
| 1 Nov | Opening | 100 | 500.00 | 50,000.00 | 100 | 50,000.00 | 500.00 |
| 5 Nov | Purchase | 200 | 560.00 | 112,000.00 | 300 | 162,000.00 | 540.00 |
| 12 Nov | Sale | -180 | 540.00 | -97,200.00 | 120 | 64,800.00 | 540.00 |
| 20 Nov | Purchase | 150 | 600.00 | 90,000.00 | 270 | 154,800.00 | 573.33 |
| 26 Nov | Sale | -170 | 573.33 | -97,466.67 | 100 | 57,333.33 | 573.33 |
Moving average result: cost of goods sold Rs. 97,200.00 + Rs. 97,466.67 = Rs. 194,666.67. Closing stock is 100 units at Rs. 573.33 = Rs. 57,333.33. Keep the average unrounded while you work (Rs. 154,800 ÷ 270 = Rs. 573.333...) and round only the final figures.
Periodic average (worked out once for the period)
The average is worked out once, from everything available in the period: Rs. 252,000.00 ÷ 450 units = Rs. 560.00 per unit.
- Cost of goods sold: 350 x Rs. 560.00 = Rs. 196,000.00
- Closing stock: 100 x Rs. 560.00 = Rs. 56,000.00
The periodic average is easy to work out by hand at month end. The moving average gives you a current cost after every purchase.
The three results side by side

| FIFO | Moving average | Periodic average | |
|---|---|---|---|
| Sales (Rs.) | 262,500.00 | 262,500.00 | 262,500.00 |
| Cost of goods sold (Rs.) | 192,000.00 | 194,666.67 | 196,000.00 |
| Gross profit (Rs.) | 70,500.00 | 67,833.33 | 66,500.00 |
| Closing stock (Rs.) | 60,000.00 | 57,333.33 | 56,000.00 |
The same pipes, the same sales, and three different profits. The total is the same in every column: cost of goods sold plus closing stock always equals Rs. 252,000.00. The method only decides how that cost is split between this month's profit and the stock you carry forward.
Prices were rising in this example, so FIFO shows the highest profit and the highest closing stock. When purchase prices fall, the order flips and FIFO shows the lowest.
Why LIFO is not allowed
LIFO (last in, first out) assumes the newest units are sold first, which leaves old prices in your closing stock. LKAS 2 does not include it among the permitted cost formulas, and the Sri Lanka Accounting Standard for Smaller Entities says plainly that LIFO is not permitted. You will still see LIFO in articles written for other countries; it does not apply to Sri Lankan financial statements.
Specific identification
For items that are not interchangeable, the cost of each individual item is used. Examples are a piece of equipment built to a customer's order, or goods set aside for a specific project. Specific identification is not appropriate for large numbers of interchangeable items, such as boxes of the same tile or the same phone charger.
Which method should you use?
| Your situation | Often a good fit |
|---|---|
| You buy the same items again and again at changing prices | Weighted average cost |
| Goods really leave in the order they arrive, such as items with expiry dates | FIFO |
| Each item is unique or made for one customer | Specific identification |
Three rules apply whatever you choose:
- Be consistent. Use the same method for all stock of a similar nature and use. A different location, or a different tax rule, is not on its own a reason to use a different method.
- Do not switch to improve one month's profit. A change of method is a change in accounting policy and has to be justified and disclosed.
- Ask your accountant. They decide the policy for your financial statements and tax return.
Lower of cost and net realisable value
Whichever method you use, stock must not be shown at more than it will bring in. Net realisable value (NRV) is the expected selling price, less the costs to finish and sell the item.
At the end of November, 10 of the 100 pipes are cracked. They will sell at Rs. 300.00 each, and cutting and delivery will cost Rs. 20.00 each, so NRV is Rs. 280.00 per pipe.
- Under FIFO, they cost Rs. 600.00 each: write down 10 x (Rs. 600.00 - Rs. 280.00) = Rs. 3,200.00.
- Under moving average, they cost Rs. 573.33 each: write down 10 x (Rs. 573.33 - Rs. 280.00) = Rs. 2,933.33.
Write-downs are usually done item by item. A stock count is the best time to find damaged, expired and slow-moving stock.
Common mistakes
- Leaving landed cost out. Valuing imports at the supplier's price alone makes margins look bigger than they are.
- Including recoverable VAT in cost. A VAT-registered business that claims input VAT should value stock before VAT.
- Rounding the average too early. Small rounding errors add up across hundreds of items and months.
- Mixing methods for similar items. Using FIFO for some tiles and average cost for others of the same kind breaks the consistency rule.
- Valuing stock nobody has counted. The method is only as good as the quantities; count regularly.
- Ignoring damaged and dead stock. It must be written down to NRV, not carried at full cost.
How RealCloud handles it
RealCloud is cloud accounting, inventory, billing and POS software, with an online store, built for Sri Lankan businesses. It keeps the figures a stock valuation depends on:
RealCloud values stock using weighted-average cost, per store.
- Cost from real purchases. Goods received notes and supplier bills set the cost of what comes in, store by store.
- Landed cost. Freight, duty, insurance and clearing are spread across imported goods, by value, by quantity or by hand, and settled against the real supplier charge later.
- Counts and write-offs. Full or partial stock counts create the adjustments, and damaged or lost stock is recorded with a stock adjustment.
- Batches. Batch numbers carry expiry dates, manufacture dates, MRP and batch cost.
- Reports. Stock and stock movement reports, profit by item, category and invoice, and an FSN report of fast, slow and non-moving items, with a profit and loss statement and balance sheet in the same system.
Ask us in a free demo call how stock is valued for items like yours. See our POS system, how it works for hardware shops and small factories.
Sources and date checked
Facts checked on 10 November 2026. The rules summarised here are general; your accountant decides the policy for your business.
- Sri Lanka Accounting Standards, LKAS 2 Inventories: paragraph 9 (lower of cost and net realisable value), paragraphs 10 and 11 (cost of purchase), paragraphs 23 to 27 (specific identification, FIFO and weighted average), paragraph 29 (item-by-item write-downs).
- Sri Lanka Accounting Standards, SLFRS for Smaller Entities: paragraphs 5.10 and 5.11 (LIFO is not permitted).
- Example figures calculated by RealCloud Team on 10 November 2026.