opyeb UnitPulse

Guides · Margins

Gross margin for SaaS: what belongs in COGS

Basis 2026.11.27 · Margins · about 7 min

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

CategoryIncludesUsually variable?
InfrastructureCloud compute, storage, bandwidth, CDN, databaseYes, with usage
Third-party servicesAPIs, maps, email, payments, identityMostly variable
Customer supportSupport staff, tools, outsourced tiersSemi-variable
Onboarding and implementationSolutions engineers, migration workFront-loaded
Hosting of customer dataBackups, disaster recovery, compliance toolingSemi-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

InputAt 85% marginAt 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 CAC4.4x3.3x
Payback9.2 months12.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

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 calculator

Basis date 2026.11.27. Written against the published 2026 benchmark reports and standard SaaS definitions; updated when the sources change.

Back to the guides