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%
- Total profit on 400 units
- $34,000.00
- Total revenue
- $39,600.00
Markup divides profit by cost, so it always reads higher than margin.
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.
| Cost | Treatment | Why |
|---|---|---|
| Cloud hosting and bandwidth | COGS | Scales directly with usage |
| Third-party APIs billed per call | COGS | Variable with customer activity |
| Customer support and success | COGS | Required to keep existing customers running |
| Onboarding and implementation | COGS | Cost of delivering the service to a new account |
| Payment processing | COGS | Percentage of every transaction |
| Engineering — new features | OpEx (R&D) | Builds future capability, not current delivery |
| Engineering — on-call and reliability | Split | The share keeping production running is COGS |
| Sales and marketing | OpEx | Acquisition, not delivery |
Benchmarks by business model
| Model | Gross margin | Main COGS driver |
|---|---|---|
| Pure self-serve SaaS | 80% to 90% | Hosting |
| SMB SaaS with support | 75% to 85% | Support headcount |
| Enterprise SaaS with implementation | 70% to 80% | Professional services and onboarding |
| Usage-heavy / data-intensive SaaS | 60% to 75% | Compute and storage |
| AI-native products with inference costs | 40% to 70% | Model inference per request |
| SaaS with hardware component | 40% to 60% | Device cost |
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.