What is Gross Margin?
Gross Margin is the percentage of revenue that remains after subtracting the cost of goods sold (COGS). For SaaS companies, COGS typically includes hosting and infrastructure costs, customer support, payment processing fees, and third-party software costs directly tied to delivering the service. A healthy SaaS gross margin typically ranges from 70% to 85%. Higher gross margins give you more room to invest in growth, R&D, and sales while maintaining profitability.
$
$
Gross Margin:
--
The Formula
Gross Margin (%) = ((Revenue − COGS) / Revenue) × 100
Worked Examples
Standard Gross Margin
A SaaS company generates $500,000 in revenue with $90,000 in COGS (hosting + support).
- Gross Profit = $500,000 − $90,000 = $410,000
- Gross Margin = ($410,000 / $500,000) × 100
Infrastructure-Heavy SaaS (Lower Margin)
A data-intensive SaaS company: Revenue $1M, COGS $350K (heavy cloud compute + dedicated support).
- Gross Profit = $1,000,000 − $350,000 = $650,000
- Gross Margin = ($650,000 / $1,000,000) × 100
What Is a Good Gross Margin? Industry Benchmarks
| Stage / Context | Typical Value | What It Means |
|---|---|---|
| Below SaaS Benchmark | < 65% | High COGS likely from manual delivery, professional services, or infrastructure intensity. |
| Acceptable | 65% – 75% | Common in data-heavy, support-intensive, or early-stage SaaS. |
| Healthy SaaS | 75% – 85% | Standard benchmark for pure-play SaaS products. |
| Best-in-class | 85%+ | Minimal delivery costs. Highly automated, low-support-intensity products. |
How to Improve Gross Margin
Optimize Cloud Infrastructure
AWS, GCP, and Azure costs are often the largest COGS item. Right-size instances, implement auto-scaling, use reserved instances for predictable workloads, and regularly audit unused resources.
Automate Customer Support
Human support is expensive. Building comprehensive in-app help, an AI-powered chatbot, and a self-service knowledge base reduces support tickets and the headcount required to resolve them.
Shift Gross COGS to OpEx with Scale
As ARR scales, the fixed components of COGS (your infrastructure baseline, support team) spread over more revenue, improving gross margin naturally. Focus on keeping COGS growth well below revenue growth.
Remove Professional Services from COGS
If your COGS is inflated by professional services (implementation, consulting), consider productizing those services, charging for them separately, or converting them to customer success functions that drive retention and expansion.
Gross Margin vs. Related Metrics
Gross Margin vs. EBITDA Margin
Gross Margin only removes direct delivery costs (COGS). EBITDA Margin removes all operating expenses (COGS + S&M + R&D + G&A). Gross Margin is the ceiling for what EBITDA Margin can ever reach — a 70% gross margin company can never have a 75% EBITDA margin.
Gross Margin vs. Rule of 40
Common Mistakes When Calculating Gross Margin
Misclassifying S&M and R&D as COGS
Sales, marketing, and R&D costs belong in operating expenses, not COGS. Only direct costs of delivering the product (hosting, support tied to delivery, payment processing) belong in COGS. Misclassifying inflates COGS and understates gross margin.
Ignoring Professional Services Margin Separately
If you have both SaaS and professional services revenue, calculate gross margin for each separately. SaaS gross margins are typically 70–85%; PS margins are often 20–40%. Blending them gives a misleading picture.
Not Tracking Gross Margin Trend Monthly
Gross margin should be stable or improving as you scale. A declining gross margin trend — even while revenue grows — signals that COGS is scaling faster than revenue, which will compress all downstream profitability metrics.
Frequently Asked Questions
About the reviewer
Rajat Gupta is the founder of Spotsaas. Over the past two years, he has reviewed 2,000+ tools across CRM, HR, AI, and finance — applying hands-on product research and a background in commerce and the CFA program to evaluate software through a business and ROI lens. His goal: help teams make software decisions they won't regret.
Disclaimer: This research has been collated from a variety of authoritative sources. We welcome your feedback at [email protected].
