NEWJoin 1M+ SaaS Professionals|Get Weekly Insights, Trends & Expert PicksSubscribe Free →

Spotsaas logo

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

Revenue:Total recurring revenue (and any other recognized revenue) in the period.
COGS (Cost of Goods Sold):Direct costs of delivering the service: hosting, infrastructure, payment processing, support staff, and third-party software costs allocated to the product.

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
Gross Margin = 82% — solid for SaaS.

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
Gross Margin = 65% — below SaaS benchmark due to infrastructure intensity.

What Is a Good Gross Margin? Industry Benchmarks

Stage / ContextTypical ValueWhat It Means
Below SaaS Benchmark< 65%High COGS likely from manual delivery, professional services, or infrastructure intensity.
Acceptable65% – 75%Common in data-heavy, support-intensive, or early-stage SaaS.
Healthy SaaS75% – 85%Standard benchmark for pure-play SaaS products.
Best-in-class85%+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

1

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.

2

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.

3

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.

Embed This Calculator on Your Website

Add this free What is Gross Margin? to your blog, website, or resource page in seconds. Help your readers calculate their own metrics — and earn a backlink to Spotsaas.

<div id="spotsaas-calc-gross-margin"></div>
<script
  src="https://www.spotsaas.com/embed/calculators/gross-margin.js"
  data-calculator="gross-margin"
  async
></script>

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].

Grow your pipeline with buyers who are already looking for you

254,000+ buyers use Spotsaas every month to evaluate and shortlist software. Get in front of them — for free, or with a managed growth plan built around your category.