TG3 47 SaaS brands scaled and $84M+ in client pipeline generated. See the proof → Free: 20 SaaS calculators, no signup. CAC, LTV, churn, Rule of 40. Open the tools → We rebuild attribution at the warehouse so every channel gets honest credit. See how →
TG3 SaaS/Glossary/Gross margin
SaaS metrics glossary

What is SaaS gross margin?

SaaS gross margin is the quiet number that decides how much of every dollar you actually keep. Here is the plain definition, what belongs in cost of revenue and why software should clear 70 percent.

Definition
SaaS gross margin is the share of revenue left after the direct cost of delivering your product, before sales, marketing and overhead. It is what makes software valuable: a healthy SaaS keeps 70 to 80 cents of every revenue dollar, which is why the model attracts the valuations it does.

Margin is the foundation every other metric stands on. LTV, payback and the Rule of 40 all use gross profit, not revenue, so a thin margin quietly weakens all of them. The trap is what you count as cost of revenue. Hosting, support and customer success belong in it. Sales and R&D do not. Burying them there flatters the number.

How to calculate it

The SaaS gross margin formula.

SaaS gross margin % = (Revenue minus cost of revenue) / Revenue x 100
Revenue: total recurring revenue in the period.
Cost of revenue: hosting, support, customer success and third-party fees tied to delivery. Exclude sales, marketing and R&D, which sit below the gross margin line.

The free SaaS gross margin calculator works out your margin and shows it against the benchmark.

Benchmarks

What counts as a good SaaS gross margin.

Pure software should run 70 to 80 percent or higher and the best products clear 85. Anything under 70 usually means real cost of revenue, often heavy infrastructure, services or support. That is not always bad but it does mean the business behaves less like classic software and the valuation should reflect it.

Margin matters because it flows everywhere. A 60 percent margin instead of 80 cuts your true LTV by a quarter and stretches payback by the same, which can quietly turn a healthy LTV to CAC ratio into a poor one. Guarding margin as you scale protects every downstream metric at once.

How to improve it

Three ways to improve SaaS gross margin.

01

Optimise infrastructure

Cloud costs creep as you scale. Right-sizing usage and committed-use discounts can recover several margin points without touching the product.

02

Automate support

Support headcount is a common margin drain. Self-serve docs, in-app help and deflection cut the cost of serving each customer.

03

Price for value

Underpricing caps margin from the start. Pricing that tracks the value delivered lifts revenue against a fixed cost of delivery.

Common questions

Questions about SaaS gross margin.

What is SaaS gross margin in simple terms?+

Gross margin is the slice of each revenue dollar you keep after paying the direct costs of running the product, things like hosting and support. If you earn $100 and spend $20 delivering it, your gross margin is 80 percent. It shows how much money is left to cover sales, marketing and everything else.

How do you calculate SaaS gross margin?+

Subtract cost of revenue from revenue, divide by revenue, then multiply by 100. Cost of revenue covers hosting, support, customer success and any third-party fees tied to delivery. The judgement call is what to include: sales, marketing and R&D stay out and putting them in artificially inflates the margin.

What is a good gross margin for SaaS?+

Pure software should run 70 to 80 percent or higher, with the best products above 85. A margin under 70 usually signals meaningful delivery costs such as infrastructure or services. That is workable but it makes the business look less like classic software and investors will value it accordingly.

What counts as cost of revenue in SaaS?+

Cost of revenue is the direct cost of delivering the product: hosting and cloud infrastructure, customer support, customer success, third-party software baked into the product and payment processing. It excludes sales, marketing, R&D and general overhead, which all sit below the gross margin line and belong in operating expenses.

Why does gross margin matter so much in SaaS?+

Because nearly every important metric is built on gross profit, not raw revenue. LTV, CAC payback and the Rule of 40 all use margin, so a thin margin quietly drags them all down. A company that lets margin slip from 80 to 60 percent can watch healthy unit economics turn marginal without a single other thing changing.

Margin slipping as you scale?

If delivery costs are creeping and margin is sliding, every downstream metric suffers. Book a 30-minute audit and we will find the leak. No sales sequence.

Book the 30-minute audit
Response inside 4 business hours · We turn down 1 in 3