Skip to main content
Free Finance Tool
Embed

Gross Margin Calculator

Calculate your SaaS gross margin and compare COGS against stage-specific benchmarks. See exactly where your cost of delivery eats into revenue.

COGS BreakdownStage BenchmarksMargin Analysis

Gross Margin Inputs

Cost of Goods Sold (COGS) Breakdown

Gross Margin Summary

Gross Margin

76.1%

On track (60-75%)

Gross Profit

$76,100

Monthly

Total COGS

$23,900

23.9% of revenue

Revenue

$100,000

Monthly

COGS Breakdown vs. Seed Benchmarks

CategoryAmount% of Revenue% of COGSBenchmarkStatus
Hosting / Infrastructure$8,0008.0%33.5%8-15%On track
Customer Support$6,0006.0%25.1%5-12%On track
Payment Processing$2,9002.9%12.1%2-4%On track
Third-Party Services$5,0005.0%20.9%5-12%On track
Other COGS$2,0002.0%8.4%2-8%On track
Total COGS$23,90023.9%

Key Observations

1

Your gross margin is within or above the Seed benchmark range. Maintain cost discipline as you scale to preserve these margins.

How to Use This Calculator

Analyze your gross margin and COGS in three steps.

1

Enter Revenue & Stage

Input your monthly revenue and select your company stage. The calculator loads benchmark ranges for pre-seed through Series B+ companies.

2

Break Down Your COGS

Enter costs for hosting, customer support, payment processing, third-party services, and any other costs directly tied to delivering your product.

3

Review Margin Analysis

See your gross margin percentage, COGS breakdown by category, benchmark comparisons with status indicators, and personalized optimization suggestions.

How Gross Margin Works

Gross margin measures how much revenue remains after subtracting the direct costs of delivering your product or service.

Formula

Gross Margin % = ((Revenue - COGS) / Revenue) × 100

COGS for SaaS companies includes hosting, customer support, payment processing, third-party API costs, and any other expenses directly tied to service delivery. It does not include operating expenses like engineering salaries, marketing, or G&A.

Example: Seed-Stage SaaS at $100K MRR

COGS CategoryAmount% of Revenue
Hosting / Infrastructure$8,0008.0%
Customer Support$6,0006.0%
Payment Processing$2,9002.9%
Third-Party Services$5,0005.0%
Other COGS$2,0002.0%
Gross Profit$76,10076.1%

A 76.1% gross margin falls within the seed-stage benchmark of 60-75%, indicating healthy unit economics for this stage.

Frequently Asked Questions

Common questions about SaaS gross margins and COGS.

What is a good gross margin for SaaS?+

A good SaaS gross margin is 70-85% for mature companies. Early-stage startups typically see 50-70% margins that improve as they scale and negotiate better infrastructure rates. Seed-stage companies should target 60-75%, while Series A and beyond should aim for 65-85%. Margins below 50% signal that your delivery costs are too high and need immediate attention. For detailed benchmarks, read our guide on improving SaaS gross margins.

What counts as COGS for a SaaS company?+

SaaS COGS includes all costs directly tied to delivering your product: cloud hosting and infrastructure (AWS, GCP, Azure), customer support and success team salaries, payment processing fees (Stripe, PayPal), third-party API and data service costs, and any software licenses required for service delivery. It does not include R&D engineering salaries, sales and marketing expenses, or general administrative costs. Understanding this distinction is critical for accurate profit margin benchmarking.

How can I improve my gross margin?+

The fastest ways to improve SaaS gross margins are: optimize cloud infrastructure through right-sizing instances and using reserved capacity (can save 20-40% on hosting), renegotiate third-party API contracts as your volume increases, automate customer support with self-service docs and chatbots, and review payment processing tiers. For early-stage companies, hosting is usually the largest lever. For growth-stage companies, customer support efficiency matters most. Our seed-stage P&L guide covers how gross margin fits into your overall financial picture.

Why Gross Margin Is the Most Important SaaS Metric

Gross margin is the foundation of SaaS unit economics. It tells you how much of every dollar of revenue is actually available to fund growth, pay for engineering, and build your business. A company with 80% gross margins has four times the operating leverage of a company at 20% margins, and investors know it.

The biggest misconception among early-stage founders is treating all expenses as equal. COGS and operating expenses are fundamentally different. COGS scales with revenue -- more customers mean more hosting, more support tickets, more payment fees. Operating expenses like engineering and marketing can be scaled independently. This calculator helps you separate the two so you can see your true gross margin improvement opportunities.

Hosting and infrastructure is often the first COGS category to get out of control. Startups launch on generous cloud credits, then face sticker shock when those expire. A seed-stage company spending 20% of revenue on hosting has a structural problem that will only get worse at scale. The benchmark for seed-stage hosting is 8-15% of revenue, and it should decrease as you grow. Our profit margins by industry benchmarks article shows how SaaS compares to other business models.

Customer support costs are the second area that surprises founders. As you move from seed to Series A, support volume grows faster than revenue unless you invest in self-service tooling. Companies that maintain strong gross margins build robust help centers, automate onboarding, and use tiered support models. Read our analysis in healthy monthly P&L for seed stage to see how support costs fit into the bigger picture.

For a complete financial picture, pair this gross margin analysis with the OpEx benchmark calculator to evaluate your operating expenses, and the profitability calculator to see when your margins will translate into actual profit.

Ready to Track Your Gross Margins?

Get full access to automated COGS tracking, real-time margin monitoring, and stage-specific benchmarking in one dashboard.