Skip to content
Sri Lanka · Sinhala, Tamil & English

Stock valuation methods: FIFO and weighted average cost, with worked examples

By RealCloud TeamLast updated Facts checked on 10 min read

A plain-English guide to valuing stock for Sri Lankan shops and wholesalers: what goes into the cost of stock, the first-in, first-out (FIFO) and weighted average cost methods worked out step by step in rupees, how each changes your profit, why LIFO is not allowed under Sri Lankan accounting standards, and the lower of cost and net realisable value rule.

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:

DateEventUnitsCost per unit (Rs.)Value (Rs.)
1 NovOpening stock100500.0050,000.00
5 NovPurchase200560.00112,000.00
12 NovSale180
20 NovPurchase150600.0090,000.00
26 NovSale170

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:

FromUnitsCost per unit (Rs.)Cost (Rs.)
Opening stock100500.0050,000.00
5 Nov purchase80560.0044,800.00
Cost of this sale18094,800.00

That leaves 120 units from 5 November at Rs. 560.00.

Sale on 26 November, 170 units:

FromUnitsCost per unit (Rs.)Cost (Rs.)
5 Nov purchase120560.0067,200.00
20 Nov purchase50600.0030,000.00
Cost of this sale17097,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.

DateEventUnitsCost per unit (Rs.)Value (Rs.)Units on handStock value (Rs.)Average (Rs.)
1 NovOpening100500.0050,000.0010050,000.00500.00
5 NovPurchase200560.00112,000.00300162,000.00540.00
12 NovSale-180540.00-97,200.0012064,800.00540.00
20 NovPurchase150600.0090,000.00270154,800.00573.33
26 NovSale-170573.33-97,466.6710057,333.33573.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

Illustration comparing FIFO, where oldest stock leaves first on a conveyor, with weighted average cost, shown as balanced scales over uniform boxes on the shelf

FIFOMoving averagePeriodic average
Sales (Rs.)262,500.00262,500.00262,500.00
Cost of goods sold (Rs.)192,000.00194,666.67196,000.00
Gross profit (Rs.)70,500.0067,833.3366,500.00
Closing stock (Rs.)60,000.0057,333.3356,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 situationOften a good fit
You buy the same items again and again at changing pricesWeighted average cost
Goods really leave in the order they arrive, such as items with expiry datesFIFO
Each item is unique or made for one customerSpecific 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.

Frequently asked questions

What are the methods of stock valuation allowed in Sri Lanka?

Sri Lanka Accounting Standard LKAS 2 allows first-in, first-out (FIFO) and weighted average cost for items that are interchangeable, and specific identification for items that are not, such as goods made for a particular project. The Sri Lankan standard for smaller entities allows the same methods. LIFO is not permitted.

What is the difference between FIFO and weighted average cost?

FIFO assumes the units you bought first are sold first, so the stock left at the end carries the most recent prices. Weighted average cost gives every unit the same average cost, worked out from all the units available. When purchase prices rise, FIFO shows a higher closing stock value and a higher profit than weighted average.

Is LIFO allowed in Sri Lanka?

No. LKAS 2 does not include last-in, first-out (LIFO) as a permitted cost formula, and the Sri Lanka Accounting Standard for Smaller Entities says directly that LIFO is not permitted. Use FIFO, weighted average cost or, for items that are not interchangeable, specific identification.

Which stock valuation method is best for a small shop?

Weighted average cost is often simpler when you buy the same item again and again at changing prices, because every unit carries one cost. FIFO suits goods that really do leave in the order they arrive, such as items with expiry dates. Use the same method for items of a similar nature and use, and agree the choice with your accountant.

Do freight, duty and VAT go into the cost of stock?

Freight, import duty, handling and other costs of bringing goods to your shop are part of their cost. Taxes you can recover, such as VAT you claim back as input tax, are not. If you are not VAT-registered and cannot claim the VAT, it is part of the cost. Trade discounts and rebates reduce the cost.

What does lower of cost and net realisable value mean?

Stock must not be shown at more than you can get for it. Net realisable value is the expected selling price less the costs to finish and sell the item. If damaged, old or slow stock will sell for less than it cost, write it down to that lower value. The check is usually done item by item.

Related guides

Landed cost explained: how to cost imported stock in Sri Lanka

A practical guide to landed cost for Sri Lankan importers and traders: what to include, how to spread freight, duty, insurance and clearing across items by value, quantity or by hand, how to use estimates and true them up, and when to capitalize or expense a cost.

Updated 1 November 2026 · 7 min read

How to do a stock count in a Sri Lankan shop, step by step

A step-by-step guide to counting stock in a shop or warehouse: when to do a full count and when a partial count is enough, how to prepare, how to count, how to investigate differences and how to turn them into stock adjustments, including how RealCloud generates the adjustments.

Updated 1 November 2026 · 6 min read

Stock Excel sheet template: how to keep stock in Excel, step by step

How to build a simple stock register in Excel or Google Sheets for a Sri Lankan shop: the three sheets you need, the exact columns and formulas for stock in, stock out, balance and reorder alerts, a worked example, a daily routine, common mistakes, and the signs it is time to move to stock software.

Updated 10 November 2026 · 10 min read

GRN full form: what a goods received note is

GRN full form is goods received note: your record of what a supplier actually delivered. How it differs from a purchase order and an invoice, what a pre-GRN is, a simple example, and why it is not a payment receipt.

Updated 11 November 2026 · 9 min read

Get a free demo call

Leave your number—we will call you back in Sinhala, Tamil, or English.

Get a free demo call

+94