Your margin is only as true as your cost numbers. Here's the COGS formula, what counts for a product brand and a worked example you can copy.
The COGS formula is opening stock plus purchases minus closing stock. The answer is what the stock you actually sold cost you, including freight and duty to get it into your warehouse. Take COGS away from sales and you have gross profit, the number every pricing and buying decision starts from.
COGS stands for cost of goods sold. It's the cost of the products you sold in a period. Only those products.
It's not what you spent on stock this month. If you bought 1,000 candles and sold 600, only the 600 are in COGS. The other 400 are still sitting on the shelf as stock, which is an asset until they sell.
That one idea clears up most COGS confusion. Spending on stock and the cost of goods sold are different numbers. They can be miles apart in a busy buying month.
You need three numbers for the same period: the stock you started with, what you added and what was left at the end.
Formula
COGS = opening stock + purchases minus closing stock
Value everything at cost, never at retail price. If you value stock at what you'll sell it for, your COGS comes out wrong and so does your margin.
Know your stock value without a spreadsheet.
nozi reads your stock, sales and margin from Shopify, so you can see what's on hand and how each product is earning before you close the month.
See how nozi worksCOGS includes every cost of buying or making your products and getting them to where you sell from. For a brand that imports stock, that's your landed cost per unit.
The ATO's guidance on valuing trading stock at cost backs this up. It says cost includes "all costs associated with bringing the stock to its current condition and location". It adds that this may include the cost price plus freight, insurance, customs and excise duties and delivery charges (ATO).
Usually in COGS:
Usually not in COGS:
Shipping orders out to customers is the grey area. Many brands track it separately as a selling cost so they can see it clearly. Whatever you choose, do it the same way every period. Check with your accountant how it should sit in your accounts.
COGS moves with sales. Expenses mostly don't.
Sell twice as many products and your COGS roughly doubles. Your rent, your software and most of your wages stay the same. That's why accountants list COGS first, straight under sales. Operating expenses come further down.
The split matters because each one answers a different question:
A brand can have healthy product margins and still lose money because expenses are too high. Or it can have low expenses and still struggle because the products barely cover their own cost. You can only see which problem you have if you keep the two apart.
A small skincare brand wants its COGS for July to September. It's registered for GST, so every figure below excludes GST.
| Item | Amount |
|---|---|
| Opening stock at cost, 1 July | $18,000 |
| Product purchases from its manufacturer | $24,000 |
| Freight and insurance to Australia | $1,800 |
| Customs duty and clearance charges | $600 |
| Boxes and labels for the products | $1,200 |
| Closing stock at cost, 30 September | $16,500 |
Formula
COGS = $18,000 + ($24,000 + $1,800 + $600 + $1,200) minus $16,500
Example
Purchases come to $27,600. So COGS is $18,000 + $27,600 minus $16,500 = $29,100.
The brand sold $72,000 of products in the quarter, excluding GST.
Notice what happens if the brand forgets freight, duty and boxes. Purchases drop to $24,000, COGS drops to $25,500 and gross margin looks like 64.6%. That's five points of margin that isn't real. Prices set on that number would be too low.
The same thinking works per product. The brand's best-selling serum costs $8.20 from the manufacturer. Add $0.60 of freight, $0.20 of duty and $0.40 for the box and the true unit cost is $9.40. That's the number to price from.
Gross margin is the share of each sale left after COGS. It's the clearest single test of whether your pricing works.
Formula
Gross profit = sales minus COGS
Gross margin = gross profit ÷ sales
If COGS rises and prices don't, gross margin falls. That's why freight increases, a weaker Australian dollar or a supplier price rise should send you straight back to your prices. Our guide to markup vs margin shows how to turn a unit cost into a price that hits the margin you want.
Gross margin isn't the end of the story, because expenses still have to come out of it.
Yes. Closing stock is part of the formula, so the way you value it moves COGS.
The ATO lets you value each item of trading stock at the end of the year using one of three methods: cost, market selling value or replacement value. It also says you can choose a different method each year for different items of stock (ATO).
Here's why that matters. Say you hold dead stock you'll only clear at half price. Valued at cost, it sits on your books as if it'll earn its full value. Valued at a lower market selling value, closing stock drops and COGS goes up. Your margin for that period looks worse, but it's closer to the truth. Talk to your accountant before you change methods.
The order you assume stock sells in also affects unit cost when prices change between batches.
Monthly suits most small brands. It's often enough to catch a cost increase before it eats a whole season's margin.
You don't always need a full count each month. Many brands do a full stocktake at the end of the financial year and use their stock records in between. The ATO has simpler trading stock rules for eligible small businesses: if your aggregated turnover is under the limit and you estimate the value of your stock changed by $5,000 or less in the year, you may not have to do a formal stocktake (ATO). Check with your accountant whether you qualify.
nozi connects to your Shopify store and reads your stock, sales and margin for you. It shows which products are earning their keep and which are slowing, then tells you the move with the numbers behind it. When you make a change in nozi, it pushes through to Shopify, so you're never updating two places.
See your margin on every product.
nozi shows sales and margin product by product, so a cost rise shows up before it costs you a season.
See how nozi worksOpening stock plus purchases minus closing stock. Value all three at cost for the same period. The result is the cost of the stock you sold.
They're often used to mean the same thing. Some businesses use cost of sales more widely, to include selling costs like shipping orders out. Check how your accountant sets up your accounts and stay consistent.
Inbound shipping is. Freight and insurance to get stock to you are part of what it cost to bring the stock to where you sell it. Shipping orders out to customers is usually tracked separately as a selling cost.
It's a cost that sits in your profit and loss, but it's listed apart from operating expenses. COGS goes up and down with sales. Operating expenses like rent and software mostly don't.
Not if you're registered for GST. You claim the GST back as a credit, so you work COGS out excluding GST. If you're not registered, the GST you pay is part of your cost.
Still wondering? Email support@nozi.com.au or get in touch
Clarity on every product. Confidence in every decision.
Pop your email in to apply. Founding Brands get six months free.
No lock-in contract • Cancel anytime