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
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
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
Customer Lifetime Value (LTV) Calculator
Estimate LTV from ARPA, gross margin and monthly churn. See implied customer lifetime at the same time.
CAC Payback Period Calculator
Work out how many months it takes for a customer's gross profit to repay the cost of acquiring them.
Burn Rate Calculator
Find net monthly burn from revenue, operating expenses and cost of goods sold.