Gross margin for SaaS: what belongs in COGS
Gross margin is revenue minus the cost of delivering the service, divided by revenue. It is the first filter on every unit-economics number: LTV and CAC payback are both calculated on gross profit, so a margin error moves them more than a price change.
What belongs in COGS
| Category | Includes | Usually variable? |
|---|---|---|
| Infrastructure | Cloud compute, storage, bandwidth, CDN, database | Yes, with usage |
| Third-party services | APIs, maps, email, payments, identity | Mostly variable |
| Customer support | Support staff, tools, outsourced tiers | Semi-variable |
| Onboarding and implementation | Solutions engineers, migration work | Front-loaded |
| Hosting of customer data | Backups, disaster recovery, compliance tooling | Semi-fixed |
What stays out
Sales and marketing, research and development, and general and administrative costs are operating expenses below gross profit. Putting them in COGS makes margin look worse and confuses the payback calculation, which already includes CAC separately.
The normal range
Subscription software typically runs 75–85% gross margin. Infrastructure-heavy products, AI-native services with inference costs, and businesses with a large human support layer can run lower, sometimes 50–65%. That is not automatically bad, but the lower margin must be compensated by higher ARPA, stronger retention or a lower CAC.
How margin changes the unit economics
| Input | At 85% margin | At 65% margin |
|---|---|---|
| ARPA | $450 | $450 |
| Monthly gross profit | $382.50 | $292.50 |
| LTV at 2.5% churn | $15,300 | $11,700 |
| LTV:CAC at $3,500 CAC | 4.4x | 3.3x |
| Payback | 9.2 months | 12.0 months |
The same product, price and acquisition cost produce either a comfortable or a marginal profile depending on 20 points of margin. Before cutting price to win a deal, check what it does to this table.
Margin by segment
Enterprise customers often carry higher support and onboarding costs but lower relative infrastructure cost; self-serve customers carry almost no support cost but a higher payment fee share. A blended margin hides both. Calculate margin by segment before using it to set pricing or to judge a channel.
Common errors
- Counting all cloud spend in COGS when some of it is development and staging.
- Leaving payment processing fees in gross revenue instead of netting them.
- Treating customer success as pure S&M when part of it is delivery.
- Ignoring inference or API costs that scale with usage.
- Using revenue-based LTV after calculating a gross margin, which double-counts the benefit.
Basis 27 November 2026. Margin ranges reflect common SaaS practice; segment data should come from your own ledger, not a benchmark.
Questions
Is 70% gross margin good for SaaS?
It is below the 75–85% range that most subscription software reports, but whether it is a problem depends on the cause. Inference or support costs that scale with usage can be improved with pricing and automation; a human-heavy delivery model may need a different valuation framework.
Should payment processing fees be in COGS?
Yes, as a cost of collecting revenue. They are small per transaction but material at scale, and leaving them out overstates margin and LTV.
Set your gross margin in the first tab and watch LTV and payback change with the same ARPA and CAC.
Open the calculatorBasis date 2026.11.27. Written against the published 2026 benchmark reports and standard SaaS definitions; updated when the sources change.
Back to the guides