SaaS gross margin: what counts as COGS and what good looks like
A term sheet asks for gross margin by cohort, and most finance teams can't say whether their number is actually low or just miscategorized.
A founder raising a Series A gets a term sheet with a line asking for gross margin by cohort. The finance lead pulls the number from the accounting system and it comes back at 58%. The investor's benchmark deck says SaaS companies should be north of 75%. Nobody on the team is sure whether the number is actually low, or whether hosting, support, and payment processing fees are being allocated into the wrong bucket entirely.
That confusion is common, and it is expensive, because gross margin is one of the few numbers that directly shapes valuation multiples, runway math, and whether a pricing model can scale.
Quick answer
SaaS gross margin is revenue minus the cost of goods sold (COGS), expressed as a percentage of revenue. For a subscription business, COGS typically includes hosting and cloud infrastructure, customer support and success staff directly tied to serving existing accounts, payment processing fees, and implementation or onboarding costs. Median total gross margin for private SaaS companies sits around 77%, with subscription-only revenue closer to 81%, though healthy ranges shift by company stage and by how much professional services revenue is mixed in.[1]
What SaaS gross margin is and why it matters
Gross margin answers a specific question: after it costs money to deliver the product to a customer who already signed up, how much of each revenue dollar is left over to cover sales, marketing, R&D, and eventually profit. It is distinct from net margin, which nets out every operating expense, and from contribution margin, which is sometimes calculated per customer or per deal rather than across the whole business.
For a subscription SaaS company, gross margin is also a proxy for how much of the business is actually software versus services wearing software pricing. A company with a lot of professional services revenue mixed into its subscription line will show a lower blended gross margin, not because the core product is unprofitable, but because services work carries thinner margins by nature. Median professional services gross margin runs around 30%, compared to roughly 81% for pure subscription revenue, and once services exceed 15 to 20% of total revenue, blended gross margin tends to fall below the overall median.[1]
Investors read gross margin as a signal of two things: how efficiently the product scales, and how much of the business model actually resembles software. A revenue dashboard that reports top-line ARR without a clean gross margin view is hiding exactly the number a term sheet will ask for.
What counts as COGS for a subscription business
The honest answer is that COGS definitions vary more than most finance teams expect, but a reasonably standard list includes:
- Hosting and cloud infrastructure. Server costs, CDN, storage, and third-party infrastructure directly tied to running the product for paying customers.
- Customer support and success. Headcount cost for support and customer success teams, to the extent their work is serving existing accounts rather than selling new ones. Teams that blend support and sales functions often misallocate this line.
- Payment processing fees. Card network and processor fees taken on every transaction. These scale directly with revenue and are easy to overlook if billing runs through a separate system finance doesn't fully reconcile.
- Implementation and onboarding. Costs of getting a new customer live, including onboarding specialists and any white-glove setup work, when that cost is tied to a specific contract rather than general sales activity.
- Third-party licensing and data costs. Any software or data the product itself depends on to function for customers, as opposed to tools used internally by the team.
What should generally sit below the gross margin line, in operating expenses instead, is sales commissions, marketing spend, general company R&D not tied to serving existing customers, and G&A. Where this gets genuinely contested is support staff who do a mix of renewal upsell and technical troubleshooting, and that ambiguity is exactly why two companies with similar businesses can report gross margins ten points apart.
Healthy gross margin benchmarks by stage
Gross margin expectations shift meaningfully as a company scales, mostly because early-stage companies haven't yet built the automation and infrastructure efficiency that comes with volume.
- Pre-$5M ARR: Margins in the 50 to 65% range are common and not automatically a red flag, since the priority at this stage is usually proving the product works, not optimizing unit costs.
- $5M to $50M ARR: Gross margin typically climbs into the 65 to 78% range as infrastructure costs stabilize relative to revenue and COGS gets actively managed for the first time.
- $50M+ ARR: Investors and acquirers expect 75 to 85% or higher at this stage, and margin becomes a much more closely scrutinized diligence item.
Segment also matters independent of ARR size. Benchmarkit's 2025 survey of private SaaS companies found SMB self-serve businesses running a median gross margin around 78%, mid-market around 75%, and enterprise around 72%, a reminder that higher-touch, higher-ACV segments often carry structurally thinner margins even when they generate more revenue per account.[1]
Why gross margin is compressing industry-wide
It is worth naming a trend rather than assuming margins only move in one direction. Benchmarkit's 2025 report found the median software gross margin dropped roughly four percentage points year over year, which the report attributes largely to rising compute and AI-related infrastructure costs.[1] A company whose gross margin softened recently is not necessarily mismanaging COGS, it may simply be absorbing the same industry-wide cost pressure showing up across the comparison set.
Why gross margin matters for valuation and runway
Gross margin feeds directly into two decisions a founder makes constantly, whether or not they're framing it that way.
Valuation. Public and private SaaS multiples are built on the assumption that revenue converts to cash efficiently once scale arrives. A company growing fast on a 55% gross margin looks structurally different to an acquirer than one growing at the same rate on 80%, because the first one needs a much larger revenue base before the economics work at all. ARR growth rate and retention get most of the attention in board decks, but gross margin is the number that determines how much of that growth actually turns into free cash flow.
Runway planning. Every dollar lost to COGS instead of gross profit is a dollar that has to come from somewhere else, whether that's the balance sheet or the next raise. A 10-point gross margin gap compounds across a full fiscal year into a materially different burn rate, even holding revenue and headcount spend constant.
A short checklist for sanity-checking your own gross margin
- Are hosting, support, payment processing, and implementation costs consistently classified as COGS, rather than split across departments inconsistently month to month?
- Is professional services revenue reported separately from subscription revenue, so a blended number isn't hiding a strong core product?
- Is gross margin segmented by customer tier (SMB, mid-market, enterprise), since a single company-wide number can mask a weak segment?
- Has gross margin been compared against the current stage's typical range, rather than against a generic "75% is good" rule of thumb that doesn't account for company size?
- Is the trend over the past four quarters moving in a direction that's explainable (automation improvements, pricing changes, rising infrastructure costs), rather than an unexplained swing?
The bigger picture: margin as a revenue operations problem, not just an accounting one
Gross margin often gets treated as a finance-only exercise, calculated once a quarter and reported without much scrutiny of what's actually inside the COGS bucket. In practice, it's a revenue operations problem as much as an accounting one: pricing decisions, usage-based billing design, and how overage or add-on revenue is billed all directly change what COGS looks like per account. A company that lets usage costs scale faster than usage revenue will watch gross margin erode even while top-line growth looks healthy, which is exactly the kind of pattern a segment-level revenue view catches before it shows up in a board deck.
Frequently asked questions
What is a good gross margin for a SaaS company? Most mature, subscription-only SaaS companies target 75% or higher, with top-quartile companies clearing 80 to 86%. Earlier-stage companies, particularly those under $5M ARR, commonly run in the 50 to 65% range while they're still building infrastructure efficiency.
What counts as COGS in a SaaS business? COGS typically includes hosting and cloud infrastructure, customer support and success costs tied to existing accounts, payment processing fees, implementation and onboarding costs, and any third-party licensing or data costs required to run the product. Sales, marketing, and general R&D sit outside COGS, in operating expenses.
Why does professional services revenue lower gross margin? Professional services carries thinner margins by nature, often around 30% compared to roughly 81% for pure subscription revenue. When services revenue makes up more than 15 to 20% of total revenue, it pulls the blended gross margin down even if the core subscription product is healthy.
Does gross margin vary by customer segment? Yes. Benchmark data shows SMB self-serve segments running higher gross margins (around 78%) than mid-market (around 75%) or enterprise (around 72%), largely because higher-touch segments require more support and services investment per account.
Why is SaaS gross margin declining industry-wide? Recent benchmark data points to rising compute and AI-related infrastructure costs as a primary driver, with median software gross margin dropping several percentage points year over year in the most recent survey period.
How does gross margin affect valuation? Gross margin determines how efficiently revenue growth converts into free cash flow. Investors use it alongside growth rate and retention to assess whether a company's model scales profitably, and a lower margin generally compresses the multiple a company can command at a given growth rate.
Is gross margin the same as net margin? No. Gross margin only subtracts the direct cost of serving existing customers (COGS) from revenue. Net margin subtracts every operating expense, including sales, marketing, R&D, and G&A, giving a full picture of company-wide profitability.
Sources
- Pavilion and Benchmarkit, "2025 B2B SaaS Performance Metrics Benchmarks." https://www.benchmarkit.ai/2025benchmarks
Frequently asked questions
What is a good gross margin for a SaaS company?
Most mature, subscription-only SaaS companies target 75% or higher, with top-quartile companies clearing 80 to 86%. Earlier-stage companies, particularly those under $5M ARR, commonly run in the 50 to 65% range while they're still building infrastructure efficiency.
What counts as COGS in a SaaS business?
COGS typically includes hosting and cloud infrastructure, customer support and success costs tied to existing accounts, payment processing fees, implementation and onboarding costs, and any third-party licensing or data costs required to run the product. Sales, marketing, and general R&D sit outside COGS, in operating expenses.
Why does professional services revenue lower gross margin?
Professional services carries thinner margins by nature, often around 30% compared to roughly 81% for pure subscription revenue. When services revenue makes up more than 15 to 20% of total revenue, it pulls the blended gross margin down even if the core subscription product is healthy.
Does gross margin vary by customer segment?
Yes. Benchmark data shows SMB self-serve segments running higher gross margins (around 78%) than mid-market (around 75%) or enterprise (around 72%), largely because higher-touch segments require more support and services investment per account.
Why is SaaS gross margin declining industry-wide?
Recent benchmark data points to rising compute and AI-related infrastructure costs as a primary driver, with median software gross margin dropping several percentage points year over year in the most recent survey period.
How does gross margin affect valuation?
Gross margin determines how efficiently revenue growth converts into free cash flow. Investors use it alongside growth rate and retention to assess whether a company's model scales profitably, and a lower margin generally compresses the multiple a company can command at a given growth rate.
Is gross margin the same as net margin?
No. Gross margin only subtracts the direct cost of serving existing customers (COGS) from revenue. Net margin subtracts every operating expense, including sales, marketing, R&D, and G&A, giving a full picture of company-wide profitability.
Samuel builds the systems that turn billing events into trustworthy revenue numbers. He writes about retention, pricing, and the operational details that decide whether the metrics hold up.