Finance

Gross Margin Calculator

Calculate gross margin and gross profit from revenue and cost of goods sold.

Enter your values

Results update as you type. Nothing is sent anywhere — the maths runs in your browser.

$

Total revenue for the period.

$

Direct costs: hosting, support, infrastructure.

Formula

Gross Profit = Revenue − COGS Gross Margin = (Gross Profit ÷ Revenue) × 100

Gross margin shows what percentage of revenue remains after direct costs. SaaS companies typically achieve 70-85%.

Gross Margin
—

Enter values to calculate.

Gross profit
—
Revenue
—
COGS
—
Rating
—

Frequently asked questions

What is a good SaaS gross margin?

70-85% is typical. Below 70% suggests high infrastructure or support costs that need optimization.

What counts as COGS in SaaS?

Hosting, infrastructure, customer support, payment processing fees, and third-party software costs.

Gross margin vs net margin?

Gross margin excludes operating expenses. Net margin subtracts all expenses including R&D, S&M, and G&A.

Why does gross margin matter?

It determines how much revenue is available to fund growth, R&D, and profits. Higher margins mean more operating leverage.