Most owners judge a month by what came in on the card machine and what went out to suppliers. That mixes up the stock you sold with the stock still on your shelves, so a good month can look bad and a missing box can go unnoticed. Below is how to work out what the stock you sold cost you, and what to check when the number looks wrong, using a gift and homeware shop's numbers.
What is cost of goods sold?
Cost of goods sold, or COGS, is what you paid for the stock you sold in a month or a year. It counts each item at its cost price, what you paid the supplier, not what you sell it for. It leaves out rent, wages and your other running costs, which you pay later out of gross profit.
Work it out from stock counts, not from what you bought that month, because some of the stock you bought is still on the shelf.
What cost of goods sold covers |
|---|
A shop The stock it sold, at what it paid the supplier. |
A restaurant or cafe The food and drink that went out of the kitchen and the bar. |
A salon or spa The products used on clients, and any products it sold. |
A business that makes what it sells The materials and packaging in what it sold, and the pay of anyone paid to make it. |
Type of business | What cost of goods sold covers |
|---|---|
A shop | The stock it sold, at what it paid the supplier. |
A restaurant or cafe | The food and drink that went out of the kitchen and the bar. |
A salon or spa | The products used on clients, and any products it sold. |
A business that makes what it sells | The materials and packaging in what it sold, and the pay of anyone paid to make it. |
How do you calculate cost of goods sold?
You need three numbers, all at cost price:
Opening stock: what the stock on your shelves cost you at the start of the month. It's the same as last month's closing count.
Purchases: the stock you bought to sell during the month, minus any credits a supplier gave you for returns or damaged goods. Leave out things you use but don't sell, like a new fridge or shop fittings. Include the courier or freight costs and any import duty you paid to get the stock to you.
Closing stock: what the stock still on your shelves cost you at the end of the month, from a count.
Cost of goods sold = opening stock + purchases − closing stock
Then take cost of goods sold off your sales. What's left is your gross profit, and gross profit as a share of sales is your gross margin.
Worked example: a month at a gift and homeware shop
A gift and homeware shop counts its stock after closing on the last trading day of every month. It isn't registered for VAT (value-added tax), so its costs include the VAT it paid. All figures are illustrative.
:format(webp))
The R61,500 gross profit still has to pay rent, wages and every other running cost before the owner makes a profit. So plan those costs against the R61,500, not against the R118,000 of sales.
What does your gross margin tell you?
Your gross margin shows whether your stock earned what your prices say it should. To check, compare it with the margin your usual markup should give. Markup is what you add on top of what you paid. The shop prices its stock at cost × 2.2: an item it buys for R100 sells for R220, a 120% markup. Markup vs margin, and when each one matters explains how a markup turns into a margin.
:format(webp))
The shop made a 52.1% margin, against the 54.5% its prices should give. That R2,864 gap is stock that cost money but didn't bring in full price. Find out why before next month's count, and check these causes in this order:
Markdowns and discounts, meaning items sold below the usual price. Your sales report shows them.
Theft, breakage and damaged stock.
Deliveries that were never entered, or were entered at the wrong cost.
Counting mistakes.
Whatever is left after markdowns, missed deliveries and counting mistakes is shrinkage: stock lost to theft, waste or damage. How to manage stock in a small business covers how to find it and cut it.
What can throw your cost of goods sold out?
A wrong closing count throws it out most. The mistake goes straight into this month's gross profit, then carries into next month, because this month's closing stock becomes next month's opening stock.
:format(webp))
Counting R4,000 too much stock lifts this month's margin from 52.1% to 55.5%, so the month looks better than it was. Next month then starts with R4,000 of stock that isn't there, and looks worse by the same amount. Keep your counts accurate with these habits:
Count on the same day each month, after trading closes.
Count in pairs, with one person counting and the other writing.
Value stock at what you paid, from the latest supplier invoice.
Write off broken or unsellable stock before you count, and record it.
Enter every delivery and every supplier credit on the day it arrives.
Point of sale (POS) systems such as Yoco's count down your stock with every sale, which gives you a number to check each count against. More advanced POS stock tools, such as Yoco's Stock Control, also record deliveries, transfers and wastage, so you can see why a count changed.
If you're registered for VAT, value your stock without VAT. If you're not, use what you paid including VAT, because you can't claim that VAT back.
How often should you work out cost of goods sold?
Work it out every month, because a monthly count catches a problem before it costs you a whole season. If a full count every month is too much, count your best-selling items every week and do a full count every three months.
Count on the last day of your financial year too, and keep the count sheets, because your accountant uses that closing stock value for your tax return. Keeping records for SARS covers how long to keep them. To price a single item from its cost, use how to calculate cost price and set your selling price.
For tax, SARS, the South African Revenue Service, counts your closing stock at what it cost you. Section 22 of the Income Tax Act lets you value it lower only by an amount SARS accepts as just and reasonable, for example for stock that's damaged, gone off or dropped in value, so record what you wrote down and why.
General information, not tax or accounting advice. Last reviewed 25 November 2026. Figures in the worked example are illustrative. Ask your accountant how to value stock for your tax return.
:format(webp))
:format(webp))
:format(webp))