Learn how to calculate SaaS gross margin the right way. CFO-level formula, COGS breakdown, 75% benchmark and the mistakes killing your margin.

If you're a SaaS founder pitching investors in 2026, your gross margin will be inspected before your growth rate. Why? Because high revenue with weak gross margin tells one clear story: this business doesn't scale. Yet most early-stage SaaS companies miscalculate gross margin — some by 10–15 percentage points — by lumping the wrong costs into COGS or, worse, ignoring hosting, customer success, and third-party API fees entirely. The result is a margin number that looks healthy on a deck but collapses under due diligence.
This guide is the CFO-level walkthrough we wish every founder had on day one. You'll get the exact formula, what belongs in SaaS COGS (and what doesn't), benchmarks by ARR stage, the five mistakes that quietly destroy margin, and a step-by-step process you can run this quarter. By the end, your gross margin will hold up in any boardroom.
SaaS gross margin is the percentage of subscription revenue left after subtracting the direct costs of delivering the software — hosting, third-party APIs, customer support, customer success, and payment processing. The formula is:
SaaS Gross Margin (%) = (Revenue − Cost of Revenue) ÷ Revenue × 100
A healthy SaaS gross margin sits between 70% and 85%. Anything below 60% signals either a service-heavy product, mispriced infrastructure, or COGS misclassification.
Unlike traditional manufacturing, SaaS has no raw materials. Your "cost of goods sold" is the cost of keeping the software live and the customer happy — and that's where most founders get it wrong.
The era of "growth at all costs" is over. With higher capital costs, longer fundraising cycles, and AI-driven infrastructure costs creeping into every SaaS P&L, investors are anchoring valuations on Rule of 40, Net Revenue Retention, and Gross Margin — in that order.
Three things changed in 2026:
If you're a founder, gross margin is no longer a finance metric. It's a fundraising metric.
Let's run a clean example. Imagine a B2B SaaS company called LedgerCloud:
71.5% is healthy but not best-in-class. The CFO question is: which line item is dragging us below 75%? In LedgerCloud's case, AI inference costs and an over-resourced customer success team are the levers.
Many founders quote a "GAAP gross margin" that excludes customer success or hosting overhead. Investors don't care about your accounting policy — they care about the economic margin the business actually produces. Always report true SaaS gross margin in fundraising materials, then reconcile it to GAAP if needed.
This is where 90% of mistakes happen. Use this as your checklist.
A simple test: if we stopped acquiring new customers tomorrow, would this cost still exist to keep current customers running? If yes, it's COGS. If no, it isn't.
AI-native SaaS is currently running 5–15 points lower because of inference costs. That's acceptable to investors if you can show a path to margin expansion as model costs fall or as you fine-tune smaller models in-house.
For a deeper view on which numbers boards actually scrutinize, see Financial KPIs Every CFO Should Monitor (and Why Founders Should Care).
If you're building this from scratch, our Startup Financial Planning: CFO-Level Strategy on a Budget guide walks through the exact financial model structure to plug this into.
Is your SaaS gross margin investor-ready? Jordensky's outsourced CFO team has built SaaS finance functions for 100+ Indian and global startups — from seed to Series C. We'll re-classify your COGS, benchmark your margin, and build the gross margin dashboard your board actually wants to see.
Book a Free CFO Consultation → 30-minute call. No commitment. CFO-level insights, not a sales pitch.
1. What is a good gross margin for a SaaS company?
A healthy SaaS gross margin is between 70% and 85%. Best-in-class public SaaS companies operate at 80%+. AI-native SaaS currently runs 60–75% due to inference costs.
2. Is customer success part of COGS in SaaS?
Yes. If customer success is required to retain customers (not to acquire new ones), it belongs in COGS. Excluding it inflates gross margin by 5–10 percentage points and will be re-classified during due diligence.
3. How do you calculate gross margin for SaaS?
Gross margin = (Revenue − Cost of Revenue) ÷ Revenue × 100. For SaaS, Cost of Revenue includes hosting, third-party APIs, customer support, customer success, payment processing, and AI inference.
4. Should AI inference cost be included in SaaS COGS?
Yes. In 2026, AI inference is treated as a direct unit cost of delivery. Investors and acquirers will reclassify it into COGS during diligence if you don't.
5. What's the difference between gross margin and contribution margin in SaaS?
Gross margin captures fixed and variable cost of delivery. Contribution margin goes further and includes variable sales/marketing costs to acquire that revenue. Both matter; gross margin matters first.
6. How often should I review SaaS gross margin?
Monthly. Cloud bills, AI inference, and support costs move materially month-to-month. Quarterly review is too slow to catch architectural issues.
7. Why is my SaaS gross margin lower than benchmarks?
The four most common causes are: AI inference costs, over-resourced customer success, single-tenant deployments, and unallocated free-tier infrastructure.
In 2026, SaaS gross margin is no longer a finance number. It's the cleanest signal a founder can send to investors, acquirers, and the board that the business actually scales. Calculate it correctly, benchmark it honestly, and improve it deliberately — and every other metric in your stack gets easier to defend.
If your gross margin is below 70%, the issue is rarely revenue. It's almost always classification, architecture, or pricing — and all three are fixable in a single quarter with the right CFO partner.