Mowt
FeaturesIntegrationsPricingMobileAbout
Start free trial
Free tool · Finance

SaaS gross margin calculator

Gross margin is the ceiling on everything - LTV, the Rule of 40, your valuation. Break your real cost of revenue out of the top line to see your true gross margin and exactly where it leaks.

$

Total recurring revenue this month.

$

Cloud, CDN, data, infra.

$

Teams that keep customers live.

$

Stripe and card fees on revenue.

$

APIs and tools baked into the product.

Gross margin
-
-
Gross profit / mo
-
Cost of revenue / mo
-
Annual gross profit
-
Save this as a one-page report card
A beautiful, on-brand PDF of your numbers - ready to share.
Hosting
-
of revenue
Support
-
of revenue
Payment fees
-
of revenue
Third-party
-
of revenue

Smart insights

Cost of revenue breakdown

Every cost line above the gross-margin line, largest first, as a share of revenue. The biggest line is where margin work pays off most.

Cost component Monthly cost % of revenue

SaaS gross margin benchmarks

The market median sits in the low-to-mid 70s - lower than most founders assume. For where the band is heading and how AI compute is pulling it down, see the 2026 state of SaaS metrics.

Best-in-class SaaS
80-90%

pure software, light support

Healthy SaaS
75-80%

the typical target

Below 70%
needs work

often support- or infra-heavy

What counts as cost of revenue in SaaS

Cost of revenue is what it takes to deliver and run the product: hosting and infrastructure, the support and customer success teams that keep customers live, payment processing fees, and third-party software baked into the product.

What it is not: sales and marketing, and R&D. Those sit below the gross-margin line. The test is simple - is the cost about delivering to the customers you already have, or about winning new ones? Delivery sits above the line; acquisition sits below it. What is left after cost of revenue is the gross profit that ultimately funds your free cash flow.

The formula

Gross margin = (revenue - cost of revenue) / revenue

Example: $100,000 revenue with $20,000 of cost of revenue:

($100,000 - $20,000) / $100,000
= 80% gross margin
Keep 80 cents of every revenue dollar before sales, marketing and R&D.

Why gross margin matters

Ceiling

It sets the ceiling

LTV, the Rule of 40, and your revenue multiple all assume software-grade margins. A thin gross margin caps every one of them - there is no LTV story or valuation multiple that survives 55% gross margin, because the money to fund it was never there in the first place.

Fixable

It is fixable

The biggest line is usually hosting or support, and both respond to architecture and product work, not heroics. Measure gross margin monthly and it stops drifting - you catch the cost line that crept up before it costs you a year of profit.

FAQ

Frequently asked questions

How do I read the gross margin this calculator gives me?

Put your number against three bands: 75-80% is the healthy target for SaaS, 80-90% is best-in-class pure-software territory, and below 70% needs work - usually heavy support or infrastructure costs eating into the top line. The report card and smart insights above tell you which band you land in and which cost line to fix first. For the underlying definition of gross margin, see the gross margin glossary entry.

What counts as cost of revenue in SaaS?

Cost of revenue is everything it takes to deliver and run the product: hosting and infrastructure, the support and customer success teams that keep customers live, payment processing fees, and third-party software embedded in the product. Sales, marketing and R&D are excluded - they sit below the gross-margin line, not above it.

Why is my gross margin not 90%?

Very few SaaS businesses actually hit 90%. Real support, real infrastructure and real payment fees all sit inside cost of revenue and pull the number down. A 90% margin usually means either pure self-serve software with almost no human support, or costs that haven't been fully allocated yet. 80% is an excellent, honest number for most teams.

Does customer support count as a cost of revenue?

Yes. The team that keeps existing customers live - support and customer success - is part of delivering the service, so it belongs above the gross-margin line in cost of revenue. New-business acquisition is different: that is sales and marketing, which sits below the line. The test is whether the cost is about delivering to current customers or winning new ones.

How does gross margin affect valuation?

Revenue multiples assume software-grade margins. A low gross margin means each dollar of revenue is worth less because less of it drops through to profit, which compresses the multiple a buyer or investor will pay. A business at 85% gross margin and one at 60% are not worth the same multiple even at identical ARR.

Is Stripe a cost of revenue?

Yes. Payment processing is a direct cost of taking revenue - you cannot collect a dollar without paying the fee on it - so it belongs in cost of revenue, not in overhead. It sits right alongside hosting and support above the gross-margin line. To see exactly what Stripe takes, use the Stripe fee calculator and feed the result into the payment-processing input here.

What is the median SaaS gross margin?

The median sits around 73-75% (SaaSDB puts it at 74.67%), which is lower than the 80%+ figure founders often quote as the goal. That gap matters: most operators benchmark themselves against best-in-class numbers and conclude they are behind, when in reality the typical SaaS business runs in the low-to-mid 70s once real support, hosting and payment fees are allocated. Use the median as the honest middle of the market and the 75-80% healthy band as where a well-run pure-software business should land, with 80-90% reserved for best-in-class.

What is the difference between gross margin and gross profit?

Gross profit is a money figure; gross margin is that figure as a percentage of revenue. Gross profit is revenue minus cost of revenue, so £100,000 of revenue with £20,000 of cost of revenue gives £80,000 of gross profit. Gross margin divides that by revenue: £80,000 / £100,000 is an 80% gross margin. Gross profit tells you how many pounds you keep to fund sales, marketing and R&D; gross margin tells you how efficiently you keep them, and it is the percentage that drives LTV, the Rule of 40 and your revenue multiple.

Do AI and compute costs lower SaaS gross margin?

Yes - often by 10-20+ points, far more than most teams expect. ICONIQ's 2026 data puts AI-native product gross margins near 52% versus a roughly 73-75% software median, almost entirely because inference and GPU compute land in cost of revenue rather than R&D. If you embed a large language model or run heavy ML inference per request, that spend scales with usage and belongs above the gross-margin line alongside hosting. Track it as its own cost line, because unlike fixed infrastructure it grows with every active customer and is the fastest-moving threat to an otherwise software-grade margin.

Get started

Watch your gross margin every month

Mowt reads your Stripe data and shows real recurring revenue, so you can track gross margin against your costs as it moves - not once a quarter when the books close, but updated daily.

Start 7-day free trial

No credit card required · Connect Stripe in 1 click