Gross Margin for SaaS: What Counts as Healthy?

How to calculate SaaS gross margin, what to include in COGS, and the benchmarks that matter.

February 25, 20264 min read711 words

one-line definition

Gross Margin is a core operating metric that helps small teams make better product and growth decisions.

formula: Gross margin = (Revenue − Cost of goods sold) ÷ Revenue × 100

tl;dr

Gross margin is the percentage of revenue left after paying the direct costs to deliver your product. SaaS should target 80%+. If you're below 70%, your cost structure needs work.

Simple definition

Gross Margin is the percentage of revenue remaining after you subtract the direct costs of delivering your product or service. These are called "cost of goods sold" (COGS). For a SaaS product, COGS includes hosting, third-party API costs, payment processing fees, and customer support directly tied to serving users. It does not include your salary, marketing spend, or office rent -- those are operating expenses.

Gross margin tells you how efficiently you deliver value. A SaaS with 85% gross margin keeps $0.85 of every dollar to spend on growth, product, and profit. A marketplace with 25% gross margin keeps $0.25. Same revenue, very different economics.

Why this matters

Gross Margin is a critical metric for bootstrapped founders because it represents the truth about your business. Before product-market fit, this metric may feel abstract. But once you have paying customers and recurring revenue, ignoring this metric becomes dangerous to your growth trajectory.

Most solo founders make the mistake of focusing on the wrong metric at the wrong time. Before $1k MRR, the best metrics are activation and product-market fit. Between $1k-$10k MRR, gross margin becomes highly relevant. Beyond $10k MRR, it becomes one of your top three growth levers.

The reason solo founders rarely fail due to lack of brilliant ideas. They fail because they don't systematically measure metrics that matter and don't iterate on improvements.

Common mistakes

1. Calculating too early. If you have 5 customers, this metric is noise, not signal. Wait until you have at least 50 customers and 2-3 months of data before drawing conclusions. Too early and you'll see random variance, not real patterns.

2. Ignoring variations by segment. Your customers acquired via blog may behave differently than those acquired via paid ads. Your enterprise customers may function differently than your small-biz customers. Always segment your metrics to see the true signal.

3. Optimizing without context. Improving this metric by 10% means 10% more revenue? Not necessarily. Understand upstream and downstream impact before optimizing. Focus on the change that will have the biggest impact on revenue.

4. Forgetting causality flows both directions. A low metric may indicate a product issue, a positioning issue, or that you're attracting the wrong customers. Before optimizing, understand why it's low.

How to act on this

Calculate this metric for your last 30 customers right now. Do you have the data? If yes, establish a baseline and write it down. That's your first step toward improvement.

Identify your highest-value customer segment. Is it a specific monthly cohort? An acquisition channel? A customer type? Focus on that segment and try to improve this metric for them.

Run one small experiment to improve this metric by 5-10%. Measure, learn, iterate. The compounding of these small improvements over 12 months creates a huge difference.

How to calculate it

Gross margin = (Revenue - Cost of goods sold) / Revenue x 100

Say your MRR is $6,000. Your direct delivery costs:

  • Vercel hosting: $40
  • Database (PlanetScale): $39
  • OpenAI API calls: $320
  • Stripe fees (2.9% + $0.30): ~$204
  • Customer support tool: $50
  • Total COGS: $653

Gross margin = ($6,000 - $653) / $6,000 x 100 = 89.1%

That's strong. Most SaaS businesses aim for 80-90%. If you're relying heavily on expensive APIs (like AI inference), watch this number carefully as you scale. A $320 API bill at $6K MRR is fine. A $32,000 API bill at $60K MRR might compress your margins to 60%.

Example

You run a SaaS that generates AI-powered reports. At 50 customers, your OpenAI costs are $400/month and MRR is $3,500. Gross margin = 82%. You 5x to 250 customers. MRR is $17,500 but OpenAI costs jumped to $3,800 because heavy users generate 10x more reports than light users. Gross margin drops to 71%. You add usage caps on the lower tier and charge $0.10 per extra report. API costs stabilize at $2,200 for the same customer count. Gross margin recovers to 81%. The fix wasn't cutting a feature -- it was aligning your pricing with your cost structure.

Related terms

  • MRR
  • CAC
  • LTV

FAQ

Why does Gross Margin matter?+

It gives a fast signal about whether your product and distribution system is improving or regressing.

previous

Customer Lifetime Value and Why It Sets Your Ad Budget

How to calculate LTV, what a good ratio looks like, and how it connects to CAC and growth strategy.

next

GMV: Gross Merchandise Value for Marketplaces

What GMV measures, how it differs from revenue, and why it can be misleading without take rate.

Put the concept to work

Move from definitions to decisions with guides, comparisons, and calculators built for founders.

Explore the blog

Related terms

newsletter

Weekly builds, experiments, and growth playbooks

No fluff. Just things that actually shipped.

Gross Margin for SaaS: What Counts as Healthy? | fromscratch