SaaS Gross Margin Optimization: How to Protect and Expand Your Margins
Gross margin is the foundation that all other SaaS economics are built on. A 5-point improvement in gross margin adds 5 points directly to your FCF margin ceiling, improves your Rule of 40 score, and raises your EV/Revenue multiple. But gross margin is also one of the most commonly neglected metrics at early-stage companies, where the focus tends to be on growth rather than unit economics. This guide covers what drives gross margin compression and how to systematically improve it.
Advertisement
TL;DR
- SaaS COGS = hosting infrastructure + support headcount + professional services + third-party software
- 70%: Floor · 75%: Target · 80%+: Excellence
- Professional services and unbounded customer support are the two largest margin killers
- High NRR on low-margin customers can still be a profitability problem
- Infrastructure cost trends favor margin expansion for cloud-native SaaS companies over time
What's in SaaS COGS: Understanding Your Cost Structure
Gross margin optimization begins with a precise understanding of what's in your Cost of Goods Sold. For SaaS companies, COGS typically includes four primary categories:
Cloud hosting and infrastructure
Compute (EC2, GCP Compute, Azure VMs), storage (S3, Cloud Storage), database hosting, CDN costs, and networking egress. This is often the largest single COGS line item for pure-software SaaS companies.
Customer support headcount
The full-loaded cost of support staff who directly handle customer issues, including salary, benefits, and allocated overhead. This is frequently the most improvable COGS line — support can be scaled through self-serve documentation, AI-assisted triage, and tiered support models.
Professional services delivery
The cost of implementation, onboarding, and consulting engagements — labor-intensive services with gross margins of 20–40%, significantly lower than subscription software. Companies with heavy professional services revenue should segment and track gross margin separately for services vs. subscription.
Third-party software and licensing
Embedded software costs that are directly attributable to product delivery — third-party APIs billed on usage, licensed data sources, embedded analytics platforms, and communication APIs. These often scale with usage and can compound as the product grows.
The 70%, 75%, and 80% Benchmarks — What Each Requires Operationally
Gross margin targets are not arbitrary — each threshold represents a specific level of operational maturity:
70% — The Floor
At 70%, you have significant COGS pressure from at least one major line item. Infrastructure may be overbuilt or underoptimized, support is likely labor-heavy without self-serve scale, or professional services represents a significant portion of revenue. 70% is survivable but doesn't leave much room for the operating expense coverage needed to reach profitability.
75% — The Target
75% reflects a well-run SaaS COGS structure: infrastructure optimized on commodity cloud with negotiated rates, support scaled through documentation and community, professional services kept as a minority of total revenue, and third-party software costs managed. Most well-run SaaS companies operating at scale should achieve 75%.
80%+ — Excellence
80%+ requires infrastructure efficiency (often custom caching, CDN optimization, or proprietary data infrastructure), minimal support burden (strong self-serve, community, or AI-assisted support), essentially no professional services in the revenue mix, and strict control of third-party software costs. This level is achievable but requires consistent operational discipline.
The Most Common Gross Margin Killers
Over-reliance on professional services
Implementation and onboarding services are necessary in enterprise SaaS but must be managed carefully. When professional services revenue grows faster than subscription revenue — a common pattern in high-growth enterprise companies — the blended gross margin deteriorates. Strategies: invest in productizing onboarding (reduce services per dollar of subscription), increase services pricing, or create a partner ecosystem that absorbs implementation without hitting your COGS.
Not charging for customer support
Many SaaS companies offer unlimited support to all customers at all pricing tiers — effectively subsidizing high-support customers out of gross margin. A tiered support model (standard email support at base tiers, phone and dedicated CSM at premium tiers) aligns support cost with revenue value. Even a modest tiered support model can improve gross margin by 2–4 percentage points.
Underpriced tiers covering high-cost customers
Customer segments that require the most support (SMB with limited technical resources, international customers requiring localization, highly customized deployments) often pay the same or less than easier-to-serve customers. Analyzing support cost per customer segment reveals cross-subsidization that can be corrected through pricing or product investment (better self-serve for high-support segments).
Unoptimized infrastructure spend
Cloud cost optimization is not a one-time project — it is an ongoing discipline. Companies that don't actively manage reserved instance purchasing, right-size compute resources, implement caching layers, or optimize data transfer costs will see infrastructure COGS grow proportionally with revenue rather than sublinearly. Even modest infrastructure optimization (moving from on-demand to reserved pricing) can improve gross margin by 2–3 percentage points.
The Gross Margin–NRR Interaction: High NRR on Low-Margin Customers
High NRR is almost always good — but there is an important nuance when high NRR occurs in a low-gross-margin segment. If your best-expanding customer cohort is also your highest-support cohort — perhaps large enterprise customers who require dedicated implementation, custom integrations, and proactive CSM attention — then the expansion revenue those customers generate may come at a significantly lower gross margin than your average.
This creates a situation where gross margin compresses as NRR improves. The business looks healthy on NRR (expanding revenue base) but deteriorates on gross margin (the expanding revenue is expensive to deliver). Over time, this dynamic limits how much FCF margin the business can generate and creates ceiling on valuation multiple expansion.
The solution is customer-level gross margin tracking: understanding, for each customer or segment, what gross margin the revenue generates after allocating support, services, and infrastructure costs. Companies that build this discipline early can identify which NRR they want to encourage (expansion in high-gross-margin customers) versus which to improve the economics on (expansion in high-support customers where the product could automate more of the support burden).
Infrastructure Cost Trends: A Structural Tailwind for Cloud-Native SaaS
One structural trend worth understanding: cloud infrastructure pricing has declined substantially over the past decade, and this trend continues. Major cloud providers regularly reduce the cost of compute, storage, and networking as their own economies of scale improve. SaaS companies that are cloud-native — running on AWS, GCP, or Azure rather than proprietary data centers — benefit directly from these reductions.
This creates a structural gross margin tailwind for cloud-native SaaS companies: as infrastructure prices decline faster than the product prices they charge customers, gross margins expand without any operational action. This is one reason why gross margins for mature SaaS companies tend to expand over time — not just through operational discipline, but through the infrastructure cost curve working in their favor.
Track this explicitly: model what your gross margin would be today if infrastructure unit prices were the same as three years ago. The delta tells you how much of your gross margin expansion has come from operational improvements versus market tailwinds — and helps you set more accurate forward projections.
Advertisement
See Gross Margin Benchmarks
Compare your gross margin against 500+ public SaaS companies. See where you rank by sector and ARR stage, and identify which benchmarks are relevant comparables for your business model.
See gross margin benchmarks →Related Guides
format_quoteCite This Data
SaaSDB (2026). SaaS Gross Margin Optimization: How to Protect and Expand Your Margins (2026). Retrieved 2026-05-13 from https://saasdb.app/learn/operators/saas-gross-margin-optimization/<a href="https://saasdb.app/learn/operators/saas-gross-margin-optimization/">SaaS Gross Margin Optimization: How to Protect and Expand Your Margins (2026) — SaaSDB</a>[SaaS Gross Margin Optimization: How to Protect and Expand Your Margins (2026)](https://saasdb.app/learn/operators/saas-gross-margin-optimization/)