Gross Margin

Gross margin is revenue minus COGS. Learn SaaS-specific COGS, benchmarks, and improvement levers.

gross margin SaaSgross margin formulaSaaS gross margin benchmarks

Definition

Gross margin is the percent of revenue remaining after direct costs of delivering the product (COGS), including hosting, support, and sometimes onboarding services.

Answer-first summary

Gross Margin: Gross margin is the percent of revenue remaining after direct costs of delivering the product (COGS), including hosting, support, and sometimes onboarding services.

Formula

Gross Margin (%)

Gross Margin = (Revenue - COGS) / Revenue

  • Revenue: Recurring subscription revenue (plus any included revenue stream)
  • COGS: Direct costs: infra, support, third-party usage costs

Revenue $100k, COGS $20k → gross margin = 80%.

Directional SaaS Gross Margin Benchmarks

Benchmarks vary widely by industry, ACV, go-to-market motion, geography, and measurement method. Treat these as directional ranges, not targets.

SegmentP25P50P75Notes
B2B SaaS (general)70–75%75–85%85–90%
Usage-based (infra heavy)55–65%65–75%75–85%

Sources

  • Directional industry ranges (compile from public SaaS benchmark reports)

How to improve

  • Optimize infrastructure costs and vendor spend.
  • Improve support efficiency and self-serve help.
  • Adjust pricing to reflect usage costs.

Common pitfalls

  • Excluding support from COGS inconsistently.
  • Treating variable vendor costs as fixed.

Track Gross Margin automatically

Use dashboards, reports, and KPI definitions to keep your team aligned. Start a trial or book a demo.

FAQ

What belongs in SaaS COGS?
Typically hosting, infra, customer support, and sometimes onboarding/pro services if required to deliver value.
Can gross margin be too high?
High margins are great, but ensure pricing matches value and you’re not under-investing in reliability/support.

Topic hub

Explore the full cluster for stronger context, benchmarks, templates, and comparisons.

Related metrics

  • CAC Payback Period

    Learn CAC payback period (definition + formula), see benchmark ranges, common pitfalls, and practical levers to shorten payback.

  • Customer Lifetime Value (LTV)

    Learn LTV, how to calculate it safely, common pitfalls, and how to increase it.

  • LTV:CAC Ratio

    Learn LTV:CAC, how to calculate it correctly, benchmark ranges, and levers to improve it.

  • Monthly Recurring Revenue (MRR)

    MRR is the core revenue heartbeat of SaaS. Learn what counts, how to decompose MRR, and common pitfalls.

  • Annual Recurring Revenue (ARR)

    ARR is MRR × 12 (with caveats). Learn what ARR means, how to compute it, and pitfalls.

  • SaaS Magic Number

    Magic number estimates how much new ARR you generate per dollar of sales & marketing spend.

Related calculators

Related templates

  • Startup KPI Dashboard Template

    A free KPI dashboard template (CSV) with core SaaS metrics, owners, frequencies, and sources—ready to import into your workflow.