Live October 1st. Join waitlist, get early-bird rate for 6 months.Claim yours today →

SaaS Gross Margin Calculator

Itemise your cost of goods sold and see exactly what each line costs you in margin.

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.

$/mo
$
$
$
$

Gross margin counts only costs that scale with customers. Salaries, marketing and office costs belong below the line, not here.

Gross margin79.0%$15,800 gross profit per month
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 COGSNot in COGS
Hosting and infrastructureEngineering salaries
Third-party APIs charged per useMarketing and advertising
Payment processing feesOffice and admin
Customer support and successSales salaries and commission
Data and content licensing per customerProduct design
Above and below the gross margin line

The test is whether the cost rises when you add a customer. Hosting does. Your designer's salary does not.

Benchmarks

ProductGross margin
Pure software SaaS80–90%
SaaS with meaningful support75–85%
AI-assisted product65–80%
AI-native product50–70%
Marketplace or payments-heavy20–50%
Typical gross margin by product type

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.