SaaS metrics guide
SaaS Gross Margin
Gross margin is the quiet input behind three metrics that get far more attention. LTV multiplies by it, CAC payback divides by it, and every point of margin moves both. Getting the line between cost of revenue and operating expense right is therefore not accounting housekeeping — it is the difference between a 3:1 LTV:CAC ratio and a 4x that only exists on a slide.
Last updated 2026-10-22
The formula
gross margin % = (revenue − cost of revenue) / revenue × 100
gross profit per customer per month = ARPU × gross marginTwo decisions hide inside that first line: which period, and what counts as cost of revenue. The period barely matters as long as it is consistent. The classification does.
What belongs in SaaS cost of revenue
| Cost of revenue (in) | Operating expense (out) |
|---|---|
| Cloud hosting, storage, bandwidth | Research and development, engineering |
| Third-party APIs the product depends on | Sales and marketing, including commissions |
| Payment processing and billing fees | General and administrative, finance, legal |
| Customer support and success salaries | Product management |
| Onboarding and implementation delivery | Office, recruiting, internal tools |
| Amortisation of capitalised software directly serving customers | Acquisition of new customers of any kind |
The test is causation, not department: if the cost would fall to zero when the customer disappeared, it is cost of revenue. Support is the contested line — most modern SaaS companies include it, and investors increasingly expect it, because a product that needs heavy human support is not really an 85% margin product.
A worked example
A company with $1,200,000 of annual recurring revenue:
hosting + infrastructure $150,000
third-party APIs $60,000
payment processing $36,000
support + customer success $114,000
cost of revenue $360,000
gross margin = (1,200,000 − 360,000) / 1,200,000 = 70%If the same company reported hosting alone as cost of revenue, the margin would be 87% — a number that describes a different business. Both are arithmetically correct; only the first predicts what happens when revenue doubles.
Benchmarks
| Gross margin | What it usually means |
|---|---|
| 80%+ | Pure software delivery, low-touch support, minimal services. Best-in-class. |
| 75%–80% | The median band for modern SaaS. Healthy. |
| 70%–75% | Infrastructure-heavy or support-heavy product. Acceptable, but check the trend. |
| 60%–70% | Significant services or data costs. LTV and payback need to be strong elsewhere to compensate. |
| Below 60% | Either a services business wearing a SaaS label, or a cost structure problem. Fix margin before scaling acquisition. |
These bands follow the ranges published by Bessemer, OpenView and KeyBanc's SaaS survey. Compare within segment: a data-heavy product at 72% is not failing the way a project-management tool at 72% would be.
Why it feeds LTV and CAC payback
Both metrics are supposed to measure money available to repay acquisition and contribute to overhead, so both are built on gross profit:
LTV (gross profit) = ARPU × gross margin × (1 / monthly churn)
CAC payback (months) = CAC / (ARPU × gross margin)The sensitivity is easy to underestimate. At $100 ARPU with a 3% monthly churn rate, moving from 80% to 60% margin cuts LTV from $2,667 to $2,000 and lengthens payback on a $1,500 CAC from 18.8 months to 25 months — the same business, described twice. This is why the LTV:CAC calculator asks for margin rather than revenue, and why the LTV:CAC guide treats a ratio computed on revenue as inflated.
Where gross margin gets misstated
- Excluding support and success salaries. The most common inflation. It moves a 70% margin to 85% without changing anything real.
- Including all engineering. R&D is an operating expense. Only capitalised software amortisation that directly serves customers belongs in cost of revenue.
- Leaving professional services in revenue at 100%. If services are billed, their delivery cost must sit in cost of revenue too, or the blended margin lies.
- One-off implementation costs. They belong in cost of revenue in the period delivered, which is exactly why first-year margins look worse than steady state.
- Quoting gross margin from a different definition than the one used in LTV. The two must match, or the ratio is built from two different businesses.
Raising it
Gross margin improves through infrastructure efficiency, support deflection and pricing — in roughly that order of difficulty:
- Infrastructure. Reserved capacity, log retention, storage tiering and query cost usually take several points with no customer-visible change.
- Support deflection. Better onboarding and docs move ticket volume, which is the largest headcount line in cost of revenue.
- Pricing and packaging. Usage-based pricing aligns cost with revenue and is often the only durable fix for a data-heavy product.
Scale acquisition only after margin is understood: a negative-margin product loses more money with every customer acquired, and no CAC number makes that work. See the CAC formula for what belongs on the other side of the ledger.
Run the numbers yourself
LTV:CAC Ratio Calculator — free, no signup, results computed in your browser.
Open the LTV:CAC calculator →Frequently asked questions
What is a good gross margin for a SaaS business?
75%–80% is the median band, and 80%+ is best-in-class. Below 70% needs a reason — infrastructure-heavy delivery, meaningful services, or high support load — and below 60% usually means the business is closer to services than to software.
Does customer success count in cost of revenue?
Yes, for support and success staff who deliver or maintain the service. Acquisition-focused sales and marketing does not. The test is whether the cost disappears when the customer does.
Is gross margin the same as gross profit?
Gross profit is the dollar amount (revenue minus cost of revenue); gross margin is that amount as a percentage of revenue. LTV and CAC payback use gross profit, which is ARPU multiplied by the margin.
How do I calculate gross margin in Excel?
With revenue in B2 and cost of revenue in C2: =(B2-C2)/B2, formatted as a percentage. Keep the cost of revenue definition in a separate sheet so the same figure feeds LTV and payback calculations.
Should payment processing fees be in cost of revenue?
Yes. They scale directly with revenue and would not exist without the sale, which is the definition of cost of revenue in a subscription business.
Related guides
- The CAC FormulaCustomer acquisition cost is acquisition spend divided by new customers won in the same period. The formula is easy; the numerator is where it goes wrong.
- What Is a Good LTV:CAC Ratio?A good LTV:CAC ratio is about 3x for most B2B SaaS. See benchmarks by segment, why the ratio must use gross profit, and the mistakes that inflate it.
- CAC Payback Period: Formula and BenchmarksCAC payback is CAC divided by monthly gross profit per customer. See the formula, a worked example, benchmarks by segment and the mistakes that shorten it.
Maintained by The SaaS Metrics Calculators Editorial Team
Maintained by the site’s editors, with every formula unit-tested and every benchmark traced to a published source
Formulas and benchmarks last reviewed October 2026.
This page is educational. Every figure is computed in your browser from the inputs you supply, and nothing is checked against your own accounts — treat results as a planning aid, not as financial advice.