SaaS Gross Margin Calculator: Margin on Recurring Revenue
Work out a SaaS company's gross margin — the share of recurring revenue left once the cost of actually delivering the software is paid.
Adjust the inputs and select Calculate for a full breakdown.
Compare Common Scenarios
How the numbers shift across typical situations for this calculator:
| Scenario | SaaS gross margin | Markup | Gross profit |
|---|---|---|---|
| $5M rev · $1.25M cost | 75.00% | 300.00% | $3,750,000.00 |
| $2M rev · $800k cost | 60.00% | 150.00% | $1,200,000.00 |
| $20M rev · $3M cost | 85.00% | 566.67% | $17,000,000.00 |
| $500k rev · $300k cost | 40.00% | 66.67% | $200,000.00 |
How This Calculator Works
Enter total revenue and the cost of revenue — hosting, support, success, payment processing, and embedded third-party software. The calculator subtracts one from the other for gross profit and divides by revenue to give the gross margin, with the markup on cost shown alongside.
The Formula
Profit Margin and Markup
Markup = (Revenue − Cost) / Cost × 100 — the same profit measured against cost instead of revenue
Worked Example
A SaaS on $5M of revenue with $1.25M of cost of revenue posts a 75% gross margin and $3.75M of gross profit. Public SaaS leaders typically run 70% to 85% gross margins; anything below 60% is usually too service-heavy or hosting-heavy to scale efficiently.
Key Insight
SaaS gross margin sets the ceiling on how much revenue can fund growth. A 75% margin gives a SaaS 75 cents of every dollar to spend on R&D, sales, and profit; a 40% margin barely leaves room for sales investment, which is why service-heavy 'SaaS' companies trade at lower multiples than pure-software ones.
Why SaaS gross margin should be ≥75% — and what it means when it isn't
Pure-subscription SaaS businesses at scale should achieve ≥75% gross margin, and elite SaaS businesses achieve ≥80%. The economic logic: serving an additional subscriber adds a small amount of infrastructure cost (hosting), trivially small amounts of support cost (per the per-customer ratio), and zero variable cost for the software itself (the software was built once). The cost structure should be predominantly fixed.
Sub-75% gross margin in SaaS signals one of four things. (1) Heavy professional services exposure — implementation, customization, training revenue (typically 20-40% gross margin) is bundled into headline COGS. Strip it out. (2) Over-provisioned infrastructure — early-stage SaaS often runs at 50-65% gross margin because committed AWS capacity exceeds usage. This improves with scale. (3) Hosting-heavy product — vertical SaaS that processes large data volumes (video, genomics, AI inference) can have structurally lower margins, 55-70%. (4) Inefficient customer support — high-touch support burns gross margin; the answer is usually product improvements that reduce support load, not cost-cutting on the support team.
Wall Street analysts apply a meaningful valuation discount for SaaS with sub-75% gross margin. The implicit multiple on subscription revenue is set by the steady-state contribution margin — businesses that cannot reach 75%+ gross margin at scale are valued more like services businesses (3-6× revenue) than like pure SaaS (8-15× revenue at growth rates of 25-40%).
Cost of revenue line items — where the dollars actually go
A typical mature B2B SaaS company's COGS breakdown (% of subscription revenue): hosting and infrastructure 8-12%, customer support 4-7%, payment processing 1-2%, third-party software (e.g., embedded analytics, CDN, email delivery) 2-4%, customer success allocated to COGS 2-4%. Total: ~17-30%, yielding 70-83% gross margin. Variance across companies reflects mix more than operating quality.
Hosting cost as a percentage of revenue is the single most negotiable line. Three-year AWS Reserved Instances and Savings Plans typically save 30-45% vs on-demand pricing; for a SaaS company at scale, this is the single most impactful margin-improvement lever. Azure and GCP both offer similar commit-based discounts. Cost-conscious SaaS CFOs revisit cloud commitment levels quarterly and target ≥80% reservation coverage.
Customer support is the second-largest COGS line and the most operationally adjustable. The metric to track is support tickets per $1K of ARR — best-in-class SMB SaaS runs 0.3-0.5 tickets/$1K ARR; mid-market 0.1-0.3; enterprise 0.05-0.1. Above these benchmarks, support load is being driven by product issues, weak documentation or onboarding gaps — fixing the product is the right answer, not adding support headcount.
SaaS gross margin benchmarks by scale (SaaS Capital + Bessemer 2024)
Industry SaaS gross margin benchmarks by ARR scale, separating subscription gross margin from blended (subscription + services).
| ARR scale | Subscription gross margin (median) | Blended gross margin | Top quartile subscription |
|---|---|---|---|
| <$1M | 55-65% | 45-55% | 75%+ |
| $1-5M | 65-72% | 55-65% | 78%+ |
| $5-20M | 72-78% | 65-72% | 82%+ |
| $20-50M | 75-80% | 70-75% | 84%+ |
| $50-100M | 76-82% | 72-78% | 85%+ |
| $100M+ (mature public) | 78-83% | 73-78% | 85%+ |
Top-quartile elite SaaS companies (Snowflake, Datadog, ServiceNow historically) maintain subscription gross margin ≥83% at scale. Vertical SaaS with infrastructure intensity (video, AI inference, genomics) structurally runs 5-10 percentage points lower. Always benchmark subscription margin separately from professional services margin.
Frequently Asked Questions
What goes into SaaS cost of revenue?
Hosting and infrastructure, customer support, customer success teams, payment processing fees, and any third-party software embedded directly in the product. R&D, sales, and marketing sit in operating costs, not here.
What is a healthy SaaS gross margin?
Public SaaS leaders post 70% to 85%. Below 60% is usually a sign that the product is too service-heavy or the infrastructure too costly to scale efficiently. Above 85% is rare and typically reflects very lean delivery.
Why does SaaS gross margin matter so much?
It is the money available to fund growth. High gross margin SaaS can spend aggressively on R&D and sales while still earning; low gross margin SaaS struggles to fund its own marketing, capping growth.
Should I count R&D as cost of revenue?
No. R&D builds the product but is not consumed each time a customer uses it. It belongs in operating costs alongside sales and general administration, not cost of revenue.
How does SaaS gross margin compare with traditional software?
On-prem software can carry near-90% margins because hosting sits with the customer. SaaS is lower because the vendor runs the infrastructure — but recurring revenue is a structural plus that on-prem cannot match.
When is this calculator unreliable?
When professional services revenue is mixed into the SaaS gross margin calculation (separate them — services typically run 20-40% gross margin and dilute the subscription number meaningfully), when hosting capacity is over-provisioned in early-stage operations (margin improves with scale — set expectations accordingly), or when comparing companies with different COGS classification policies (some include customer success in COGS, others in S&M). For investor-facing reporting, follow SEC Reg G guidance and reconcile to GAAP cost of revenue.
References & Authoritative Sources
- SaaS Capital — Annual Benchmarks — Annual SaaS Margin and Operating Benchmarks · consulted June 1, 2026 · Industry SaaS gross margin benchmarks by ARR scale
- Bessemer Venture Partners — State of the Cloud — State of the Cloud Report (Annual) · consulted June 1, 2026 · Bessemer's annual cloud company benchmarks; gross margin is a headline metric
- U.S. Securities and Exchange Commission (SEC) — Non-GAAP Financial Measures C&DI · consulted June 1, 2026 · SEC guidance on SaaS-specific non-GAAP measures like ARR and gross margin classification
Related Calculators
Embed this calculator
Add this calculator to your website for your readers. The embed includes a neutral attribution link to the original CalcDomain page for methodology, updates, and source notes.
Attribution uses rel="nofollow" by default and is included for transparency, not ranking manipulation.
Suggest an improvement
Found a calculation issue, outdated source, unclear assumption, or missing edge case? Send a short note so we can review it.
Methodology & Review
SaaS gross margin equals (subscription revenue − cost of revenue) divided by subscription revenue, expressed as a percentage. Cost of revenue (COGS) for SaaS includes: hosting and infrastructure (AWS/Azure/GCP), customer support directly attributable to the service, payment processing fees on subscription billings, third-party software embedded in the offering, and customer success costs for tier-included services. It excludes: sales and marketing (these are in S&M, not COGS), product development (R&D), and professional services (often reported as a separate revenue line with its own much lower gross margin, typically 20-40%). The calculator returns gross margin for the subscription business; blended gross margin (combining subscription + professional services) is typically 5-15 percentage points lower. RELIABILITY: Reliable for pure-subscription SaaS businesses with clean cost-of-revenue accounting. Less reliable for SaaS with significant professional services revenue (separate the two and report subscription margin alone), for early-stage SaaS where infrastructure is over-provisioned (margins improve with scale), or when comparing across companies that include or exclude customer success in COGS differently.
Reviewed according to the CalcDomain Editorial Policy & Calculator Methodology. We document formulas, edge cases, sources, update dates, and correction paths for calculator pages.
Updated