Free ForeverNo SignupSaaS BenchmarksUpdated 2026

Gross Margin Calculator

Calculate your gross profit and gross margin percentage โ€” and see how your business stacks up against SaaS benchmarks.

Gross margin is the percentage of revenue remaining after subtracting the direct cost of delivering your product (COGS). For SaaS, COGS includes hosting, payment processing, and third-party APIs. A 75% gross margin means you keep $0.75 from every $1 of revenue to cover operating expenses and generate profit. Gross margin directly determines LTV and valuation.

Total revenue for the period

$

Direct costs: hosting, payment processing, third-party APIs, customer support costs

$

The time period these numbers cover

The Formula

Gross Margin % = (Revenue โˆ’ COGS) รท Revenue ร— 100

In plain English

Subtract COGS from revenue to get gross profit. Divide gross profit by revenue and multiply by 100 to get the gross margin percentage.

Worked Example

Revenue: $500,000. COGS: $100,000. Gross Profit = $400,000. Gross Margin = $400,000 รท $500,000 = 80%.

What Counts as COGS for SaaS?

COGS (Cost of Goods Sold) for SaaS includes only costs directly tied to delivering the product: cloud infrastructure (AWS, GCP, Azure), payment processing fees, third-party APIs, and dedicated customer support costs (support agent salaries, helpdesk tools).

COGS does not include sales, marketing, R&D, or general & administrative costs โ€” those are operating expenses. Misclassifying opex as COGS artificially suppresses gross margin and misleads investors.

Why Gross Margin Matters for Valuation

SaaS companies with 75โ€“80% gross margins trade at significantly higher ARR multiples than those with 50โ€“60% margins. Higher gross margin means more of each revenue dollar flows to the bottom line, making future earnings more valuable. A 10-percentage-point gross margin improvement can increase valuation by 30โ€“50% at the same ARR.

How to Improve SaaS Gross Margin

Infrastructure optimisation is typically the highest-leverage lever: right-sizing cloud resources, using reserved instances, and reducing egress costs can cut COGS 20โ€“40% without touching the product.

Payment processing optimisation (renegotiating rates with Stripe/Braintree, or using ACH for enterprise customers) can recover 0.5โ€“1.5% of revenue in COGS. Third-party API costs (AI models, mapping, SMS) often scale faster than revenue โ€” audit and cache aggressively.

75โ€“80%

Target gross margin for pure SaaS

70%

Minimum expected at Series A

90%+

Gross margin of best-in-class AI SaaS

30โ€“50%

Gross margin improvement from COGS optimisation

SaaS Gross Margin Benchmarks (2026)

Gross MarginAssessmentTypical BusinessImplicationStatus

80โ€“90%+

World-classPure SaaS / AIPremium valuation multiples

70โ€“80%

HealthyMid-market SaaSSeries A/B expectation met

55โ€“70%

Below targetSaaS + servicesExplain or improve COGS

40โ€“55%

ConcernServices-heavyInvestor concern at diligence

< 40%

CriticalHardware or heavy opsDifficult to scale profitably

Source: KeyBanc Capital Markets SaaS Survey 2025 ยท OpenView SaaS Benchmarks 2025

Common Mistakes

โš ๏ธ

Including R&D or engineering salaries in COGS

Product engineers who build features are opex (R&D), not COGS. Only include the cost of infrastructure needed to run the product and support staff who directly serve customers. Misclassifying R&D as COGS understates true gross margin.

โš ๏ธ

Not allocating customer success to COGS

Customer success managers who onboard and support customers are often misclassified as a sales cost. If their primary function is ensuring customers use and get value from the product, a portion belongs in COGS. Consistency matters โ€” be clear in your accounting policy.

โš ๏ธ

Ignoring gross margin trajectory

A 60% gross margin that is improving to 75% over 18 months tells a very different story than a 60% gross margin that is stable or declining. Investors want to see the path to benchmark gross margins, not just the current snapshot.

Frequently Asked Questions

Related Calculators