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.
Gross Margin Calculator inputs and result
| Gross margin | What it suggests |
|---|
How to use this calculator
- 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.
- 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.
- 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.
- 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.
- 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.
RGM Expert Says
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.
How it works
Gross margin strips a business down to its core trade: what you charge versus what it directly costs to deliver.
- 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.
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.
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 model | Typical gross margin | Why |
|---|---|---|
| Software / SaaS | 70% to 85% | Near-zero marginal cost to serve another user |
| Consumer brands / DTC | 40% to 60% | Product cost plus fulfilment and returns |
| Retail / e-commerce resale | 20% to 40% | Wholesale cost dominates each sale |
| Grocery / low-margin retail | Under 25% | Volume model with thin per-unit profit |
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.
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.