โ† All Tools

Gross Margin Calculator

Enter your sales and cost of sales to see gross profit and gross margin, or start from the margin you want and get the selling price. For South African retailers, resellers and manufacturers checking whether their prices cover the cost of stock with enough left over for overheads.

Your figures

R
Net of returns and discounts given, for a month or a year.
R
The cost of the goods or direct services you sold in the same period.

Gross profit

Gross margin40.0%R100,000.00 gross profit
Sales excluding VATR250,000.00
Less cost of salesR150,000.00
Gross profitR100,000.00
Gross profit per R100 of salesR40.00
Same result as a markup on cost66.7%
Cost of sales as % of sales60.0%

Gross margin ignores overheads, so a healthy figure here does not by itself mean the business is profitable.

Price needed for common margins

R
Selling price for each gross margin on a cost of R150.00
Gross marginMarkup on costPrice excl VATGross profitPrice incl VAT
20%25.0%R187.50R37.50R215.63
25%33.3%R200.00R50.00R230.00
30%42.9%R214.29R64.29R246.43
35%53.8%R230.77R80.77R265.39
40%66.7%R250.00R100.00R287.50
45%81.8%R272.73R122.73R313.64
50%100.0%R300.00R150.00R345.00
55%122.2%R333.33R183.33R383.33
60%150.0%R375.00R225.00R431.25

The gross margin formula

Gross margin % = (revenue โˆ’ cost of sales) รท revenue ร— 100

Gross profit is what is left of your sales after paying for the goods or direct services you sold. Gross margin expresses that as a share of sales, so you can compare a slow month with a busy one, or this year with last year, without the size of the month distorting the picture. A 38% margin means every R100 of sales leaves R38 to cover rent, salaries and other overheads, and whatever remains after those is profit.

What goes into cost of sales

For a business that holds stock, cost of sales is not simply what you bought this month. It is opening stock plus purchases less closing stock, because stock still on the shelf at month-end has not been sold yet. Include the costs of getting stock ready to sell: inward freight and courier charges, customs duty and clearing fees on imports, and packaging that goes out with the product. A manufacturer adds raw materials and the wages of people on the production floor.

Service businesses have a cost of sales too: subcontractors, materials used on a job and the time of staff who deliver the work. What stays out is the cost of running the business, such as rent, admin salaries, marketing, bank charges, depreciation and interest. Those come off further down the income statement, which the net profit calculator lays out line by line.

Worked example: an online clothing reseller

A VAT-registered reseller sells women's clothing through its own website and social media. In March it started with R86,000 of stock at cost, bought R118,500 from wholesalers and counted R92,300 on hand at month-end. Cost of sales is R86,000 + R118,500 โˆ’ R92,300 = R112,200.

Sales for the month were R184,000 excluding VAT. Gross profit is R71,800 and the gross margin is 39.0%. Had the owner used purchases instead of cost of sales, the margin would have shown as 35.6%, understating it because some of March's buying is still sitting in stock for April.

For new stock the owner works the other way. A pair of jeans costs R240.00 excluding VAT and the target is a 45% margin, so the price must be R240.00 รท 0.55 = R436.36 excluding VAT, or R501.81 on the website including VAT. That is a markup of 81.8% on cost.

Use VAT-exclusive figures

If you are a VAT vendor, the 15% VAT you charge customers is collected on behalf of SARS and the VAT on your purchases is claimed back on your VAT201 return. Neither is your income or your cost, so both sales and cost of sales must exclude VAT. Mixing the two is a common error: the reseller's March sales were R211,600 including VAT, and dividing that against VAT-exclusive costs produces a margin of 47.0% instead of 39.0%.

If you are not registered, there is no output VAT in your sales, but the VAT on your supplier invoices cannot be claimed and stays part of what the stock cost you. Registration becomes compulsory once taxable supplies pass R2,300,000 in any 12 consecutive months (the threshold from 1 April 2026). Registering changes how your margins are calculated, so re-run your prices when it happens. The VAT calculator strips VAT out of an inclusive amount.

How discounts eat into margin

A discount comes straight off gross profit, not off sales in proportion. Take the jeans at R436.36 with a 45% margin. A 10% discount drops the price to R392.73, the margin to 38.9% and gross profit per pair from R196.36 to R152.73, a fall of 22.2%. To earn the same gross profit in rand, the reseller must sell 28.6% more pairs. Run that number before agreeing to a Black Friday promotion.

Margin and markup are different numbers

Margin is measured against the selling price and markup against the cost. The table above shows both side by side: a 50% margin needs a 100% markup. Pricing with one when you meant the other quietly costs a shop its margin, and the markup calculator works through it with an example. Once you know your margin, the break-even calculator shows how much you must sell to cover your overheads.

Frequently asked questions

How do I calculate gross margin?

Subtract cost of sales from revenue to get gross profit, then divide gross profit by revenue and multiply by 100. A reseller with R184,000 of sales and R112,200 of cost of sales has a gross profit of R71,800 and a gross margin of 39.0%.

How do I work out a selling price from a target margin?

Divide the cost by (1 minus the margin as a decimal). For a 45% margin on an item costing R240.00, the price is R240.00 รท 0.55 = R436.36 excluding VAT. Adding 45% to the cost gives R348.00, which is a markup and falls short of the margin you wanted.

Should gross margin be worked out with or without VAT?

Without VAT if you are a registered vendor. Output VAT on your sales is owed to SARS and input VAT on your stock is claimed back, so neither is income or cost to you. If you are not registered, your sales carry no VAT and the VAT you paid on stock stays part of your cost.

What is included in cost of sales?

The direct cost of what you sold: stock bought for resale adjusted for the change in stock on hand, inward freight, import duties and clearing charges, and, for a manufacturer, raw materials and production labour. Rent, admin salaries, advertising and bank charges are operating expenses and sit below gross profit.

Why is my gross margin different from what I expected per item?

Item margins assume every unit sells at full price. The monthly figure also absorbs markdowns, promotional discounts, stock written off as damaged or stolen, and the mix of high and low margin lines sold. A gap between the two is often the first sign of shrinkage or discounting that has crept in.

What is the difference between gross margin and net margin?

Gross margin only deducts the cost of what you sold. Net margin deducts everything else as well: salaries, rent, marketing, depreciation, interest and tax. A business can have a strong gross margin and still lose money if overheads are too high for its sales volume.

Can gross margin be higher than 100%?

No. Gross margin is gross profit as a share of the selling price, and gross profit can never exceed the price, so the ceiling is 100% (an item that cost nothing). Markup has no ceiling, which is one reason markup figures look larger than margin figures for the same sale.