ToolNest

Profit Margin Calculator for SaaS

SaaS gross margins are the highest in business — 70% to 85% is normal, and the best exceed 90% — which creates a specific blind spot. When margin is that high, founders stop examining it, and the two things that quietly erode it are miscategorised COGS and a support burden that grows faster than revenue.

Enter your cost to serve one customer and your price to get gross margin per account. The section below on what belongs in COGS matters more than the arithmetic: a company reporting 88% gross margin while classifying its support team as an operating expense is not comparable to one reporting 78% and counting it properly.

Direct cost only — materials, goods, delivery.

Add volume to see total profit rather than per-unit.

Gross profit margin

85.86%

$85.00 profit on each unit sold.

Profit per unit
$85.00
Selling price
$99.00
Equivalent markup
607.14%

Markup divides profit by cost, so it always reads higher than margin.

Total profit on 400 units
$34,000.00
Total revenue
$39,600.00

This is gross margin — it excludes rent, salaries, marketing and tax. A healthy gross margin can still leave a net loss if overheads are high.

Starting values are set for a typical saas scenario — change any field to match yours. Need the plain version? Profit Margin Calculator.

What belongs in SaaS cost of revenue

The dividing line is whether the cost would grow if you added customers without changing the product. Costs that scale with usage or account count are cost of revenue; costs that build future capability are operating expense.

Classifying SaaS costs
CostTreatmentWhy
Cloud hosting and bandwidthCOGSScales directly with usage
Third-party APIs billed per callCOGSVariable with customer activity
Customer support and successCOGSRequired to keep existing customers running
Onboarding and implementationCOGSCost of delivering the service to a new account
Payment processingCOGSPercentage of every transaction
Engineering — new featuresOpEx (R&D)Builds future capability, not current delivery
Engineering — on-call and reliabilitySplitThe share keeping production running is COGS
Sales and marketingOpExAcquisition, not delivery
Excluding support from COGS is the most common way SaaS gross margin gets overstated, and it makes cross-company comparison meaningless.

Benchmarks by business model

Typical gross margin ranges
ModelGross marginMain COGS driver
Pure self-serve SaaS80% to 90%Hosting
SMB SaaS with support75% to 85%Support headcount
Enterprise SaaS with implementation70% to 80%Professional services and onboarding
Usage-heavy / data-intensive SaaS60% to 75%Compute and storage
AI-native products with inference costs40% to 70%Model inference per request
SaaS with hardware component40% to 60%Device cost
Products built on paid model inference sit materially below classic SaaS margins, because a real marginal cost attaches to every request.

What erodes SaaS margin over time

  • Support load per account rising as the customer base ages and the product surface grows. Margin decays quietly unless support scales sublinearly with accounts.
  • Free-tier and trial usage absorbing real infrastructure cost. Model it as a marketing expense with a known price rather than an unbounded one.
  • Enterprise deals with bespoke commitments — dedicated infrastructure, custom SLAs, security reviews — that carry cost the standard price does not cover.
  • Discounting on annual contracts without a corresponding reduction in cost to serve.
  • Inference and compute costs on AI features, which turn a fixed-cost product into a variable-cost one. Price these per usage or cap them.
  • Data egress and storage growth on long-tenured accounts, where a customer's cost to serve rises every year while their price stays flat.

Frequently asked questions

What is a good gross margin for a SaaS company?
70% to 85% is the normal range, with self-serve products at the top end and implementation-heavy enterprise products at the bottom. Below about 60%, investors typically question whether the business is genuinely software. Above 90% usually means support or onboarding has been left out of COGS.
Does customer support count as COGS in SaaS?
Yes. Support and customer success are costs of delivering the service to existing customers, so they belong in cost of revenue. Only the portion aimed at expansion and upsell is reasonably treated as sales expense. Excluding support entirely is the most common cause of overstated SaaS margins.
How do AI features change SaaS margins?
Significantly, because paid model inference is a genuine marginal cost per request — something classic SaaS does not have. Products with heavy inference can run 40% to 70% gross margin instead of 80%. Either price for usage, cap consumption per tier, or drive down cost per request; a flat subscription over uncapped inference is a margin trap.
Should engineering salaries be in COGS?
Mostly no. Feature development is R&D and belongs in operating expense. The exception is the share of engineering that keeps production running — on-call, incident response, infrastructure maintenance — which is a genuine cost of delivering the service and is reasonably allocated to COGS.
Why does my gross margin fall as I add enterprise customers?
Enterprise accounts bring implementation, security review, custom SLAs and higher-touch support, all of which are cost of revenue. Higher contract values often do not fully offset it. This is normal and not necessarily bad — but it needs to be priced deliberately rather than discovered after the fact.