Published in SaaS Metrics Blog

SaaS Gross Margin Explained: What Good Margins Look Like

SM

SaaS Metrics Team

Growth & SaaS Analytics Experts

Key Takeaways

Venture capitalists and seasoned founders love software for one specific reason: the marginal cost of replicating it is virtually zero. However, delivering that software seamlessly via the cloud does come with hard costs. Understanding your SaaS gross margin is the key to unlocking true capital efficiency, giving you the runway to grow sustainably.

Defining Cost of Goods Sold (COGS) in Software

Unlike physical manufacturing where COGS involves raw materials and shipping, a SaaS company's Cost of Goods Sold (or Cost of Revenue) revolves around infrastructure and maintenance. If your company stopped acquiring new users tomorrow, what would it cost strictly to keep the lights on for your existing customers?

Typically, SaaS COGS includes:

It strictly excludes operating expenses (OpEx) like sales commissions, customer acquisition cost, research and development (R&D), and office rent.

The SaaS Gross Margin Formula

Calculating your gross margin is a straightforward math equation. Once you have isolated your total revenue and your COGS for a specific period, apply this formula:

Gross Margin = ((Total Revenue - COGS) / Total Revenue) * 100

For example, if a SaaS generates $100,000 in monthly recurring revenue and spends $20,000 on hosting and support staff, the gross profit is $80,000. This yields a gross margin of 80%.

What is Considered a "Good" Margin?

According to the latest SaaS benchmarks for 2026, investors have strict expectations for software margins. If a company dips below these thresholds, the market interprets it as a sign of an unscalable business model.

Why High Margins Are Critical for Scale

Top-line revenue growth is meaningless if it costs too much to deliver the product. A high gross margin acts as a financial multiplier. It gives a company the flexibility to experiment with different go-to-market strategies, weather economic downturns, and absorb higher churn periods without immediately facing a cash crunch.

Furthermore, maintaining an 80%+ margin is often a prerequisite for hitting the Rule of 40. If your delivery costs consume 40% of your revenue, leaving you with a 60% gross margin, it becomes mathematically impossible to heavily fund marketing while maintaining overall profitability.

Improving Your Gross Margin

If your margins are lagging, you have a few levers to pull. The fastest method is often raising prices. Assuming you have strong product-market fit, a price increase flows 100% to your gross profit because the underlying delivery cost remains unchanged.

Alternatively, companies must look at architectural refactoring to reduce cloud waste, renegotiating contracts with major server providers, or shifting support models toward self-serve documentation to reduce headcount dependencies. Even with optimized margins, expanding too aggressively on unprofitable unit economics will drain your runway—pair your margin analysis with a close read of our Burn Rate Guide to model your true survival timeline.

Expand Your Analytics Knowledge

Dive deeper into the financial mechanics of scaling a SaaS. Explore detailed guides, definitions, and strategies.

Explore the Blog

Frequently Asked Questions

Are payment processing fees included in COGS?

Yes, most financial models for SaaS consider merchant processing fees (like Stripe or PayPal's standard 2.9% + 30¢) as a direct cost of delivering the service, and thus part of COGS.

Is customer onboarding considered a gross margin expense?

It depends on the model. If onboarding is a required, manual effort to set up the software for the user to derive value, the salaries of those onboarding specialists should be in COGS. If it is merely an upsell or optional training, it often falls under OpEx.

How does gross margin impact SaaS valuation?

Valuation multiples are deeply tied to gross margins. A company with 85% gross margins will almost always receive a significantly higher revenue multiple during a fundraising round or acquisition than a competitor with 60% margins, because the 85% margin business is fundamentally more scalable.