When you sell a unit, its cost moves out of stock and becomes an expense. The rule the system uses to pick that cost is the inventory valuation method.
Two key figures
Stock value (inventory value): the cost of the goods you still hold. It is an asset on the balance sheet.
Cost of goods sold (COGS): the cost of the goods you sold in the period. It is an expense in the profit and loss account.
Gross margin = sales - COGS. The basic link between the figures is:
Cost is more than the supplier's price. Under IAS 2 Inventories, part of the IFRS Accounting Standards, the cost of purchase includes the purchase price, import duties and other taxes that you cannot reclaim, and transport, handling and other costs directly linked to getting the goods. Trade discounts are deducted. Taxes that you can reclaim are not part of cost. In trade, this total is commonly called landed cost.
Cost element (example)
CU
500 modules at 80 CU
40,000
Sea freight and local transport
2,000
Import duty (not reclaimable)
1,500
Insurance and port handling
500
Total landed cost
44,000
Landed cost per module = 44,000 / 500 = 88 CU. Pricing from 80 CU would overstate the margin by 8 CU per module.
Valuation methods
You buy the same item many times at different costs. When you sell 250 modules, which cost do you use? The two methods most used for trading goods are FIFO and weighted average. Both are permitted by IAS 2. A third method, LIFO (last in, first out), is not permitted by IAS 2, though some national rules allow it.
Which methods are allowed for your accounts and tax return depends on your country. Choose with your accountant, then apply the method consistently.
IAS 2 also requires stock to be carried at the lower of cost and net realisable value: the expected selling price less the costs of selling. If old modules can only be sold below cost, their value must be written down.
FIFO means first in, first out. The system assumes that the oldest units are sold first. So the cost of the oldest purchase is used first for COGS, and the stock that remains carries the cost of the newest purchases.
FIFO is a costing rule. It does not force the warehouse to ship the oldest pallet, although shipping older stock first is good practice.
Worked example
One item: a 550 Wp module. All figures are examples.
Date
Event
Units
Unit cost (CU)
Value (CU)
1 March
Opening stock
100
80
8,000
10 March
Purchase
200
86
17,200
20 March
Purchase
100
92
9,200
Total
Available
400
-
34,400
On 25 March you sell 250 modules at 110 CU each. Sales = 250 x 110 = 27,500 CU.
Step 1: COGS
Take the oldest layers first until you reach 250 units.
100 units from opening stock at 80 = 8,000 CU
150 units from the 10 March purchase at 86 = 12,900 CU
COGS = 8,000 + 12,900 = 20,900 CU.
Step 2: closing stock
What remains is 400 - 250 = 150 units:
50 units left from the 10 March purchase at 86 = 4,300 CU
100 units from the 20 March purchase at 92 = 9,200 CU
Closing stock = 4,300 + 9,200 = 13,500 CU.
Step 3: check
COGS plus closing stock must equal the value available: 20,900 + 13,500 = 34,400 CU. It does.
Step 4: margin
Gross margin = 27,500 - 20,900 = 6,600 CU. As a share of sales: 6,600 / 27,500 = 24.0 per cent.
What to notice
Costs were rising (80, 86, 92). FIFO used the older, cheaper costs for COGS. The margin therefore looks good, and the closing stock is valued close to current prices.
When costs are falling, the effect turns around. FIFO charges the older, more expensive units first, so the margin looks lower for a while. Module prices have often fallen over time, so dealers meet this case regularly.
The system keeps each purchase as a separate cost layer. You do not calculate this by hand, but you should be able to check one item when a margin looks strange.
Key terms: FIFO, cost layer, COGS, closing stock.
Weighted average and the effect on margin
The weighted average method uses one average cost for all units of an item. In most ERP systems the average is worked out again each time new stock arrives. This version is often called moving average.
Average cost = total value of stock / total units in stock
Worked example
We use the same data as in the FIFO lesson: 100 units at 80 CU, then 200 at 86 CU, then 100 at 92 CU.
After
Units
Total value (CU)
Average cost (CU)
Opening stock
100
8,000
80.00
Purchase of 200 at 86
300
25,200
84.00
Purchase of 100 at 92
400
34,400
86.00
Check the second line: 8,000 + 17,200 = 25,200, and 25,200 / 300 = 84.00.
The sale of 250 units on 25 March uses the average at that time, 86.00 CU.
COGS = 250 x 86.00 = 21,500 CU
Closing stock = 150 x 86.00 = 12,900 CU
Check: 21,500 + 12,900 = 34,400 CU
Gross margin = 27,500 - 21,500 = 6,000 CU, or 6,000 / 27,500 = 21.8 per cent
The two methods side by side
Figure
FIFO
Weighted average
Sales (CU)
27,500
27,500
COGS (CU)
20,900
21,500
Gross margin (CU)
6,600
6,000
Gross margin (%)
24.0
21.8
Closing stock (CU)
13,500
12,900
Same goods, same sale, same cash. Only the timing of the cost is different. FIFO shows 600 CU more margin now, and 600 CU more closing stock. That 600 CU becomes cost later, when the remaining stock is sold.
What this means for a manager
When purchase costs rise, FIFO shows a higher margin than weighted average. When costs fall, FIFO shows a lower margin.
Weighted average smooths cost changes and is simple to understand.
Do not compare margins between two companies, or two years, without checking that the method is the same.
When you set prices, look at the replacement cost (what the next purchase will cost) as well as the system cost. If the next shipment costs 92 CU, a price built on an average of 86 CU may be too low.
A wrong cost on one goods receipt changes the average for later sales. Check purchase costs at receipt.
Changing the valuation method is an accounting decision, with tax effects in many countries. Do not change it without your accountant.
Landed cost adds freight, non-reclaimable duties and handling to the purchase price.
FIFO costs the oldest units first, so closing stock carries the newest costs.
Weighted average cost = total stock value / total units, worked out again at each receipt.
With rising costs FIFO shows a higher margin than weighted average; with falling costs, a lower one. Allowed methods depend on the country.
Practice quiz
For practice only. It does not count towards your certificate.
Join Our Newsletter
Power Deals, new arrivals and solar market insights for your country — once a month, no spam.
Cookies on Power & Sun
We use essential cookies to run the site, and — only with your consent — analytics to improve it and marketing cookies to measure our ads. Cookie policy · Privacy policy