Skip to main content
Back to Glossary

Metrics

Gross Margin

Gross margin is the percentage of revenue left after the direct cost of delivering a product — hosting, support, and third-party fees — calculated as (Revenue − COGS) / Revenue.

Gross margin is the percentage of every revenue dollar that survives the cost of actually delivering the product. A SaaS company with $10M in revenue and $2M in cost of goods sold runs an 80% gross margin — eighty cents on the dollar left to pay for sales, marketing, R&D, and profit. Software lives at 70–85%. Services drag toward 40–60%. The number sets the ceiling on every other efficiency metric a board cares about, because you cannot spend margin you never earned.

How Gross Margin Is Calculated

The formula is two lines, and the fight is always over what goes in the second one:

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

Cost of goods sold (COGS) is the direct cost of serving customers — not the cost of finding them. For a SaaS business, that means infrastructure and the people who keep the product running, not the reps who sell it.

In COGS Not in COGS (it's OpEx)
Cloud hosting and bandwidth Sales commissions
Customer support team Marketing programs
Payment processing fees R&D / engineering salaries
Third-party data and APIs G&A overhead
Onboarding/professional services Office and tooling

Worked Example: Where the Margin Goes

A company books $20M in revenue. Hosting runs $1.6M, the support team costs $1.4M, and third-party data and processing add $1M. COGS totals $4M.

Gross Margin = ($20M − $4M) / $20M = 80%.

That 80% is the $16M of gross profit available to fund go-to-market and product. Drop hosting efficiency and let COGS climb to $6M, and margin falls to 70% — $2M of gross profit gone without losing a single customer. The customers didn't change. The unit economics did.

When Sales and Finance Teams Use Gross Margin

Gross margin is where the CFO and the board start, because it gates everything downstream. It feeds the Rule of 40, determines whether CAC payback is achievable, and caps the realistic LTV/CAC ratio — a company at 50% margin needs twice the revenue to fund the same sales engine as one at 80%. RevOps watches gross margin by product line to see which offerings actually pay for themselves; a heavily-serviced enterprise deal can carry a logo at 35% margin while the self-serve tier runs at 90%. For sales leaders, margin explains why finance pushes back on certain discounts: a 20-point discount on a 50%-margin product erases more than half the gross profit on the deal.

Common Gross Margin Gaming Patterns

Gross margin is engineered as often as it is earned, and the engineering happens in the classification, not the operation. The favorite move is migrating costs out of COGS and into operating expense — reclassifying the customer success and support teams as "sales and marketing" so margin looks 8–12 points healthier than the cash reality. Hosting gets parked under R&D. Professional services revenue gets booked while its delivery cost hides elsewhere. None of it changes the bank balance; all of it changes the multiple. The other distortion is blended margin masking a structural problem: a company reporting 75% overall can be running a flagship product at 90% and a fast-growing services line at 30%, so the mix shift toward services quietly erodes margin every quarter while the headline holds for a while. Read the COGS definition before you trust the percentage, and ask what moved into OpEx since last year. Gross margin also says nothing about scale or growth — a 90% margin on a shrinking base is still a shrinking business.

Related terms

Ready to see your numbers?

Get your verified Alpha Score. Read-only CRM, score within minutes.

Get my Alpha Score