SaaS Gross Margin Calculator

Understand whether your SaaS business model is creating enough gross profit to fund sales, product, and growth. Test scenarios for pricing, packaging, and delivery costs so you can move margins toward investor-grade benchmarks of 70–85% and unlock better unit economics.

By CalcMastery Editorial Team

SaaS Gross Margin Calculator

Compute SaaS gross margin with a clear view of hosting, support, payment fees, and third-party costs. Clean UX with tooltips, scenarios, and What It Means insights.

$

Subscription or usage revenue for the period you are measuring (month, quarter, or year). Exclude one-time setup fees.

%

Blended gateway/card fee as a percent of recurring revenue. Example: 2.9% + $0.30 per transaction often averages to ~2.9%.

$

Cloud, CDN, logging, monitoring, and security tools directly tied to serving customers.

$

Wages or contractors for customer support and success directly tied to active customers (exclude sales and marketing).

$

Per-seat or usage-based licenses bundled into your product (data providers, SMS, auth, integrations).

$

Direct delivery costs for onboarding or implementation work booked as cost of revenue.

$

Any other direct costs required to serve customers (backups, data egress, SMS overage, customer-facing ops).

Scenarios
Load SaaS profiles to see how cost structure shapes gross margin.
Product-led mid-marketSales-led enterpriseUsage-heavy / infra intensiveBest-in-class efficiency

Results

  • SaaS Gross Margin %
  • Gross Profit$
  • Total COGS$
  • Payment processing cost$
  • Revenue$
  • Category

Enter your inputs above to calculate the results.

What is SaaS Gross Margin?

SaaS gross margin is the share of recurring revenue left after all direct costs of delivering the service (COGS) such as cloud hosting, third-party licenses, customer support, and implementation are deducted.

It shows how much gross profit your revenue engine produces before sales & marketing, R&D, and G&A, and is a core driver of valuation, Rule of 40 performance, and long-term value creation.

Strong SaaS gross margins (typically 70–85%+) signal scalable unit economics and give room to invest in CAC, product roadmap, and expansion motions.

Formula

At the core, SaaS gross profit is:

SaaS Gross Profit = Recurring Revenue − SaaS COGS

The related margin percentage is:

SaaS Gross Margin (%) = (Recurring Revenue − SaaS COGS) / Recurring Revenue × 100

Where SaaS COGS typically includes:

  • Payment processing fees
  • Hosting & infrastructure
  • Third-party product costs (APIs, data, integrations, licenses)
  • Support & success delivery tied to active customers
  • Implementation & services delivery directly required to get customers live
  • Other direct COGS required for customers to access and use the product

Example

Assume a SaaS company has monthly recurring revenue of $300,000. Its COGS are:

  • Hosting & infrastructure: $24,000
  • Third-party product costs: $15,000
  • Support & success delivery: $52,000
  • Implementation & services delivery: $10,000
  • Other direct COGS: $6,000
  • Payment processing fees at 2.9% of revenue: $8,700

Total SaaS COGS = $24,000 + $15,000 + $52,000 + $10,000 + $6,000 + $8,700 = $115,700.

SaaS gross profit is:

SaaS Gross Profit = 300,000 − 115,700 = 184,300

SaaS gross margin percentage is:

SaaS Gross Margin (%) = 184,300 / 300,000 × 100 approx 61.4%

In this scenario, the business converts 61.4% of recurring revenue into gross profit, below typical mature SaaS benchmarks, so finance leaders would explore pricing changes, packaging (product vs services mix), and COGS efficiency to move toward 70–80%+ and strengthen metrics like Rule of 40, CAC payback, and LTV/CAC.

How to Use the SaaS Gross Margin Calculator

Use this calculator to translate your SaaS revenue and direct delivery costs into a clear gross margin percentage, so you can see how efficiently your product turns revenue into gross profit.

Enter recurring revenue for the period

  • In “Recurring revenue (same period)”, input total SaaS revenue for the period you’re analyzing (monthly, quarterly, or annual). Use net revenue after discounts and refunds, not bookings or pipeline.

Set the payment processing fee rate

    • In “Payment processing fee rate %”, enter your effective blended processing rate (e.g., 2.9%). The tool will automatically compute your payment processing cost as:
Payment processing cost = Revenue × Fee rate / 100

Fill in all direct COGS buckets

    • Add your direct delivery costs for the same period:

- “Hosting & infrastructure” – cloud, CDN, databases, monitoring. - “Support & success delivery” – frontline support & CSM costs tied to existing customers. - “Third-party product costs” – tools embedded in the product that scale with usage or seats. - “Implementation & services delivery” – time and tools used to onboard or implement paying customers. - “Other direct COGS” – any remaining must-have costs to keep customers live. - The calculator aggregates these values plus payment processing to get:

Total COGS = Hosting + Support / Success + Third-party + Implementation + Other COGS + Payment processing

Review gross profit and SaaS gross margin

    • In the “Results” panel, check “Gross Profit” and “Total COGS”, then the “SaaS Gross Margin %”, calculated as:
SaaS Gross Margin (%) = (Revenue − Total COGS) / Revenue × 100

- Confirm that the numbers line up with your expectations from your P&L or management reports.

Compare against the SaaS baseline and run scenarios

  • Use the “SaaS baseline (60–70%)” label as a quick sense-check. Then tweak individual COGS lines or test new pricing (higher revenue) to see how each change impacts margin. Save or note different scenarios to understand which levers (pricing, vendor renegotiation, support efficiency) move your gross margin the most.

Frequently Asked Questions

What exactly should I include in COGS when using this SaaS Gross Margin Calculator?

Include only direct costs to deliver and run the product: hosting and cloud infrastructure, third-party tools embedded in the product, customer support and success tied to active customers, implementation and onboarding delivery, and payment processing fees. Exclude product R&D, sales & marketing, general admin, and founder salaries that don’t directly serve existing users.

Is the payment processing fee rate really part of COGS or should it stay in overhead?

For SaaS, card and gateway fees are typically treated as cost of revenue, because they scale directly with billings and are required to collect that revenue. The calculator breaks them out so you can see how much margin you lose purely to payment processing while still counting them inside total COGS.

What is a “good” SaaS gross margin and how should I read the result here?

Many B2B SaaS businesses aim for 70–80%+ gross margin; early-stage products might sit closer to 60–70% until infrastructure and support are optimized. If your result is consistently below ~60%, you likely have pricing or cost-to-serve issues; if you’re 75–85%+, you’re in strong territory and can afford to reinvest heavily in growth.

How should I handle implementation & services delivery in this calculator?

If you charge separately for implementation or professional services, include that revenue in “recurring revenue (same period)” only if you’re intentionally analyzing a blended product + services margin. In that case, also include all direct delivery costs in the “Implementation & services delivery” COGS field. If you want to understand pure subscription margin, leave those amounts out of both revenue and COGS and model them in a separate analysis.

Sources & Methodology