Gross Margin in SaaS: What Good Looks Like and How to Improve
Gross margin is the foundation of SaaS profitability. Learn what drives it, how to calculate it, and proven strategies to improve your margins.
Gross margin tells you how much of your revenue is available to fund growth after paying for the direct costs of delivering your service. It's one of the most fundamental measures of business health, and it directly impacts your valuation, fundraising ability, and strategic options.
What Is Gross Margin?
Gross margin measures revenue minus the direct costs of delivering your product (Cost of Goods Sold, or COGS), expressed as a percentage.
Gross Margin = (Revenue - COGS) / Revenue × 100
For a SaaS company with $1M in revenue and $250K in hosting and support costs, gross margin is 75%.
Use our gross margin calculator to compute your exact margin.
What's Included in COGS?
For SaaS companies, COGS typically includes:
- Cloud infrastructure: AWS, GCP, Azure, or other hosting
- Third-party APIs: Payment processing, email delivery, SMS
- Customer support: Support team salaries and tools
- Professional services: Implementation and training costs
- Content delivery: CDN, bandwidth, and storage costs
What Good Gross Margin Looks Like
| Tier | Gross Margin | Examples |
|---|---|---|
| Excellent | 80-90% | Mature cloud SaaS |
| Good | 70-80% | Typical SaaS |
| Average | 60-70% | SaaS with significant services |
| Needs improvement | Below 60% | Infrastructure-heavy or services-heavy |
Public SaaS companies average 75% gross margin. Top-quartile companies achieve 80%+.
Why Gross Margin Matters
- Valuation: Higher gross margin companies command higher multiples
- Growth capacity: More margin dollars available for sales and marketing
- Profitability path: Higher margins mean reaching profitability faster
- Pricing flexibility: Higher margins give you room to compete on price
How to Improve Gross Margin
Reduce Infrastructure Costs
- Negotiate cloud provider discounts (reserved instances, committed use)
- Optimize database and compute usage
- Implement cost monitoring and alerting
- Consider multi-cloud or hybrid strategies
Automate Support
- Implement self-service knowledge bases
- Use chatbots for Tier 1 support
- Build automated onboarding flows
- Create community forums for peer support
Optimize Delivery
- Improve deployment efficiency
- Reduce API dependency costs
- Streamline professional services delivery
- Build product features that reduce support tickets
Pricing Adjustments
- Raise prices to improve margin percentage
- Add premium tiers with higher margins
- Bundle services into higher-value packages
Gross Margin and the Full Picture
Gross margin doesn't exist in isolation. Track it alongside:
- LTV: Higher margins increase LTV. Use our LTV calculator
- CAC: Margin dollars determine how quickly you recover CAC. Use our CAC calculator
- Payback period: Higher margins = shorter payback. Use our payback period calculator
- Rule of 40: Margin contributes to profitability. Use our Rule of 40 calculator
Common Gross Margin Mistakes
- Not tracking at all: Many early-stage companies don't calculate gross margin
- Including G&A costs: Gross margin should only include direct costs
- Ignoring professional services: Services drag down margins; track software and services separately
- Not improving over time: Gross margin should increase as you scale
Our SaaS Metrics Dashboard connects gross margin with all your key metrics for a complete view of business health.
Calculate and improve your gross margin with our gross margin calculator.