SaaSMetrics

Free SaaS calculator

Gross Margin Calculator

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

Quick answer

Gross margin is the share of revenue left after direct delivery costs.

Formula: Gross margin = (revenue − COGS) ÷ revenue × 100

USD for the period.
USD, direct delivery costs only.
Gross profit
—
Gross margin
—

How it works

Gross margin is the share of revenue left after direct delivery costs. For SaaS, COGS usually includes hosting, third-party APIs, support and onboarding. It is the margin used in LTV and CAC payback calculations.

Gross margin = (revenue − COGS) ÷ revenue × 100

This tool runs entirely in your browser. Your numbers are never uploaded or stored. The address bar updates as you type, so you can copy the link to share this exact calculation.

Frequently asked questions

What counts as COGS for SaaS?

Hosting, infrastructure, third-party services used by customers, support and implementation costs tied directly to delivery.

Are salaries included?

Only the salaries of people directly delivering the product, such as support engineers. Sales, marketing and general admin are operating expenses.

What is a healthy SaaS gross margin?

Many software businesses target 70–85%. Lower margins often signal heavy infrastructure or services costs.

Related calculators