Finance

How to Calculate Gross Margin for a SaaS Business

Read the complete guide below.

Launch Calculator

The Short Answer

SaaS gross margin is calculated as: Gross Margin % = (Revenue - COGS) / Revenue × 100. The critical challenge is defining COGS correctly. For SaaS, COGS includes hosting and infrastructure costs, third-party software licenses embedded in the product, customer support costs, and implementation/onboarding costs — but not sales, marketing, R&D, or G&A. The 2026 benchmark for subscription gross margin is 75–80% for healthy private SaaS companies, with best-in-class PLG-focused businesses exceeding 85%. Companies below 70% are considered to have a structurally challenged cost model by most investors and acquirers.

Understanding the Core Concept

The most common error in SaaS gross margin calculation is misclassifying operating expenses as below-the-line costs when they should be in COGS. This inflates reported gross margin, misleads investors, and obscures the true unit economics of the business.

Launch Calculator
Privacy First • Data stored locally

2026 Gross Margin Benchmarks by SaaS Model

Gross margin benchmarks vary significantly based on go-to-market model, customer segment, and product architecture. Using the wrong benchmark to evaluate your business leads to either false confidence or unnecessary cost-cutting.

Real World Scenario

SaaS gross margin is not just a cost efficiency metric — it is the single most powerful determinant of business valuation at every stage from Series A through acquisition. Investors and acquirers use gross margin as the primary lens through which to evaluate whether an ARR multiple is justified, because gross margin determines how much of each revenue dollar flows through to fund growth, R&D, and eventual profitability.

Strategic Implications

Understanding these implications allows you to proactively manage your operational efficiency. Utilizing our specific tools provides the exact data points required to prevent margin erosion and optimize your strategic approach.

Actionable Steps

First, audit your current numbers using the calculator above. Second, identify the largest gaps between your actuals and the standard benchmarks. Third, implement a tracking system to monitor these metrics weekly. Finally, review your process every quarter to ensure you are continually optimizing.

Expert Insight

The biggest mistake companies make is relying on generalized industry data instead of their own precise calculations. When you map your exact costs and parameters into a standardized tool, you unlock compounding efficiencies that your competitors often miss.

Future Trends

Looking ahead, we expect margins to tighten as market pressures increase. The companies that build automated, real-time calculation workflows into their daily operations will be the ones that capture the most market share in the coming years.

Stop Guessing. Start Calculating.

Run the numbers instantly with our free tools.

Launch Calculator

Historical Context & Evolution

Historically, these calculations were done using rudimentary spreadsheets or expensive proprietary software, making it difficult for smaller operators to accurately predict costs. Modern, web-based tools have democratized this process, allowing immediate, precise calculations on demand.

Deep Dive Analysis

A rigorous analysis of this topic reveals that small percentage changes in these core metrics produce exponential changes in overall profitability. By standardizing your approach and continuously verifying against your specific constraints, you build a resilient operational model that can withstand market fluctuations.

3 Rules for Protecting SaaS Gross Margin

1

Move Every Direct Delivery Cost Above the Line — Honestly

The discipline of accurate COGS classification is more valuable than the optics of a high gross margin number. If your customer success team spends 70% of their time on reactive support and onboarding (COGS) and 30% on expansion selling (S&M), allocate accordingly. Investors doing due diligence will find these misclassifications and adjust the margin themselves — and they will trust you less for having misrepresented the number. Build the model correctly from day one using the MetricRig Unit Economics Calculator at /finance/unit-economics.

2

Track Infrastructure Cost as a Percentage of ARR Monthly

Hosting costs should decrease as a percentage of ARR as you scale, due to committed use discounts, architectural efficiency, and the fixed nature of some infrastructure overhead. If hosting cost as a percentage of ARR is flat or rising as you grow, it signals inefficient architecture or unprofitable product usage patterns. A healthy infrastructure-to-ARR ratio for a well-optimized SaaS product is 4–8%. Anything above 12% warrants an immediate engineering and DevOps review.

3

Model the Gross Margin Impact Before Signing Enterprise Services Contracts

Every enterprise deal that includes significant implementation, customization, or managed services components will dilute your blended gross margin — sometimes dramatically. Before signing a $400,000 ARR enterprise contract that requires $180,000 in services delivery, model the blended gross margin for that customer. A customer who represents 8% of your ARR but generates only 40% gross margin on their contract will pull your company's overall gross margin below targets and weaken your fundraising story. Price services to margin targets, or build a tiered services model that separates low-margin delivery from high-margin subscription.

4

Automate Tracking Integrate your calculation process into your weekly operational review to spot trends early.

5

Validate Assumptions Check your base numbers against actual invoices and costs quarterly to ensure accuracy.

Glossary of Terms

Metric

A standard of measurement.

Benchmark

A standard or point of reference.

Optimization

The action of making the best use of a resource.

Efficiency

Achieving maximum productivity with minimum wasted effort.

Frequently Asked Questions

For pre-revenue to $1M ARR stage, gross margins below 70% are acceptable if there is a clear explanation — typically high support costs driven by immature product, elevated per-customer infrastructure spend from non-optimized architecture, or heavy onboarding requirements for the first cohort of enterprise customers. Investors understand that very early stage unit economics are not representative of scale. However, by $3M–$5M ARR, gross margin should be on a visible upward trajectory toward 75%+, with documented initiatives driving the improvement. A startup at $4M ARR with 60% gross margin and no margin expansion story is a harder raise than one at 68% with a credible path to 78% in 18 months.
This is the most debated COGS classification question in SaaS finance. The practical answer depends on what the CSM team actually does. If CSMs primarily handle onboarding, training, issue escalation, and renewal risk management — activities that are necessary to deliver contracted value — they belong in COGS. If CSMs primarily drive expansion through upsell, cross-sell, and QBR-led growth conversations, they belong in S&M. Many SaaS CFOs split the CSM team's cost proportionally — 60% COGS, 40% S&M — based on time allocation data. Whatever methodology you use, document and disclose it consistently, as investors will probe this during diligence.
Payment processing fees (Stripe, Braintree, Adyen) are legitimately part of COGS when the product is software-as-a-service billed monthly or annually. Stripe's standard rate of 2.9% + $0.30 per transaction adds approximately 2.5–3.5 percentage points of COGS burden on subscription revenue billed monthly in small amounts. For annual contracts billed as single large invoices, the per-transaction impact is lower. At $5M ARR billed entirely through Stripe at standard rates, processing fees alone represent approximately $145,000 per year — enough to move gross margin by 2–3 points. Negotiating with payment processors at $2M+ in annual processing volume can reduce rates to 2.2–2.5%, saving $35,000–$70,000 annually.
By optimizing this metric, you directly improve your operational efficiency and bottom line margins.
Yes, these represent standard best practices, though exact figures will vary by your specific market conditions.

Disclaimer: This content is for educational purposes only.

Related Topics & Tools

Unit Economics for Marketplace Businesses 2026

Marketplace unit economics are driven by take rate, acquisition cost, contribution margin, and repeat transaction frequency, not just gross merchandise volume. A healthy marketplace in 2026 usually needs contribution margin on each transaction to exceed CAC recovery within 12–24 months, with take rates often ranging from 8% to 25% depending on category and service intensity. If your marketplace takes 15% on a $100 order, collects $15 in revenue, and spends $30 to acquire the buyer, your model only works if that buyer transacts many times over their lifetime. Use the free Unit Economics Calculator at metricrig.com/finance/unit-economics to test your take rate, CAC, and LTV assumptions before scaling spend.

Read More

Reddit Ads for B2B?

Underrated. Target specific Subreddits (e.g. r/SaaS). Users are hostile to obvious ads. 'Megaphone' style (AMA or value post) works best.

Read More

LinkedIn Ads CPM Benchmarks for B2B in 2026

LinkedIn CPMs in 2026 average $60–$120 for Sponsored Content and $80–$200+ for Message Ads (InMail) targeting senior decision-makers in competitive B2B categories. LinkedIn is the most expensive major digital advertising platform on a CPM basis, but it offers unmatched B2B audience precision by job title, seniority, company size, and industry. For high-ACV B2B products, the premium is justified. For SMB-targeted or low-ACV products, LinkedIn's CPM rarely generates positive unit economics. Model your campaign efficiency at /marketing/adscale.

Read More

Google Ads CTR Benchmarks by Industry in 2026

The cross-industry average Google Ads Search CTR is 3.41% in 2026, down slightly from 3.45% in 2025 as AI Overviews and other SERP features continue to absorb high-intent clicks before they reach paid results. Dating and personals leads all industries at 6.05% CTR, while Technology posts the lowest at 2.09%. For Display campaigns, the cross-industry average is 0.46%. A Search CTR below 2% signals poor ad relevance and triggers Quality Score penalties that increase your cost-per-click — making CTR improvement a direct cost-reduction lever, not just a vanity metric.

Read More

Landing Page Conversion Rates by Industry 2026

The average landing page conversion rate across all industries in 2026 is approximately 10.76% when micro-conversions are included, but drops to 1.0–3.4% when measured on meaningful lead actions such as demo requests, form fills, and appointment bookings. For B2B industries, the benchmark range is 1.1–2.8% for high-quality MQL conversion events. For high-intent local services like HVAC and legal, rates of 3.1–3.4% are achievable. The spread between median and top-performer rates within any industry is enormous — top-quartile landing pages regularly hit 2–3x the median — meaning that A/B testing and systematic optimization are more impactful than channel spend increases for most advertisers.

Read More

Email Click-Through Rate Benchmarks by Industry 2026

Average email click-through rates (CTR) in 2026 range from 1.5% for e-commerce broadcast campaigns to 7.7% for blogger and consulting automation sequences, with an overall average of 6.21% across ActiveCampaign's platform and 1.69% for Klaviyo broadcast campaigns (rising to 5.58% for automated flows). The wide spread reflects platform mix, campaign type, and list health more than industry characteristics. CTR is the most reliable email performance metric in the post-Apple MPP era because it requires a deliberate human action — a click — that cannot be replicated by Apple's privacy proxy server.

Read More