Gross margin counts only the costs that scale with customers. Salaries, marketing and office costs sit below the line — putting them in cost of goods sold is the most common way this number gets computed wrongly.
SaaS Gross Margin Calculator
Itemise your cost of goods sold and see exactly what each line costs you in margin.
Gross margin counts only costs that scale with customers. Salaries, marketing and office costs belong below the line, not here.
- Revenue
- $20,000
- Hosting and APIs
- $2,00010.0%
- Support
- $1,0005.0%
- Payment processing
- $7003.5%
- Other variable costs
- $5002.5%
- Total COGS
- $4,200
- Annual gross profit
- $189,600
Payment processing is 3.5% of revenue and 17% of your cost of goods sold. Every basis point off the rate lands straight in gross profit.
What counts as cost of goods sold
| In COGS | Not in COGS |
|---|---|
| Hosting and infrastructure | Engineering salaries |
| Third-party APIs charged per use | Marketing and advertising |
| Payment processing fees | Office and admin |
| Customer support and success | Sales salaries and commission |
| Data and content licensing per customer | Product design |
The test is whether the cost rises when you add a customer. Hosting does. Your designer's salary does not.
Benchmarks
| Product | Gross margin |
|---|---|
| Pure software SaaS | 80–90% |
| SaaS with meaningful support | 75–85% |
| AI-assisted product | 65–80% |
| AI-native product | 50–70% |
| Marketplace or payments-heavy | 20–50% |
Below about 70% for a software product, the usual causes are support costs that scale too steeply with customers, an infrastructure setup that has never been reviewed, or payment fees on a low price point.
Where payment fees sit
At 2.9% + 30¢ on a $29 plan, processing costs about $1.14 per customer per month — roughly 3.9% of revenue. On a $10,000 MRR business that is $390 a month, or nearly 4 points of gross margin.
Why gross margin decides everything else
Gross profit is what funds engineering, marketing, and eventually a founder salary. At 80% margin, $100,000 of revenue leaves $80,000 to run the business. At 60% it leaves $60,000 — the same revenue, a third less to work with.
GOOD QUESTIONS
Frequently asked
What is a good gross margin for SaaS?+
75–85% is the healthy band for a software product, and above 85% is excellent. AI-native products commonly run 50–70% because inference dominates COGS — that is a different cost structure rather than a worse business.
Do salaries belong in cost of goods sold?+
Support and customer success salaries do, because they scale with customer count. Engineering, sales, marketing and admin salaries do not — they sit below the gross margin line as operating expenses.
Are payment processing fees part of COGS?+
Yes. They are incurred per transaction and scale directly with revenue, which is the definition of a cost of goods sold. Filing them as overhead is common and quietly flatters the margin by several points on low-priced plans.
How do I improve gross margin?+
In rough order of effort: renegotiate or switch payment processing, review infrastructure spend and reserved capacity, reduce support load through documentation and product changes, and raise prices. The first requires no engineering at all.
