Optimized Sales Optimized Marketing Target Accounts For CROs For CFOs For CMOs Blog News Glossary Compare Tools About Schedule a Demo
Metrics & KPIs

Gross Margin Formula

ORM Technologies
Home/ Glossary/ Gross Margin Formula
Definition Gross margin is the percentage of revenue left after the direct cost of delivering your product. The formula is (Revenue minus Cost of Goods Sold) divided by Revenue, times 100. For SaaS, it is the metric that separates a business that scales profitably from one that does not.

The Formula

Gross Margin = (Revenue minus Cost of Goods Sold) / Revenue x 100

If you earn 1,000,000 dollars and it costs 200,000 dollars to deliver the product, your gross margin is 80 percent. That 80 percent is what remains to cover sales, marketing, R&D, and profit. Gross profit is the same calculation expressed in dollars rather than a percentage: Revenue minus COGS.

What Belongs in COGS

The number is only as honest as the costs you put in it. For a SaaS business, Cost of Goods Sold is the direct cost of delivering the service:

In COGSNot in COGS
Cloud hosting and infrastructureSales and marketing
Customer support and delivery-side successR&D and engineering for new features
Payment processing feesGeneral and administrative overhead
Embedded third-party softwareOffice, finance, legal
Misclassifying sales or R&D as COGS understates gross margin and hides the real economics. Keeping the line clean is what makes the number comparable over time and against peers.

Why Gross Margin Decides Whether You Scale

Gross margin is the ceiling on every other unit economic. A high-margin business keeps most of each new revenue dollar to fund growth; a low-margin business has to run much harder to net the same result. It directly shapes how much you can afford to spend acquiring customers, which is why it sits upstream of the LTV to CAC ratio and the Rule of 40. Two companies with identical revenue and very different gross margins are not the same business.

Track It by Segment, Not Just Blended

A single company-wide gross margin can hide the story. Usage-heavy customers, services-heavy contracts, and different product lines carry different costs to serve. Track gross margin by product and by customer segment, and the blended number stops masking the accounts that quietly cost more to serve than they return. That segment view is also what connects gross margin back to recurring revenue quality and retention.

Frequently Asked Questions

What is the gross margin formula?

Gross Margin equals (Revenue minus Cost of Goods Sold) divided by Revenue, times 100. If you earn 1,000,000 dollars in revenue and it costs 200,000 dollars to deliver, gross margin is 80 percent. It measures how much of each revenue dollar is left after the direct cost of serving customers.

What counts as COGS for SaaS?

The direct costs of delivering the software: cloud hosting and infrastructure, customer support, customer success tied to delivery, payment processing, and third-party software embedded in the product. It does not include sales, marketing, R&D, or general overhead, which sit below the gross margin line.

What is a good SaaS gross margin?

Healthy software businesses generally run high gross margins because software costs little to replicate. The exact target varies by model, and services-heavy or usage-heavy businesses run lower. The more useful exercise is tracking your own gross margin trend over time and by product line, not chasing a single benchmark.

Put these metrics to work

ORM builds custom revenue forecast models that turn concepts like gross margin formula into prescriptive action for your team.

Schedule a Demo