JordenSky Logo

Liked our Blogs?

Please share your details to Subscribe to our Newsletter

SaaS Gross Margin: How to Calculate It (CFO Guide)

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

SaaS Gross Margin: How to Calculate It (CFO Guide)
Table of Contents
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

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.

What Is SaaS Gross Margin?

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.

Why SaaS Gross Margin Matters More in 2026

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:

  • AI compute is now a line item. If your product uses LLM APIs, inference cost is part of COGS. Many SaaS companies that ignored this saw gross margins fall from 80% to 62% overnight.
  • Multiples reward margin quality. A SaaS business at 80% gross margin trades at a meaningfully higher multiple than one at 60%, even at the same ARR.
  • Due diligence has tightened. In 2026, financial due diligence routinely re-classifies COGS — and a "fixed" margin number is the fastest way to lose 10–20% of valuation. (See our Financial Due Diligence for Startups: Complete Guide.)

If you're a founder, gross margin is no longer a finance metric. It's a fundraising metric.

The SaaS Gross Margin Formula (With a Real Example)

Let's run a clean example. Imagine a B2B SaaS company called LedgerCloud:

Line Item Amount (₹)
Subscription Revenue 10,00,00,000
Hosting (AWS) 80,00,000
Third-party APIs (Stripe, Twilio, OpenAI) 60,00,000
Customer Support team 70,00,000
Customer Success (post-sale) 50,00,000
Payment Processing 25,00,000
Total Cost of Revenue (COGS) 2,85,00,000
Gross Profit 7,15,00,000
Gross Margin % 71.5%

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.

GAAP Gross Margin vs. "True" SaaS Gross Margin

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.

What Belongs in SaaS COGS — and What Doesn't

This is where 90% of mistakes happen. Use this as your checklist.

Costs You Must Include in SaaS COGS

  • Cloud hosting and infrastructure (AWS, Azure, GCP)
  • AI/LLM inference and embedding costs
  • Third-party APIs directly tied to product delivery
  • Customer support salaries (Tier 1 and Tier 2)
  • Customer success salaries (post-sale, retention-focused)
  • Payment processing fees (Stripe, Razorpay)
  • Software licenses embedded in the product
  • DevOps / SRE salaries (the team keeping uptime)
  • Data storage, CDN, monitoring tools
  • Implementation and onboarding costs (if not separately billed)

Costs Founders Wrongly Exclude (and Should Include)

  • AI inference — yes, this is COGS in 2026
  • Customer success — if it's required for retention, it's COGS
  • Free-tier infrastructure — if it touches paying users, it's COGS

Costs That Should Stay Out of SaaS COGS

  • Sales salaries and commissions (these are S&M)
  • Marketing spend (S&M)
  • General R&D and engineering (these are OpEx, not COGS)
  • CEO, CFO, HR, and G&A salaries
  • Office rent and admin costs

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.

SaaS Gross Margin Benchmarks (By Stage and ARR)

Stage ARR Range Healthy Gross Margin World-Class
Pre-seed / Seed < $1M 60–70% 75%+
Series A $1M–$10M 70–75% 80%+
Series B $10M–$50M 75–80% 82%+
Growth / Pre-IPO $50M+ 78–82% 85%+

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).

The Benefits of Tracking SaaS Gross Margin Correctly

  • Fundraising leverage: Higher, defensible gross margin → higher revenue multiples.
  • Pricing power: Gross margin tells you exactly how much room you have to discount, bundle, or upsell.
  • Cost discipline: It surfaces hidden infrastructure bloat before it becomes a 6-figure problem.
  • Forecast accuracy: A clean COGS structure makes runway forecasting reliable, not optimistic.
  • M&A readiness: Acquirers normalize gross margin first. Get there before they do.
  • Investor trust: A founder who quotes margin correctly signals financial maturity in 60 seconds.

How to Calculate SaaS Gross Margin — Step-by-Step

  1. Define revenue cleanly. Use only recurring subscription revenue. Strip out one-time setup fees, professional services, and reimbursable expenses (or report them separately).
  2. Build a COGS map. List every cost that touches "delivering and retaining" the product. Use the inclusion checklist above.
  3. Allocate shared costs. If a DevOps engineer spends 60% on uptime and 40% on new features, allocate 60% to COGS and 40% to R&D. Document the rationale.
  4. Pull the numbers monthly, not quarterly. Monthly tracking catches infrastructure spikes (especially AI inference) before they compound.
  5. Calculate gross margin per product line and per customer cohort. Aggregate margin hides bad-margin segments.
  6. Benchmark against your stage. Compare to the table above and to your three closest public comparables.
  7. Set a target margin band. Most CFOs we work with target a 200–400 bps annual improvement.
  8. Build the dashboard. Gross margin, COGS by category, and margin per cohort should live on one page your founder reads weekly.

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.

Common Mistakes That Kill SaaS Gross Margin

  • Excluding customer success from COGS. It's the single most common error, and it inflates margin by 5–10 points.
  • Treating AI inference as R&D. Inference is a unit cost. It belongs in COGS.
  • Ignoring free-tier costs. Free users still consume infrastructure. If you don't allocate it, your paid-tier margin is a fiction.
  • Reporting blended margin only. A 75% blended margin can hide a 40% margin product line. Always cut by product and cohort.
  • Forgetting payment fees. A 2.5–3% gateway fee directly hits margin. Most SaaS P&Ls bury it in "other expenses."
  • Using annual averages. Cloud bills move monthly. Annual averaging masks the spikes that signal architectural problems.

Tips to Improve SaaS Gross Margin

  • Negotiate cloud commits annually, not at renewal. Most SaaS companies leave 15–25% on the table because they wait for the AWS rep to call.
  • Ruthlessly tier customer success. Reserve high-touch CS for accounts above a margin threshold; move smaller accounts to a digital CS motion.
  • Self-host where the math works. For high-volume AI inference, a fine-tuned smaller open-source model often cuts cost by 60–80% with comparable quality.
  • Re-architect for multi-tenancy. Single-tenant deployments are gross margin killers. Migrate the top 20% by revenue first.
  • Move support to async + AI deflection. A well-trained AI agent handles 30–50% of Tier 1 tickets. That alone can lift margin 200–300 bps.
  • Reprice every 12 months. Most SaaS companies underprice. A 7–10% list price increase typically holds with <2% churn impact.

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.

SaaS Gross Margin FAQs

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.

Final Takeaway — Margin Is the Story Investors Read First

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.

CA Akash Bagrecha, Co-founder of Jordensky

Written by

CA Akash Bagrecha

Co-founder, Jordensky · Chartered Accountant

CFO advisory for 200+ startups and MSMEs. Helped raise ₹400Cr+ across 30+ fundraises. Passionate about building scalable financial operations for India's growing businesses.

Browse all posts