Cost of subscription revenue holds hosting, the team that keeps customers live and software amortization; gross margin divides what is left by subscription revenue.
SaaS gross margin is subscription revenue minus cost of subscription revenue (hosting, support and success, amortization of capitalized platform software), divided by subscription revenue. In the worked case, $35,863,000 of subscription revenue and $8,302,000 of cost give 76.9 percent in 2025, up from 74.0 percent, while total margin including services at a loss is 73.5 percent.
Worked in full in The SaaS CFO by Julian R. Sterling.Get the DRM-free PDF, $19.99 →or the paperback
Free: the SaaS metrics board model in Excel, prefilled with the worked case of the book.
SaaS gross margin is subscription revenue minus the cost of delivering the subscription, divided by subscription revenue. The cost of delivering it usually covers three blocks: hosting and the third-party services the product runs on, the people who keep customers live (support and customer success, to the extent the company's policy puts them there), and the amortization of software the company capitalized for its own platform. Sales and marketing, research and development of new features and general administration stay below the line.
No accounting rule fixes the exact list. For a public company, the SEC's rules ask the income statement to show the costs applicable to each revenue line, and each company writes a policy for what that means. A board can only compare two years if the policy does not move.
Quillmere Software, the fictional company of The SaaS CFO, puts hosting, its support and success team and the amortization of capitalized software in cost of subscription revenue.
| Line | 2024 ($) | 2025 ($) |
|---|---|---|
| Subscription revenue | 27,695,000 | 35,863,000 |
| Hosting | 2,493,000 | 2,941,000 |
| Support and success team | 3,060,000 | 3,510,000 |
| Amortization of capitalized software | 1,653,000 | 1,851,000 |
| Cost of subscription revenue | 7,206,000 | 8,302,000 |
| Subscription gross margin | 74.0% | 76.9% |
Subscription gross margin 2024 = (27,695,000 − 7,206,000) ÷ 27,695,000 = 74.0%
Subscription gross margin 2025 = (35,863,000 − 8,302,000) ÷ 35,863,000 = 76.9%
Two things moved the margin. Hosting fell from 9.0 percent of subscription revenue in 2024 to 8.2 percent in 2025, after a committed-spend agreement with the cloud provider. The support and success team grew more slowly than revenue. Amortization rose, because the platform work capitalized in earlier years keeps landing in cost of revenue.
The trap: moving the support team, or the software amortization, out of cost of revenue raises the margin without changing a dollar of cash. If the policy changes, restate the prior year on the new basis before you show the comparison.
Quillmere also sells implementation to its larger customers. By policy it runs that work at a loss to speed adoption: professional services revenue was $1,050,000 in 2024 and $1,226,000 in 2025, against delivery costs of $1,312,000 and $1,533,000, a gross margin of -25.0 percent.
| Margin | 2024 | 2025 |
|---|---|---|
| Subscription gross margin | 74.0% | 76.9% |
| Total gross margin | 70.4% | 73.5% |
Total gross margin blends the two lines and is always lower. Show both: the subscription margin says what the recurring product costs to serve, the total margin says what the company keeps after the services it chooses to give away.
Subscription gross margin feeds other metrics. CAC payback divides acquisition cost by the gross profit of the ARR it bought, so a margin that rises from 74.0 to 76.9 percent shortens payback with no change in sales efficiency. Read the margin first, then the payback.
Rules as read on 17 November 2026. The company in the examples is fictional; nothing here is accounting, tax or investment advice.
It depends on the company's written policy. Teams that keep existing customers live are often included; teams that sell expansion are usually in sales and marketing. Whatever the choice, keep it stable from year to year.
When the capitalized software is the platform customers use, its amortization is commonly presented in cost of subscription revenue. Agree the presentation with your auditors.
Subscription margin covers the recurring product only. Total margin adds professional services, which many SaaS companies run at a low or negative margin, so it is lower.
It helps, because payback and lifetime value use gross profit. But a margin raised by reclassifying costs changes the metric without changing the business.
This article is one calculation from The SaaS CFO, a practitioner’s guide to the finance function of a venture-backed software company: ARR and retention, revenue and billings, unit economics, the cash forecast and runway, venture debt and the board package.
DRM-free PDF, $19.99 · Paperback, $32.99, shipped worldwide · Free Excel model