Answers

What is gross margin?

Gross margin answers one question before any other number matters: when a dollar of revenue comes in, how much of it is left after keeping that revenue live? Everything downstream, from the Rule of 40 to LTV to CAC payback, depends on that answer being honest.

Short answer

Gross margin is revenue minus cost of revenue, divided by revenue, expressed as a percentage. For a SaaS business, cost of revenue is hosting, customer support, payment processing, and the services it takes to keep paying customers live on the product. A healthy SaaS gross margin is seventy-five percent or higher, and best-in-class subscription businesses run above eighty. It is the purity test for whether unit economics are software-grade or services-grade.

Key points

What matters most.

Six things to understand about gross margin before it lands in a board deck, an investor update, or an operating review. Each is a place a SaaS business either proves its unit economics are software-grade or quietly reveals they are not.

Definition

Revenue minus cost of revenue.

Gross margin equals revenue minus cost of revenue, divided by revenue, expressed as a percentage. The cost of revenue line captures every direct cost of keeping paying customers on the product. What sits below that line, sales and marketing and research and development and general and administrative, is explicitly not part of gross margin.

The SaaS cost line

Hosting, support, services, fees.

In a subscription business, cost of revenue is primarily cloud hosting, the fully loaded cost of the customer support and success teams tied to live customers, the professional services and onboarding team, payment processor fees, and any third-party software passed through to the customer as part of the product.

The benchmark

Seventy-five healthy, eighty-plus elite.

The accepted SaaS gross margin benchmark is seventy-five percent or higher for a healthy business and eighty percent or higher for best-in-class subscription software. Pure software with light support can clear eighty-five. A SaaS reading below seventy signals that services or infrastructure costs are heavier than a software model should carry.

The purity test

Is it software or is it services?

Gross margin is the single clearest signal of whether a business is a software company or a services company dressed in subscription packaging. Software margins compound. Services margins do not. A board or investor looking at gross margin is really asking which category the business belongs to, independent of the revenue label on the invoice.

Different from operating

Does not include S and M, R and D, G and A.

Gross margin is strictly the top of the P and L. Operating margin takes gross profit and subtracts sales and marketing, research and development, and general and administrative expense. Net margin goes further, below operating income, through interest and tax. Gross margin is deliberately higher than both because it isolates the core economic model.

Where it gets gamed

What gets classified above the line.

The most common dispute in gross margin reporting is which costs sit above the cost-of-revenue line versus below it. Teams that classify customer success entirely as sales and marketing post a flattered gross margin. Teams that fully load support and services into cost of revenue post the honest version. The classification policy is the audit point.

How gross margin works

The formula, the inputs, and a worked example.

Gross margin is a two-input calculation. The mechanics are simple. The judgment is in what belongs in cost of revenue and what does not. The six cards below are the full walk-through, from the formula to a worked example to the trend lines a finance team should be able to defend inside any operating review.

The core formula

Revenue minus COGS over revenue.

Gross margin equals revenue minus cost of revenue, divided by revenue, expressed as a percentage. Some teams call the cost line cost of goods sold or COGS. In a subscription business there are no physical goods, so cost of revenue is the cleaner term, but the formula is identical and the output is the same.

Gross profit

The dollar version of the same thing.

Gross profit is revenue minus cost of revenue in dollars, before any percentage is applied. Gross margin is simply gross profit expressed as a percent of revenue. Both numbers belong in the reporting pack. The dollar view shows absolute cash headroom to fund the business. The percent view shows whether that headroom is scaling with revenue.

A worked example

Ten million in, two million out.

A SaaS business reports ten million in revenue for the year and two million in cost of revenue across hosting, support, and services. Gross profit is eight million. Gross margin is eight divided by ten, or eighty percent. That eight million is what remains to fund sales, marketing, product, and the operating base before the business turns a profit.

Period consistency

Match the same time window.

The revenue input and the cost input must cover the same period. Mixing a trailing-twelve-month revenue figure with a quarterly cost figure, or using a bookings number for revenue and a cash number for costs, produces a reading that falls apart the first time it is questioned. Pin the period, document it, and apply it the same way every cycle.

Trailing twelve months

Smooth out quarter noise.

The most useful gross margin view is a trailing twelve-month calculation refreshed each month. One-time hosting spikes, support hiring waves, and services engagements can distort a single quarter. The trailing twelve-month view smooths the noise and lets the operating team spot a real trend before it hardens into a problem.

Direction matters

Trend beats point estimate.

A single gross margin reading is a snapshot. A trend across six or eight quarters is a story. A business moving from seventy-two to seventy-six to seventy-nine is proving the model works at scale. A business moving the opposite direction is signalling that growth is being bought at the cost of unit economics, which boards will catch before any other metric degrades.

SaaS gross margin, line by line

What belongs in cost of revenue for subscription software.

The gross margin formula is simple. The classification of what belongs in cost of revenue is where the real work lives. The six cards below are the standard SaaS cost of revenue stack: what sits in the line, why, and how to document the policy so the number holds up in due diligence.

Cloud hosting

Infrastructure to run the product.

Hosting is the fully loaded cost of running the product in production. Compute, storage, network, data transfer, managed services, logging, monitoring, and backup all sit in this line. Private cloud spend, reserved instance commitments, and third-party database services belong here too. It is the single largest line for most SaaS businesses.

Customer support

The team that keeps live customers live.

Customer support headcount is cost of revenue because its purpose is to keep paying customers using the product. The fully loaded cost of the support team, including tooling, benefits, and management overhead, belongs above the gross margin line. Support that is really pre-sale demo support is sales and marketing, and should be classified there.

Customer success

The team that keeps live customers happy.

Customer success is contested. The clean answer is that the retention and value-realization work of customer success belongs in cost of revenue, because its purpose is to keep paying customers paying. The expansion-selling work of customer success belongs in sales and marketing. Teams that split the function cleanly report a defensible number.

Professional services

Onboarding, implementation, training.

The professional services team that onboards new customers, delivers implementations, and runs training sits in cost of revenue. The revenue they earn, when billed separately, flows through services revenue, which is lower margin than subscription revenue by nature. Blending the two is where many SaaS gross margin readings start to look worse than they really are.

Payment processing

Credit card and transaction fees.

The fees paid to Stripe, Adyen, Braintree, or any other payment processor to collect from customers belong in cost of revenue. They are a direct, variable cost of recognizing a dollar of revenue. For a self-serve business processing many small transactions, the processor line can be a meaningful share of total cost of revenue and should be isolated for visibility.

Third-party pass-through

Vendors embedded in the product.

Any third-party software whose cost scales with customer usage, such as a messaging carrier, a data enrichment vendor, or an API provider embedded in the product, belongs in cost of revenue. These vendors are a direct cost of delivering the subscription. A pass-through markup can offset the drag but the gross cost still lives above the gross margin line.

Where gross margin fits in the metric stack

Benchmarks, boundaries, and adjacent metrics.

Gross margin never travels alone in a board pack. It is the input to every downstream unit economic calculation and it sets the ceiling for every profit metric below it. The six cards below place gross margin inside the broader SaaS metric stack so the whole picture fits together.

The benchmark

Seventy-five healthy, eighty elite.

The widely accepted SaaS gross margin benchmark is seventy-five percent for a healthy subscription business and eighty percent or higher for best-in-class. Public-cohort medians often sit in that range. A reading above eighty-five is unusual and typically reflects a near-pure software model with minimal support and services exposure.

Below the benchmark

Services-heavy or infrastructure-heavy.

A SaaS gross margin below seventy signals one of two patterns. Either the business carries a heavy services motion that lowers the blended margin, or the infrastructure cost of serving each customer is high relative to price. Both are solvable, but they must be named. Carrying a sixty-percent gross margin while reporting as a pure software company creates problems in diligence.

LTV

Gross margin is in the formula.

Customer lifetime value is calculated as average revenue per account multiplied by gross margin, divided by churn rate. A business running at sixty-percent gross margin has a materially lower LTV than a business running at eighty, even at identical revenue and retention. Gross margin is the single most leveraged input to LTV.

LTV to CAC

The payback math cascades.

Because gross margin feeds LTV, it also feeds the LTV to CAC ratio and the CAC payback period. A ten-point swing in gross margin changes the payback window by months. Teams that run their CAC payback calculation using revenue instead of gross profit are overstating payback efficiency. The honest calculation uses the margin-adjusted dollar.

Rule of 40

Margin side starts with gross margin.

The Rule of 40 adds revenue growth and profit margin. The profit margin side, whether operating or EBITDA or free cash flow, starts with gross profit and subtracts operating expenses from there. A low gross margin makes the Rule of 40 almost impossible to clear at any growth rate because every operating expense dollar has less headroom to work against.

Operating margin

Gross margin minus operating expense.

Operating margin is gross profit minus sales and marketing, research and development, and general and administrative, divided by revenue. By construction, operating margin is always lower than gross margin. The gap between the two is where leadership chooses to invest. A narrowing gap signals operating leverage. A widening gap signals investment.

Protect gross margin with the CRM behind every renewal.

Strkr tracks the renewal, expansion, and churn activity that sits behind every ARR dollar on the same account record, so the subscription book your gross margin is calculated against ties to the system the sales and success teams already run. No reconciliation gap between the pipeline review and the finance report.

People also ask

Related questions.

What is gross margin in SaaS?

Gross margin in SaaS is revenue minus cost of revenue, divided by revenue, expressed as a percentage. Cost of revenue for a subscription business is primarily cloud hosting, customer support, customer success focused on retention, professional services, payment processor fees, and any third-party vendors embedded in the product. A healthy SaaS gross margin is seventy-five percent or higher, and best-in-class is eighty or more.

How do you calculate gross margin?

Take revenue for a period, subtract cost of revenue for the same period, and divide the result by revenue. Multiply by one hundred to express the result as a percentage. For example, a business with ten million in revenue and two million in cost of revenue has gross profit of eight million and a gross margin of eighty percent.

What is a good gross margin for a SaaS company?

The accepted benchmark is seventy-five percent or higher for a healthy SaaS business and eighty percent or higher for best-in-class. Pure software with minimal support and services exposure can clear eighty-five. A SaaS gross margin below seventy is a signal that either services or infrastructure costs are heavier than a software model should carry, and that the business may need to classify or price differently.

What is the difference between gross margin and operating margin?

Gross margin is revenue minus cost of revenue only, which captures the direct costs of keeping customers live. Operating margin takes gross profit and subtracts sales and marketing, research and development, and general and administrative expense. By construction, operating margin is always lower than gross margin. The gap between them is where leadership chooses to invest in growth.

What is the difference between gross margin and net margin?

Gross margin isolates the core economic model at the top of the income statement. Net margin is the bottom of the income statement, after operating expenses, interest, tax, and any other items. Net margin is the final profit percentage. Gross margin is deliberately higher because it has not yet absorbed any of the operating or financing cost base.

Why is gross margin so important for SaaS?

Gross margin is the purity test for whether a business is software or services. Software gross margins compound as the business scales because infrastructure cost grows slower than revenue. Services gross margins do not. Investors and operators look at SaaS gross margin to decide whether the business deserves a software multiple or a services multiple, which materially changes valuation.

What belongs in cost of revenue for a SaaS business?

Cost of revenue for SaaS typically includes cloud hosting, the customer support team, the retention portion of customer success, the professional services and onboarding team, payment processor fees, and any third-party vendors whose cost scales with customer usage. Expansion-selling customer success and demo-support work belong in sales and marketing, not cost of revenue. The classification policy should be documented.

How often should gross margin be reported?

Gross margin should be reported monthly on a trailing twelve-month basis for internal operating cadence and quarterly for board reporting. The trailing-twelve-month view smooths one-time hosting spikes, support hiring waves, and services engagements that would distort a single quarter and lets leadership spot a real trend before it hardens into a durable problem in the metric.

Try it free. Bring your team next week.

No sales call, no migration consultant, no four-month implementation. Enter your card, get 14 days of the full Pro tier, cancel any time before day 14 with zero charge. Spin up a workspace, import your CSV, and have something useful before lunch.