Gross margin is the percentage of revenue remaining after subtracting the cost of goods sold (COGS). For SaaS, this typically means hosting/infrastructure, customer support, and third-party fees tied directly to delivering the product. Gross Margin = (Revenue − COGS) / Revenue. Most mature SaaS companies run a gross margin of roughly 70–85%.
What is Gross Margin?
Gross margin is the percentage of revenue a company keeps after paying the direct costs of delivering its product, its cost of goods sold (COGS). For a SaaS business, COGS usually means cloud hosting and infrastructure, customer support staff, payment processing fees, and any third-party services baked into running the product.
In words: gross margin equals revenue minus cost of goods sold, divided by revenue.
Example
A company brings in $500,000 in monthly revenue. Its hosting, support, and payment-processing costs (COGS) total $100,000 for the month.
Gross Margin = ($500,000 − $100,000) / $500,000 = 80%
That company keeps 80 cents of every revenue dollar after the direct cost of delivering the product, before spending anything on sales, marketing, R&D, or overhead.
What's a typical SaaS gross margin?
As a general industry convention (not a fixed rule), mature, product-led SaaS companies commonly run a gross margin in the 70–85% range. Businesses with a large services or custom-implementation component, or ones still optimizing their infrastructure spend, often see lower gross margins, since more of their cost base scales linearly with each customer rather than staying fixed.
Gross margin tends to improve as a company scales, since fixed infrastructure and support costs get spread across a larger revenue base.
Gross Margin vs Net Margin
Gross margin and net margin both describe profitability, but they answer different questions and subtract different costs.
| Gross Margin | Net Margin | |
|---|---|---|
| Subtracts | COGS only (hosting, support, delivery costs) | All operating expenses (COGS + R&D + sales & marketing + G&A) |
| Answers | How efficient is delivering the product itself? | Is the whole business profitable? |
| Typical SaaS range | 70–85% | Often negative in growth stage; 10–20%+ at maturity |
A company can have an excellent gross margin and still run a negative net margin. That usually means the product is cheap to deliver, but the company is spending heavily on growth (sales, marketing, R&D) relative to its current revenue. See Net Margin for the full breakdown.
Why gross margin matters
Gross margin shows up in more places than a single line on the income statement:
- Valuation. Investors read gross margin as a signal of how "software-like" a business really is. High, stable gross margins support the idea that revenue can scale faster than the cost of serving it.
- Other formulas depend on it. CAC Payback Period divides by gross margin, because a company only actually recovers the margin it keeps from each customer, not their gross revenue.
- Cost discipline. A declining gross margin is often an early warning sign: rising infrastructure costs, a support team growing faster than the customer base, or discounting that's eating into unit economics.
How to improve gross margin
- Automate support for common issues. Self-serve help content and in-app guidance reduce the support headcount needed per customer.
- Renegotiate or optimize infrastructure spend. Cloud costs often creep up unnoticed as usage patterns change; periodic audits catch waste.
- Watch discounting. Aggressive discounting lowers revenue without lowering COGS, directly compressing gross margin.
- Segment gross margin by plan or customer tier. Some tiers may be far less profitable to serve than others once support load is accounted for. That's useful input for pricing decisions.