SaaS metrics library

Gross Margin: SaaS Formula, Benchmarks and Why It Matters

Gross margin is the percentage of revenue remaining after subtracting the cost of goods sold (COGS). For SaaS, this typically means hosting/infrastructure, customer support, and third-party fees tied directly to delivering the product. Gross Margin = (Revenue − COGS) / Revenue. Most mature SaaS companies run a gross margin of roughly 70–85%.

What is Gross Margin?

Gross margin is the percentage of revenue a company keeps after paying the direct costs of delivering its product, its cost of goods sold (COGS). For a SaaS business, COGS usually means cloud hosting and infrastructure, customer support staff, payment processing fees, and any third-party services baked into running the product.

Gross Margin=RevenueCOGSRevenue \text{Gross Margin} = \frac{\text{Revenue} - \text{\textcolor{#007ac4}{COGS}}}{\text{Revenue}}

In words: gross margin equals revenue minus cost of goods sold, divided by revenue.

Example

A company brings in $500,000 in monthly revenue. Its hosting, support, and payment-processing costs (COGS) total $100,000 for the month.

Gross Margin = ($500,000 − $100,000) / $500,000 = 80%

That company keeps 80 cents of every revenue dollar after the direct cost of delivering the product, before spending anything on sales, marketing, R&D, or overhead.

What's a typical SaaS gross margin?

As a general industry convention (not a fixed rule), mature, product-led SaaS companies commonly run a gross margin in the 70–85% range. Businesses with a large services or custom-implementation component, or ones still optimizing their infrastructure spend, often see lower gross margins, since more of their cost base scales linearly with each customer rather than staying fixed.

Gross margin tends to improve as a company scales, since fixed infrastructure and support costs get spread across a larger revenue base.

Gross Margin vs Net Margin

Gross margin and net margin both describe profitability, but they answer different questions and subtract different costs.

Gross MarginNet Margin
SubtractsCOGS only (hosting, support, delivery costs)All operating expenses (COGS + R&D + sales & marketing + G&A)
AnswersHow efficient is delivering the product itself?Is the whole business profitable?
Typical SaaS range70–85%Often negative in growth stage; 10–20%+ at maturity

A company can have an excellent gross margin and still run a negative net margin. That usually means the product is cheap to deliver, but the company is spending heavily on growth (sales, marketing, R&D) relative to its current revenue. See Net Margin for the full breakdown.

Why gross margin matters

Gross margin shows up in more places than a single line on the income statement:

  • Valuation. Investors read gross margin as a signal of how "software-like" a business really is. High, stable gross margins support the idea that revenue can scale faster than the cost of serving it.
  • Other formulas depend on it. CAC Payback Period divides by gross margin, because a company only actually recovers the margin it keeps from each customer, not their gross revenue.
  • Cost discipline. A declining gross margin is often an early warning sign: rising infrastructure costs, a support team growing faster than the customer base, or discounting that's eating into unit economics.

How to improve gross margin

  • Automate support for common issues. Self-serve help content and in-app guidance reduce the support headcount needed per customer.
  • Renegotiate or optimize infrastructure spend. Cloud costs often creep up unnoticed as usage patterns change; periodic audits catch waste.
  • Watch discounting. Aggressive discounting lowers revenue without lowering COGS, directly compressing gross margin.
  • Segment gross margin by plan or customer tier. Some tiers may be far less profitable to serve than others once support load is accounted for. That's useful input for pricing decisions.

Common gross margin questions

What is a good gross margin for a SaaS company?

Most mature, product-led SaaS companies run a gross margin between 70% and 85%. Companies with a heavier services or implementation component, or that are early in optimizing infrastructure costs, often sit lower. There's no single "right" number. It depends on how much of delivery is automated versus human-supported.

What counts as COGS for a SaaS business?

Typically: hosting and infrastructure (cloud compute, storage, bandwidth), customer support salaries, payment processing fees, and any third-party licensing costs required to deliver the product. Sales, marketing, R&D, and general administrative costs are excluded from COGS. They sit below the gross margin line.

How does gross margin affect valuation?

Investors use gross margin as a proxy for how scalable and software-like a business really is. A high, stable gross margin suggests revenue can grow faster than the cost of serving it, supporting higher revenue multiples. A low or declining gross margin raises questions about whether the business is really "software," or a services business wearing a SaaS label.

Why does CAC Payback Period use gross margin instead of revenue?

Because you only actually recover the portion of revenue left after the cost of serving that customer. Dividing by raw revenue instead of gross-margin-adjusted revenue would overstate how quickly acquisition costs are paid back. See CAC Payback Period for the full formula.

Gross margin vs net margin, which one should I track?

Track both, for different reasons. Gross margin tells you how efficient your core product delivery is. Net margin tells you whether the whole business, including sales, marketing, and R&D spend, is profitable. A healthy gross margin with a deeply negative net margin usually means a company is intentionally reinvesting in growth, not that the product itself is unprofitable to deliver. See Net Margin.