Blog

What Is Gross Margin and How Is It Calculated?

MBMorgan BrowneMorgan Browne, CEO of Enterpryze 16 June 2026 4 min read
What Is Gross Margin and How Is It Calculated?

Gross margin is the share of revenue you keep after paying for the goods you sold. To calculate it, subtract cost of goods sold from revenue, divide the result by revenue and multiply by 100. A business with $100,000 in sales and $60,000 in cost of goods has a gross margin of 40%. The formula works the same in any currency: pounds, euros or dollars.

For growing SMEs, gross margin is the first number to understand. It shows whether your core business model works. A healthy gross margin gives you room to invest in sales, customer support, and growth. A shrinking one signals trouble in your cost structure.

How to Calculate Gross Margin

The formula is straightforward:

Gross Margin (%) = (Revenue − Cost of Goods Sold) ÷ Revenue × 100

Here's a concrete example. Imagine you're a food distributor:

Revenue: £100,000 Cost of goods sold: £60,000 Gross margin: (£100,000 − £60,000) ÷ £100,000 × 100 = 40%

That means you keep 40 pence of every pound in sales before paying for your warehouse, team, or delivery trucks. The remaining 60 pence pays for inventory.

Don't confuse gross margin with profit margin. Profit margin includes all your operating costs (rent, salaries, utilities). Gross margin only excludes the cost of goods. That's why gross margin comes first.

Gross margin for a retailer

The same formula works for a shop. Say you buy a jacket for $30 and sell it for $75:

Gross margin = ($75 − $30) ÷ $75 × 100 = 60%

Across a month, the sums work the same way. With sales of $40,000 and cost of goods of $22,000, your gross margin is ($40,000 − $22,000) ÷ $40,000 × 100 = 45%.

Two things catch retailers out. Use selling prices excluding sales tax or VAT, because the tax isn't your revenue. And count discounts and markdowns, because a jacket sold at $50 in the sale earns a 40% margin, not 60%.

Gross margin vs markup

Margin and markup use the same two numbers but divide by different ones. Margin divides profit by the selling price. Markup divides it by the cost.

Buy something for $60 and sell it for $100:

  • Gross margin = ($100 − $60) ÷ $100 = 40%
  • Markup = ($100 − $60) ÷ $60 = 67%

Mixing them up is one of the most common pricing mistakes. If you want a 40% margin and add 40% to cost, you price at $84 and land on a margin of about 29%.

To set a price for a target margin, divide cost by one minus the margin. For a 40% margin on a $60 item: $60 ÷ 0.6 = $100.

Why It Matters

Pricing power. If your gross margin is too low, you don't have room to discount or compete on price. A healthy margin for your sector gives you room to absorb market pressure.

Unit economics. Gross margin tells you whether individual products or customers are profitable. If one product line has a 25% margin and another has 60%, you know where to focus.

Operational efficiency. A declining gross margin often signals rising material costs, supplier price increases, or inefficiency in production or procurement. Spotting this early lets you renegotiate contracts or redesign processes.

Common Mistakes

Confusing gross margin with profit. Owners often think a 40% gross margin means they're keeping 40% as profit. They're not. After operating expenses, the actual profit is much lower. Gross margin is the starting point, not the finish line.

Ignoring COGS changes. Your cost of goods isn't fixed. Supplier prices shift, inventory shrinkage happens, manufacturing scrap increases. If you don't monitor gross margin regularly, you won't see these shifts until they've damaged your bottom line.

Applying a single margin to everything. SMEs with multiple product lines or customer segments often assume one average gross margin. In reality, products and customers have wildly different margins. Bundling them hides the fact that some parts of your business are losing money.

How ERP Software Helps

Manually calculating gross margin in spreadsheets means waiting weeks for accurate data. By then, the problem has compounded. An ERP system shows you gross margin in real time, broken down by product, customer, or sales order.

Enterpryze tracks gross margin across your inventory costing methods (moving average cost, last purchase price), so you always see the true cost of goods. You can analyse profitability by product, by customer, or by project. If a supplier price increases, you see the impact on margins instantly. If production scrap rises, it shows in your cost per unit. This visibility helps you make faster pricing and sourcing decisions.

See how batch traceability in an ERP helps you track costs and catch margin leaks early.

If you'd like to see margin by product and by customer on your own data, book a 30 minute chat below.

FAQ

What is a good gross margin? It depends on your industry. Retail typically runs 20–40%. Food and beverage distribution sits around 25–35%. Software and services often see 60%+. Compare yourself to competitors in your sector, not across industries.

Is gross margin the same as contribution margin? No. Contribution margin subtracts variable costs only (materials, direct labour). Gross margin subtracts all cost of goods sold. For most SMEs, they're close, but contribution margin is more useful for pricing decisions on individual products.

How do I improve my gross margin? Negotiate better supplier terms, reduce production waste, eliminate slow-moving inventory, or raise prices. Most often, it's a combination. Track which lever moves the needle in your business.

How often should I calculate gross margin? Monthly minimum. Weekly if you're in a volatile industry like food distribution or manufacturing. Real-time visibility is better. An ERP system lets you check it any time without rebuilding a spreadsheet.

Keep reading

All posts
Guide

ERP for B2B and B2C business: running wholesale and retail channels from one system

9 Sep 2026 · 6 min read
Case study

Cloud ERP for manufacturing: how FrshBev scaled beyond spreadsheets

3 Feb 2026 · 4 min read
Orinoco
Product release

Orinoco release, October 2026: more time back, smoother deliveries and smarter planning

19 Oct 2026 · 6 min read

See it on your processes.

Tell us how you buy, stock and sell today. We'll show you what changes, on your own processes.

  • 30 minutes, on your processes
  • Pricing explained, no surprises
  • Reply within one working day

Book a chat

We reply within one working day. We use your details to answer your enquiry. If you tick the box, we will also send you product and event news, and you can unsubscribe at any time. We never share your details. See our privacy policy.

Thanks, we'll be in touch.

One of the team will reply within one working day to set a time that suits you.