Working hours Mon–Fri: 10:00 – 18:00
Free P&L calculator

Gross Margin Calculator

Gross profit, gross margin %, markup, and COGS ratio in one panel. Compare against industry benchmarks for SaaS, e-commerce, or services to see whether your pricing leaves enough room for growth.

✓ Margin + markup in one view
✓ Industry benchmark verdict
✓ Works for SaaS / e-com / services
✓ Inputs stay in browser
80%+
SaaS-tier gross margin
40-60%
E-commerce typical range
60-80%
Digital services range
Gross Margin Calculator — Free Margin & Markup Calculator — video tutorial
⏱ 60 sec tutorial
Watch how to use this calculator
Loading calculator…

Gross margin vs markup — the difference that costs companies money

Gross margin and markup measure the same gap (revenue minus COGS) but from different sides. Confusing them is one of the most common pricing mistakes, especially in e-commerce where suppliers quote markup and you report margin.

The formulas

gross profit  = revenue − COGS
gross margin  = gross profit / revenue × 100%
markup        = gross profit / COGS × 100%

Why margin ≠ markup

50% markup is NOT 50% margin. If you buy at $100 and sell at $150, that is 50% markup ($50 / $100) but 33% margin ($50 / $150). To convert: margin = markup / (1 + markup). A 100% markup = 50% margin, not 100% margin.

Industry benchmarks (2026)

  • Pure SaaS: 80-90% gross margin. Hosting + payment processing + support is most of COGS.
  • SaaS with services component: 60-75% — implementation labor pulls it down.
  • Digital services / agencies: 50-70% — labor IS the COGS.
  • E-commerce (private label): 40-60% blended.
  • E-commerce (resale / distribution): 20-35%.
  • Manufacturing (B2B): 25-40%.

What gross margin tells you about a business

  • High margin (60%+): you can afford to over-invest in sales and marketing — CAC can be high if LTV scales with margin.
  • Mid margin (30-60%): balanced — CAC must stay below 25% of LTV.
  • Low margin (under 30%): volume-driven business. Marketing budget is tiny relative to revenue. Operational efficiency wins.

How to calculate gross margin

Two numbers from your P&L. Make sure COGS includes everything that scales with revenue.

1

Define revenue

Net revenue (after returns / refunds), not gross sales. Use the same definition your finance team reports.

2

Sum up COGS

Direct costs of delivering the product: hosting, payment fees, support salaries (for SaaS), product cost + shipping (for e-com), labor (for services). Exclude rent, marketing, R&D — those are operating expenses, not COGS.

3

Calculate the margin

The calculator does this in milliseconds. Read the percentage.

4

Compare against benchmark

Below industry benchmark? Pricing too low, COGS too high, or both. Above benchmark? You have pricing power — consider reinvesting in growth.

5

Track over time

Gross margin should improve as you scale (better hosting deals, automation, etc). If it declines, audit before it compounds.

Frequently asked questions about gross margin

-
What is a good gross margin for SaaS?

75-85% for pure SaaS is healthy. 85-90% is excellent and typical for self-serve products with minimal support. Below 70% suggests heavy professional-services or labor-intensive support is dragging it down — common for early-stage SaaS that has not yet built scalable onboarding.

+
What is the difference between gross margin and markup?

They measure the same dollar gap from different sides. Gross margin = profit / revenue. Markup = profit / cost. A 100% markup (selling for double cost) is only a 50% gross margin. Confusing them is the most common pricing mistake — always specify which you mean.

+
Should I include support staff salaries in COGS?

For SaaS, yes — customer support that scales with customer count is COGS. Engineering R&D and sales salaries are operating expenses, not COGS. The litmus test: does this cost increase if revenue doubles? Yes = COGS. No = OpEx.

+
What is contribution margin vs gross margin?

Gross margin = revenue minus all COGS (variable + fixed direct costs). Contribution margin = revenue minus only variable costs per unit. For unit-economics analysis (CAC payback), contribution margin is often more useful than gross margin.

+
Why does my gross margin keep dropping as I grow?

Usually one of three reasons: heavy enterprise deals require services (drags margin), infrastructure costs not yet optimized at scale, or new product lines with lower margins blending the average down. Audit COGS by product line to find the cause.

+
How does gross margin affect what I can spend on marketing?

Higher margin = more marketing budget can be efficient. Rule of thumb for SaaS: marketing as % of revenue can be up to (1 − gross margin) ÷ 2 in early stages without breaking unit economics. So at 80% margin, marketing up to 10% of revenue is comfortable.

More marketing + SaaS calculators
🚀
SEO ROI Calculator
12-month ramp + break-even month.
Open calculator →
💰
CAC & LTV Calculator
Unit-economics with a letter grade.
Open calculator →
🧪
A/B Test Sample Size
Two-proportion z-test, not a guess.
Open calculator →
📈
SaaS ARR Forecast
36-month MRR → ARR with retention.
Open calculator →
⚙️
Automation Savings
Hours + $ saved by automating.
Open calculator →
📺
CPM Calculator
Ad spend → impressions, both ways.
Open calculator →
🖱
CPC Calculator
Cost per click + CTR + CPA.
Open calculator →
📉
Churn Rate Calculator
Monthly + annual + retention.
Open calculator →

Want help finding where COGS is leaking?

We run pricing + COGS audits for B2B SaaS. Find the line item that is dragging margin down — and the pricing tier change that fixes it.
✓ Senior team
✓ Audit in 2 weeks
✓ Margin + pricing combined
✓ Free 30-min consult
Book a free 30-min audit
By submitting you agree to our Privacy Policy