Gross Margin Calculator

Gross margin from revenue and cost of goods sold

Use figures that exclude VAT. Direct costs only in the second box.

Fill in the fields above and the answer appears here.

Profit
Margin
Markup
Cost
Revenue

CostProfit

The working out is shown here once the calculator has enough information.

What does gross margin actually measure?

Gross margin tells you whether the thing you sell makes money before the business around it gets paid for. Revenue minus the direct cost of what went out of the door, as a percentage of revenue. Nothing else comes into it.

That narrow definition is deliberate. Rent, salaries and software cost the same next month whether you sell one unit or a thousand, so leaving them out isolates how the product itself performs. A bakery running 68% on bread knows the loaf works. Whether the shop works is a separate question, and our operating margin calculator answers it.

Two businesses with identical turnover can be twenty points apart on this number, and the gap nearly always comes from buying rather than selling. Gross margin is a buying metric wearing pricing clothes.

What belongs in cost of goods sold?

Anything that would not exist if the sale had not happened. For most UK traders that means the purchase price of the stock, net of settlement discounts you actually take, plus carriage inwards with any duty and clearance fees on imports. Direct labour counts too, where the work is paid per item rather than per hour. So does packaging that goes out with the product, which sounds trivial until you price a £4 item and find the box and the mailer eat 30p of it.

Payment processing is a borderline case. A 1.5% card fee behaves like a direct cost because it scales with every single sale, and folding it in gives you a truer margin even if your accountant reports it below the line. Include it if you want to. Just be consistent, because a margin that jumps whenever the classification changes is telling you nothing at all.

Out: rent, insurance, your own salary, marketing, the accountant's bill. Those live further down. Our gross profit and net profit comparison shows where each cost lands on a real set of accounts.

What gross margin is normal in the UK?

Ranges rather than targets. Where you sit inside a band tells you more than the band does.

SectorUsual gross marginWhat moves it
Grocery and convenience18% to 26%Wastage and promotional funding
General retail30% to 50%Markdown depth at end of season
Hospitality, wet sales65% to 75%Pour accuracy and duty changes
Hospitality, food60% to 70%Ingredient inflation and portion control
Wholesale and distribution12% to 25%Volume rebates and carriage
Manufacturing20% to 35%Material cost and machine utilisation
Professional services45% to 65%Chargeable hours against paid hours
Software and digital70% to 85%Hosting and third party licences

More context, including how these interact with net margin, is in what is a good profit margin.

How do you move gross margin without raising prices?

Buy better, first. A 3% improvement on cost lifts a 35% margin to about 37%. Consolidating orders to reach a rebate tier, or moving from annual to quarterly price reviews, usually finds that much without anyone touching a shelf edge.

After that, look at mix. Selling more of what already carries a high margin lifts the blended figure while every individual price stays exactly where it was. It is also why the same range produces two different margins in two branches of the same chain, and why the branch manager who keeps pushing the low-margin bestseller is not helping as much as the sales figures suggest.

Then there is leakage. Wastage, breakage, unclaimed supplier credits, free delivery nobody costed. All of it lands inside cost of sales and almost none of it appears as a line anyone reviews at month end.

Last, check the arithmetic itself. Adding a target percentage to cost, instead of dividing by one minus the target, understates every price on the range. Run a sample through the margin calculator on the homepage and compare it against your live prices. If the two percentages keep getting mixed up in your buying meetings, margin vs markup is the page to send round.

Gross margin questions

What is the gross margin formula?
Gross margin % = ((Revenue − Cost of goods sold) ÷ Revenue) × 100. Only direct costs belong in the cost figure.
Is gross margin the same as gross profit?
No. Gross profit is an amount in pounds and gross margin is that amount as a share of revenue. £40,000 of gross profit on £100,000 of sales is a 40% gross margin.
Should delivery costs go in cost of goods sold?
Carriage inwards does, because you paid it to get the stock. Carriage outwards is treated as a selling cost by most UK accountants, though retailers who fund free delivery often move it into cost of sales so the margin reflects reality.
Why did my gross margin fall while sales grew?
Usually sales mix. Growing the low-margin end of a range lifts turnover and drags the blended percentage down, even when no individual product changed price.
Does gross margin include VAT?
It should not. Work from figures that exclude VAT on both sides, or use the VAT tool on Margin Calculator UK to strip it out first.

Keep reading