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.