Gross Margin Calculator

Gross margin is the quiet number that decides how much you can afford to spend on everything else. Enter revenue and the direct cost of delivering it — the tool returns your margin, your gross profit in dollars, and the markup hiding behind it.

Gross margin = (revenue − cost of goods sold) ÷ revenue × 100%. It is the slice of each sale that survives the direct cost of making or delivering the product, and it caps how much you can pour into marketing, overhead and profit. A 40% to 70% margin is healthy for most product businesses; software often clears 70%; below 20% there is little left to fund growth. Do not confuse margin with markup — the same dollar of profit looks much larger as a markup on cost.

The calculator

Gross Margin Calculator inputs and result

Net sales for the period.
Direct cost to make or deliver what you sold.
✓ Enter revenue for a verdict
Gross margin
0.0%
0gross profit
0markup on cost
Export
How to read your gross margin
Gross marginWhat it suggests

Walkthrough

How to use this calculator

  1. Enter your net revenueUse net sales for the period — gross sales minus returns, discounts and allowances. Match the period to the cost figure below so the margin is honest.
  2. Enter cost of goods soldCount only the direct cost of delivering what you sold: materials, production labour, inbound freight, payment fees, and hosting for software. Leave out marketing, rent and general salaries.
  3. Read the margin, not just the dollarsThe percentage travels across deal sizes; gross profit in dollars tells you the absolute fuel available. Use both — a high margin on tiny revenue still funds very little.
  4. Check margin against markupThe tool shows markup on cost beside margin so you do not confuse the two. A 50% markup is only a 33% margin; quoting markup as margin overstates profitability.
  5. Export your numbersCopy a share link, download the CSV for your P&L model, or print a one-page PDF for a pricing or budget review.

From the desk

RGM Expert Says

Real Growth Matters — Growth economics practiceHow we use this tool with clients

Gross margin is the first slide we ask to see, because it sets the budget for ambition. A founder will pitch an aggressive acquisition plan, and then we load in COGS and discover the product only keeps thirty cents on the dollar. Everything downstream — how much CAC is survivable, how fast you can scale paid, whether a discount is suicide — is governed by this one ratio.

The mistake we correct most often is a margin built on an incomplete COGS. Payment processing, fulfilment, returns and customer-success cost of serving all belong in the cost of delivering the sale, and leaving them out flatters the margin by several points. We rebuild COGS from the ground up before we trust any margin a deck shows us, because an inflated margin licenses overspending that the cash flow cannot actually support.

We also use margin to settle the markup-versus-margin argument that derails pricing meetings. Teams price off markup because it feels generous, then wonder why the contribution does not match. Anchoring the conversation on margin — the share of revenue you actually keep — keeps pricing honest and keeps acquisition spend tied to real, not imagined, gross profit.

The math

How it works

Gross margin strips a business down to its core trade: what you charge versus what it directly costs to deliver.

Gross profit = Revenue − Cost of goods sold
Gross margin % = (Revenue − COGS) ÷ Revenue × 100%
Markup % = (Revenue − COGS) ÷ COGS × 100%
  • Revenue — net sales after returns, discounts and allowances.
  • COGS — direct cost to make or deliver the sale: materials, production labour, freight, payment fees, hosting.
  • Gross profit — the dollars left to fund marketing, overhead and profit.
  • Markup — profit expressed as a percentage of cost, not of revenue; always larger than margin.

Margin and markup definitions follow the standard treatment in Farris, Bendle, Pfeifer & Reibstein, Marketing Metrics. A 50% markup equals a 33.3% margin; never quote one as the other.

Why it matters

Margin is the ceiling on everything you can afford

Revenue gets the headlines, but gross margin decides what is possible. The dollars left after cost of goods are the only pool available to pay for marketing, salaries, rent and profit. Two companies with identical revenue and wildly different margins are not in the same business: one can outspend the other on acquisition for years and still win.

Margin is also why allowable customer acquisition cost varies so much by industry. A software business keeping 80 cents on the dollar can survive a CAC that would bankrupt a retailer keeping 25 cents. Before you benchmark your CAC against anyone, anchor it to your own gross margin — the same acquisition cost is healthy in one margin structure and fatal in another.

Finally, watch the markup trap. Pricing teams gravitate to markup because the number is bigger and feels safer, but margin is what shows up in the bank. A product marked up 100% on cost only earns a 50% margin; mistaking the two leads to underpricing and acquisition budgets built on profit that was never there.

Benchmarks

Typical gross margins by business model

There is no single ‘good’ gross margin — it is dictated by what you sell and how you deliver it. These ranges are directional rules of thumb for orientation, not targets.

Business modelTypical gross marginWhy
Software / SaaS70% to 85%Near-zero marginal cost to serve another user
Consumer brands / DTC40% to 60%Product cost plus fulfilment and returns
Retail / e-commerce resale20% to 40%Wholesale cost dominates each sale
Grocery / low-margin retailUnder 25%Volume model with thin per-unit profit
Directional ranges (RGM analysis, synthesised from public company filings); your figures will vary. For margin definitions see RGM’s gross margin guide.

Voices worth trusting

What operators say about margin

Margin is the constraint that disciplines growth: the more of each sale you keep, the more aggressively you can afford to acquire and still compound.
Founder, Reforge (paraphrase)
Gross margin determines how much you can spend to acquire a customer and still build a capital-efficient business; it is the number under every unit-economics decision.
SaaS Metrics 2.0 (paraphrase)

Go deeper

Books on margin and metrics

Related on RGM

Keep learning

FAQ

Common questions

How do you calculate gross margin?
Gross margin = (revenue − cost of goods sold) ÷ revenue × 100%. For example, $100,000 in revenue with $42,000 of COGS leaves $58,000 gross profit, a 58.0% gross margin.
What is the difference between gross margin and markup?
Margin expresses profit as a share of revenue; markup expresses it as a share of cost. A product that costs $50 and sells for $100 has a 100% markup but only a 50% margin. Quoting markup as margin overstates profitability.
What is a good gross margin?
It depends on the model. Software often runs 70% to 85%, consumer brands 40% to 60%, and resale retail 20% to 40%. Compare yourself to peers in your category, not across categories.
What should be included in COGS?
Only the direct cost of delivering the sale: materials, production labour, inbound freight, payment processing, and cloud hosting for software. Marketing, rent and general salaries are operating expenses, not COGS.
Why does gross margin matter for marketing?
Gross margin is the pool that funds acquisition. A higher margin supports a higher allowable customer acquisition cost, which is why software businesses can sustain a CAC that would sink a low-margin retailer.
Is gross margin the same as net margin?
No. Gross margin subtracts only direct costs. Net margin subtracts everything — marketing, salaries, rent, interest and tax — so it is always lower than gross margin.

Related tools

Related tools