What is SaaS Gross Margin?
SaaS gross margin is the share of recurring revenue left after all direct costs of delivering the service (COGS) such as cloud hosting, third-party licenses, customer support, and implementation are deducted.
It shows how much gross profit your revenue engine produces before sales & marketing, R&D, and G&A, and is a core driver of valuation, Rule of 40 performance, and long-term value creation.
Strong SaaS gross margins (typically 70–85%+) signal scalable unit economics and give room to invest in CAC, product roadmap, and expansion motions.
Formula
At the core, SaaS gross profit is:
The related margin percentage is:
Where SaaS COGS typically includes:
- Payment processing fees
- Hosting & infrastructure
- Third-party product costs (APIs, data, integrations, licenses)
- Support & success delivery tied to active customers
- Implementation & services delivery directly required to get customers live
- Other direct COGS required for customers to access and use the product
Example
Assume a SaaS company has monthly recurring revenue of $300,000. Its COGS are:
- Hosting & infrastructure: $24,000
- Third-party product costs: $15,000
- Support & success delivery: $52,000
- Implementation & services delivery: $10,000
- Other direct COGS: $6,000
- Payment processing fees at 2.9% of revenue: $8,700
Total SaaS COGS = $24,000 + $15,000 + $52,000 + $10,000 + $6,000 + $8,700 = $115,700.
SaaS gross profit is:
SaaS gross margin percentage is:
In this scenario, the business converts 61.4% of recurring revenue into gross profit, below typical mature SaaS benchmarks, so finance leaders would explore pricing changes, packaging (product vs services mix), and COGS efficiency to move toward 70–80%+ and strengthen metrics like Rule of 40, CAC payback, and LTV/CAC.
How to Use the SaaS Gross Margin Calculator
Use this calculator to translate your SaaS revenue and direct delivery costs into a clear gross margin percentage, so you can see how efficiently your product turns revenue into gross profit.
Enter recurring revenue for the period
- In “Recurring revenue (same period)”, input total SaaS revenue for the period you’re analyzing (monthly, quarterly, or annual). Use net revenue after discounts and refunds, not bookings or pipeline.
Set the payment processing fee rate
- In “Payment processing fee rate %”, enter your effective blended processing rate (e.g., 2.9%). The tool will automatically compute your payment processing cost as:
Fill in all direct COGS buckets
- Add your direct delivery costs for the same period:
- “Hosting & infrastructure” – cloud, CDN, databases, monitoring. - “Support & success delivery” – frontline support & CSM costs tied to existing customers. - “Third-party product costs” – tools embedded in the product that scale with usage or seats. - “Implementation & services delivery” – time and tools used to onboard or implement paying customers. - “Other direct COGS” – any remaining must-have costs to keep customers live. - The calculator aggregates these values plus payment processing to get:
Review gross profit and SaaS gross margin
- In the “Results” panel, check “Gross Profit” and “Total COGS”, then the “SaaS Gross Margin %”, calculated as:
- Confirm that the numbers line up with your expectations from your P&L or management reports.
Compare against the SaaS baseline and run scenarios
- Use the “SaaS baseline (60–70%)” label as a quick sense-check. Then tweak individual COGS lines or test new pricing (higher revenue) to see how each change impacts margin. Save or note different scenarios to understand which levers (pricing, vendor renegotiation, support efficiency) move your gross margin the most.
Frequently Asked Questions
What exactly should I include in COGS when using this SaaS Gross Margin Calculator?
Include only direct costs to deliver and run the product: hosting and cloud infrastructure, third-party tools embedded in the product, customer support and success tied to active customers, implementation and onboarding delivery, and payment processing fees. Exclude product R&D, sales & marketing, general admin, and founder salaries that don’t directly serve existing users.
Is the payment processing fee rate really part of COGS or should it stay in overhead?
For SaaS, card and gateway fees are typically treated as cost of revenue, because they scale directly with billings and are required to collect that revenue. The calculator breaks them out so you can see how much margin you lose purely to payment processing while still counting them inside total COGS.
What is a “good” SaaS gross margin and how should I read the result here?
Many B2B SaaS businesses aim for 70–80%+ gross margin; early-stage products might sit closer to 60–70% until infrastructure and support are optimized. If your result is consistently below ~60%, you likely have pricing or cost-to-serve issues; if you’re 75–85%+, you’re in strong territory and can afford to reinvest heavily in growth.
How should I handle implementation & services delivery in this calculator?
If you charge separately for implementation or professional services, include that revenue in “recurring revenue (same period)” only if you’re intentionally analyzing a blended product + services margin. In that case, also include all direct delivery costs in the “Implementation & services delivery” COGS field. If you want to understand pure subscription margin, leave those amounts out of both revenue and COGS and model them in a separate analysis.
Sources & Methodology