# SaaS Gross Margin: How to Calculate and What Good Looks Like

DevFeed: [SaaS Gross Margin: How to Calculate and What Good Looks Like](<https://devfeed.tech/articles/saas-gross-margin-how-to-calculate-and-what-good-looks-like-10329.md>)

Original publisher: [Read original article](<https://dodopayments.com/blogs/saas-gross-margin/>)

Author: Ayush Agarwal

Published: 2026-04-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dodo Payments Blog](<https://devfeed.tech/sources/dodo-payments-blog.md>)

Topics: [Software as a service](<https://devfeed.tech/topics/saas.md>), [Finance](<https://devfeed.tech/topics/finance.md>), [Software](<https://devfeed.tech/topics/software.md>)

Tags: [churn](<https://devfeed.tech/tags/churn.md>), [cost](<https://devfeed.tech/tags/cost.md>), [economics](<https://devfeed.tech/tags/economics.md>), [finance](<https://devfeed.tech/tags/finance.md>), [forecasting](<https://devfeed.tech/tags/forecasting.md>), [growth](<https://devfeed.tech/tags/growth.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [pricing](<https://devfeed.tech/tags/pricing.md>), [revenue](<https://devfeed.tech/tags/revenue.md>), [saas](<https://devfeed.tech/tags/saas.md>), [saas-finance](<https://devfeed.tech/tags/saas-finance.md>), [subscriptions](<https://devfeed.tech/tags/subscriptions.md>)

## AI overview

A practical guide to SaaS gross margin explains how to calculate the metric, which costs belong in cost of revenue, why margin affects growth and business quality, and how teams can improve it without damaging growth.

## Source excerpt

Learn how to calculate SaaS gross margin, which costs belong in cost of revenue, and what margin ranges are healthy for different stages of a software business.