Gross Margin in SaaS — why 80% is the standard and what goes into COGS
Gross Margin in SaaS — why 80% is the standard and what goes into COGS
Gross Margin is the foundation of SaaS financial health. It shows how much of every dollar of revenue is left after the direct costs of delivering the product. It's what determines how efficiently a company grows.
> Gross Margin = (Revenue − COGS) / Revenue × 100%
COGS (Cost of Goods Sold) is the direct cost of providing the service. The lower the COGS, the more money is left for growth and profit.
Why SaaS margins are 75-85%
Unlike physical goods, delivering one more copy of software costs almost nothing. That's why SaaS is one of the highest-margin businesses in the world:
| Business type | Typical Gross Margin | ||
|---|---|---|---|
| SaaS (mature) | 75-85% | ||
| SaaS (top-tier) | 85-90% | ||
| Marketplace | 50-70% | ||
| E-commerce | 20-40% | ||
| Hardware | 20-35% | ||
| Services / agencies | 30-50% |
What goes into COGS for SaaS
The main mistake is confusing COGS with operating expenses. COGS includes only what's directly needed to run the service:
| Goes into COGS ✓ | Does NOT (it's OpEx) ✗ | ||
|---|---|---|---|
| Hosting / cloud (AWS, GCP) | Sales & Marketing | ||
| Third-party APIs in the product | R&D / feature development | ||
| Customer support (part) | G&A (office, legal, finance) | ||
| Customer Success (part) | Developer salaries | ||
| Payment processing fees | Advertising | ||
| Content delivery (CDN) | Management |
Worked example
A SaaS company:
- Annual revenue: $5,000,000
- Hosting (AWS): $400,000
- Support (basic): $250,000
- Payment fees: $150,000
- Total COGS: $800,000
Gross Margin = (5,000,000 − 800,000) / 5,000,000 = 4,200,000 / 5,000,000 = 84% → excellent
How Gross Margin affects everything else
Margin is a multiplier on the efficiency of the entire economy:
Rule of 40
Gross/EBITDA margin is half of the R40 formula. +5pp of margin = +5 points of R40 directly.CAC Payback
CAC Payback = CAC / (MRR × Gross Margin). Raising margin from 75% to 85% cuts payback by ~12% with no change in CAC.
Runway
Higher margin → less cash burned per dollar of revenue → a longer runway.Valuation
Public SaaS at 80%+ margin trade at a premium on multiples vs companies at 60%. Margin feeds directly into valuation.4 levers to grow Gross Margin
1. Hosting optimization
The most common source of bloated COGS at scale:- Reserved / committed-use instances (−30-50% vs on-demand)
- Autoscaling and shutting down idle resources
- Caching and CDN instead of recomputation
- An audit of "forgotten" services and duplicates
2. Support deflection
- A knowledge base and docs (removes 30-50% of tickets)
- An AI chatbot for routine questions
- Self-serve onboarding for SMB
3. Pricing review
A price increase goes straight to margin (COGS doesn't rise proportionally). +10% price at the same costs = a noticeable gain in Gross Margin.4. Remove low-margin services from the core
Custom implementation and consulting at 30% margin dilute the overall figure. Break them into a separate line or hand them to partners so the core SaaS shows an honest 80%+.When Gross Margin is MISLEADING
1. Inconsistent COGS — if you include Support one quarter and not the next, the trend is meaningless
2. Services in revenue — high-touch implementation understates the "software" margin; separate the revenue streams
3. Early stage — at low revenue, fixed hosting gives a distortedly low margin that corrects with scale
4. Gross vs Net — don't confuse gross margin with operating/net margin
Relationship to other metrics
| Metric | Relationship to Gross Margin | ||
|---|---|---|---|
| Rule of 40 | Margin is half of the formula | ||
| CAC Payback | Margin is a multiplier in the denominator | ||
| LTV | Net LTV is calculated after deducting COGS | ||
| Burn Multiple | Higher margin → lower burn per unit of growth |
Bottom line
Gross Margin is the foundation of SaaS unit economics. Aim for 75-85%, calculate COGS consistently (hosting + basic support + fees, excluding S&M and R&D), and remember: margin amplifies or weakens every other metric. Raising margin by 5-10pp is one of the cheapest ways to improve R40, CAC Payback and runway all at once.
Calculate your Gross Margin below — the built-in calculator shows the result and a benchmark.
---
Further resources
- /en/ruleOf40 — Rule of 40 (margin is half the formula)
- /en/cacPayback — CAC Payback (margin in the denominator)
- /en/runway — Runway
- /en/blog/rule-of-40-saas — Rule of 40 in detail