Unit economics

Strip infrastructure and support cost out of recurring revenue.

Category
Unit economics
Signup
None
Your data
Stays in your browser

What is a good gross margin for a SaaS company?

Gross margin = (revenue − cost of revenue) ÷ revenue. SaaS Capital says gross margins on SaaS licence revenue for private companies are generally 80% to 85% when hosting and support are counted in cost of revenue. Bessemer's portfolio data put the median at 65% to 72% across ARR stages, with top performers at 75% to 85% or more.

$
$
$
Support headcount, onboarding, hosting ops.
Gross profit
$3,950,000
Revenue − COGS
Gross margin
79.0%
The valuation-driving number
Total COGS
$1,050,000
Infra + support
COGS as % of revenue
21.0%
Lower is better

79% is acceptable but below best-in-class SaaS (80%+). Infra efficiency and reducing high-touch support are the usual levers to close the gap.

Gross margin caps your valuation multiple: a services-heavy 60% SaaS trades far below an 85% one at identical growth. Watch infra and support as you scale.

About this calculator

Gross margin is the number that quietly sets the ceiling on your valuation multiple, two companies with identical ARR and growth can trade at wildly different multiples if one runs an 85% margin and the other a 60% one. This calculator strips cloud infrastructure and support cost out of your recurring revenue to show true gross profit and margin, plus how much of every revenue dollar your cost-to-serve is eating.

How to use it

  1. Enter your annual recurring revenue.
  2. Enter your cloud and infrastructure cost, hosting, compute, third-party data costs directly tied to serving the product.
  3. Enter support and delivery cost, support headcount, onboarding, and hosting operations.
  4. Read gross profit, gross margin percentage, total COGS, and COGS as a share of revenue.

Methodology

Total COGS is infrastructure cost plus support cost. Gross profit is revenue minus that COGS figure, and gross margin is gross profit divided by revenue, expressed as a percentage, the standard SaaS gross margin formula.

The tool grades margin into three bands: 80% or above is treated as healthy SaaS territory, 70-79% as acceptable but below best-in-class, and below 70% as a drag on valuation. These bands are planning thresholds set for this tool; the sourced benchmarks further down this page show how margins vary by company size.

This calculator only includes cloud infrastructure and support/delivery cost as COGS, it doesn't ask about professional services, payment processing fees, or third-party licensing costs baked into delivery. If those apply to your business, add them into the infrastructure or support figures manually so the margin reflects your true cost-to-serve.

Because margin caps valuation multiples, the same ARR and growth rate command a materially higher multiple at 85% margin than at 60%, this tool pairs with the valuation step in the ARR multiple calculator, which takes gross margin as one of its direct inputs.

SaaS gross margin formulas this calculator uses

COGS = Cloud / infrastructure cost + Support & delivery cost
Gross profit = Annual recurring revenue − COGS
Gross margin % = Gross profit ÷ Annual recurring revenue × 100
COGS as % of revenue = COGS ÷ Annual recurring revenue × 100 = 100 − Gross margin %
Annual recurring revenue
Recurring subscription revenue for the year, net of discounts and excluding GST or sales tax.
Cloud / infrastructure cost
Hosting, compute, storage, and third-party software or data that is part of the delivered product.
Support & delivery cost
Pay and direct costs of the support, success and production-operations staff who keep the service running for existing customers.
COGS
Cost of goods sold (cost of revenue): the cost of delivering the service, before sales, marketing, R&D and admin.

The tool uses only two cost lines, so anything else that belongs in cost of revenue has to be added to one of them by hand. SaaS Capital recommends including hosting, customer support and success staff focused on retention, third-party software or data in the delivered product, and production-environment staff, and excluding sales commissions, upsell-focused customer success, amortised development costs, product management and general overhead. If you sell meaningful implementation or professional services, work out a separate margin for them rather than blending them into subscription margin. Payment gateway fees are a judgement call; many finance teams include them, and they matter when most revenue is collected by card or UPI.

Worked example: an Indian B2B SaaS company at ₹12 crore ARR

A Pune-based SaaS company has ₹12 crore of annual recurring revenue. Cloud and third-party data costs are ₹1.5 crore a year. Support, onboarding and production-operations staff cost ₹1.2 crore. Half its revenue (₹6 crore) is collected through a payment gateway; the rest is paid by bank transfer.

  1. COGS = ₹1.5 crore + ₹1.2 crore = ₹2.7 crore
  2. Gross profit = ₹12 crore − ₹2.7 crore = ₹9.3 crore
  3. Gross margin = ₹9.3 crore ÷ ₹12 crore = 77.5%
  4. COGS as % of revenue = ₹2.7 crore ÷ ₹12 crore = 22.5%
  5. Gateway fees, added by hand to infrastructure cost: ₹6 crore × 2% platform fee = ₹12 lakh (Razorpay's listed domestic rate; GST at 18% applies on the fee itself)
  6. Revised COGS = ₹2.82 crore, gross profit = ₹9.18 crore, gross margin = 76.5%

At 77.5% the tool grades this as acceptable but below the 80% line, and including gateway fees takes it to 76.5%. That is above Bessemer's $1M to $10M ARR median of 72% but short of SaaS Capital's 80% to 85% range for licence revenue. The gap is roughly ₹42 lakh of annual cost at this revenue (the cost that would lift margin from 76.5% to 80%). The usual places to look are cloud spend per customer and support hours per account, not headcount cuts. The margin then feeds straight into the ARR multiple calculator, which uses gross margin as one of its inputs.

Gross margin by ARR stage, cloud companies (Bessemer portfolio, 2010 to 1H21)

ARR bandMedian gross marginTop-performer gross margin
$1M–$10M72%85%+
$10M–$25M70%80%
$25M–$50M65%75%+
$50M–$100M70%80%+
$100M+70%80%+
Bessemer Venture Partners, Scaling to $100 Million (September 2021). Based on Bessemer's own cloud portfolio, which it notes is not a random sample of the private market. Bessemer counts hosting, implementation and services including customer success in COGS, so its margins run lower than licence-only figures. Source: Bessemer Venture Partners [1]

Median cost-of-revenue lines as a share of ARR (private B2B SaaS, 2026)

Cost lineMedian % of ARR
Hosting5%
DevOps4%
Customer support and success9%
Professional services COGS5%
Other COGS3%
SaaS Capital 2026 Spending Benchmarks for Private B2B SaaS Companies (15th annual survey, more than 1,000 respondents, completed March 2026). Each figure is a separate median, so they cannot be added together to give a median gross margin. Source: SaaS Capital [3]

What gross margin should you aim for?

It depends on what you count in cost of revenue and how much of your revenue is services:

  • Licence-only SaaS margin: SaaS Capital puts it at generally 80% to 85% for private companies when hosting and support are included. This is the right comparison for this calculator's two cost lines.
  • Blended margin including services: Bessemer reports an average of 65% to 70% for cloud businesses regardless of maturity, with the middle 50% between roughly 60% and 80%.
  • Usage-heavy or AI products: model or telecom costs that scale with usage sit in COGS, so margins can be structurally lower; Bessemer cites a portfolio company at about 50% for this reason.

A decision rule: if subscription margin is below 75%, find the cost line that grew faster than revenue over the last four quarters before raising prices or cutting support. If margin is healthy but profit is not, the problem is below the gross line; check spend with the burn rate optimisation forecaster and the Rule of 40 sandbox. The SaaS valuation guide explains why buyers weigh margin alongside growth.

Gross margin in India vs the US

India

Exclude GST from revenue before calculating margin; GST collected is owed to the government and is not part of ARR. Payment costs are often material for rupee subscriptions: Razorpay lists a 2% platform fee per successful domestic transaction (cards, UPI and netbanking) and up to 3% on international cards, with 18% GST on the fee. Indian SaaS companies selling to US customers from India often have lower support salaries than US peers, which flatters margin compared with a US company at the same price; that advantage narrows if you hire customer-facing staff in the US. Cloud bills are usually in dollars, so a weaker rupee raises COGS for rupee-priced plans.

United States

US SaaS companies are more likely to be benchmarked against investor data such as Bessemer's and SaaS Capital's, so define COGS the way those sources do before quoting a number to a board or investor. Support and success salaries are a larger share of COGS in the US, which is why moving routine support to self-serve or offshore teams is a common margin lever. Sales tax, like GST, stays out of revenue. Companies selling services alongside software should present services margin separately, as SaaS Capital advises, so the subscription margin stays comparable. Fractional CMO support for B2B SaaS often starts with this kind of unit-economics check.

Common gross margin mistakes

  • Counting sales commissions or upsell-focused account managers in COGS, which understates margin and mixes acquisition cost with delivery cost.
  • Leaving support, onboarding or production-operations salaries out of COGS so that margin looks like pure hosting margin.
  • Blending low-margin implementation services into subscription revenue, which hides whether the software itself is profitable to deliver.
  • Including GST or sales tax in revenue, which inflates both revenue and margin.
  • Ignoring payment gateway fees and third-party API or data costs that scale with every customer.
  • Comparing your margin with a benchmark that uses a different COGS definition, such as a licence-only figure against a blended one.

Sources

  1. Scaling to $100 Million, Bessemer Venture Partners. Accessed 2026-10-18.
  2. What Should be Included in COGS for My SaaS Business?, SaaS Capital. Accessed 2026-10-18.
  3. 2026 Spending Benchmarks for Private B2B SaaS Companies, SaaS Capital. Accessed 2026-10-18.
  4. Razorpay Pricing, Razorpay. Accessed 2026-10-18.

FAQ

What gross margin is considered "good" for a SaaS company?

This calculator treats 80%+ as healthy, a planning threshold rather than a measured benchmark; see the sourced margin benchmarks on this page for how margins vary by stage. Margins in the 60-70% range are more typical of services-heavy or infrastructure-intensive products, and usually warrant investigating cost drivers.

Why does gross margin affect my valuation multiple, not just profitability?

Investors underwrite a multiple partly on how much of each incremental ARR dollar converts to profit at scale. A lower-margin business needs proportionally more revenue growth to generate the same free cash flow, so buyers and investors discount the multiple to compensate for that structurally weaker economics.

What should I include in "infrastructure" versus "support" cost?

Infrastructure covers hosting, compute, storage, and any per-usage cloud costs tied directly to running the product. Support and delivery covers the human cost of serving customers, support staff, onboarding teams, and the operational overhead of keeping hosting running day to day.

Does this include sales and marketing or R&D costs?

No, gross margin sits above the line, it only nets COGS (infrastructure and support) against revenue. Sales, marketing, and R&D are operating expenses that come after gross profit and feed into net margin or EBITDA, which is a separate calculation from what this tool computes.

Should payment processing fees be included in SaaS COGS?

Many finance teams include them because they are a direct cost of collecting every subscription payment, and SaaS Capital's COGS guidance does not address them either way. Whichever you choose, apply it consistently and say so when you compare with benchmarks. In this calculator, add them to the infrastructure line.

What is the difference between gross margin and contribution margin?

Gross margin deducts only the cost of delivering the service. Contribution margin also deducts other variable costs, often including sales commissions and variable marketing, to show what each customer contributes to fixed costs. Gross margin is the figure investors compare across SaaS companies.

Why is my gross margin lower than benchmark reports?

Usually because of definitions or mix. If you include services, customer success and payment fees in COGS, compare with Bessemer's blended figures rather than licence-only figures. If the definition matches and margin is still low, look at cloud cost per customer and support load per account, which SaaS Capital's 2026 survey shows as the largest cost lines.

How do AI features affect SaaS gross margin?

Model inference costs scale with usage and sit in cost of revenue, so AI-heavy products can have lower margins than traditional SaaS. Bessemer's 2021 data already showed some strong companies with margins near 50% because of usage-based third-party costs. Price AI features so that heavy usage is paid for, and track margin per plan.

Is gross margin calculated on ARR or recognised revenue?

In financial statements it is calculated on recognised revenue for the period. This calculator uses annual recurring revenue as a planning proxy, which works when the cost figures cover the same twelve months. For a fast-growing company, ARR at year end will be higher than revenue recognised during the year, so match the periods.

Numbers looking off?

If the model says one thing and the pipeline says another, that gap is usually where the revenue is. A 30-minute call finds it.

It starts with a 30-minute call. Pick a time below.

Prefer email?