Homechevron_rightGlossarychevron_rightGross Margin

Gross Margin: Definition, Formula & SaaS Benchmarks

What is Gross Margin?

Gross margin is revenue minus cost of goods sold (COGS), expressed as a percentage of revenue. In SaaS, COGS primarily includes cloud infrastructure costs, customer support, and professional services. High gross margins are the foundation of SaaS unit economics — they determine how much revenue flows down to fund sales, marketing, R&D, and ultimately profit.

Formula

Gross Margin = (Revenue − COGS) ÷ Revenue × 100

Worked Example

A company with $100M revenue and $15M in cloud and support costs has an $85M gross profit and an 85% gross margin. A company with $50M revenue and $20M in COGS has a 60% gross margin — typical of infrastructure-heavy SaaS with large telco or compute pass-throughs.

What Good Looks Like

Thresholds derived from live data across 159 public SaaS companies tracked on SaaSDB.

World-class≥ 80%
Good70–80%
Average55–70%
Below average< 55%
Median (all SaaS): 74.7%Top quartile: 80.2%Bottom quartile: 64.0%
RankCompanyGross Margin
#1Block, Inc.(SQ)324.4%
#2VARONIS SYSTEMS INC(VRNS)181.9%
#3i3 Verticals, Inc.(IIIV)149.7%
#4OOMA INC(OOMA)140.1%
#5Weave Communications, Inc.(WEAV)101.1%
· · ·
#155Applied Digital Corp.(APLD)1.0%
#156AUTOMATIC DATA PROCESSING INC(ADP)6.0%
#157BigBear.ai Holdings, Inc.(BBAI-WT)25.7%
#158BigBear.ai Holdings, Inc.(BBAI)25.7%
#159Toast, Inc.(TOST)26.3%

Advertisement

Frequently Asked Questions

What is a good gross margin for SaaS?

Pure-play software SaaS companies typically target 70–85% gross margins. Infrastructure SaaS with significant compute or telco pass-throughs (like CPaaS companies) often run 45–65%. Payments or fintech components further compress blended margins.

Why does gross margin matter so much for SaaS?

Gross margin is the ceiling on operating leverage. A company at 80% gross margin has $80 of every $100 in revenue to invest in growth and eventually convert to profit. A 50% gross margin company starts with only $50 — a structural handicap that compounds over time.

How does NRR affect the value of gross margin?

High NRR amplifies the value of gross margin. If a company retains 120% of ARR annually with 80% gross margins, the incremental revenue from expansion costs almost nothing to serve — producing high-quality incremental margin.

Related reading

Full Gross Margin Rankings →DevTools & Observability Sector →Security Sector →← All Metrics
AH
Author

Ara Housepian

Founder & Lead SaaS Analyst, Araho Digital

Ara is the founder of Araho Digital and SaaSDB. He has spent over a decade in software development, SaaS operating metrics modeling, and investment data analysis. Ara holds a degree in Computer Science and focuses on building financial tooling and data pipelines that make institutional-grade SaaS benchmarking accessible to growth operators.

languageWebsite|mailContact|verifiedVerified Expert

format_quoteCite This Data

Data sourced from SEC EDGAR filings · Updated daily · As of 2026-05-22

Plain text
SaaSDB (2026). Gross Margin: Definition, Formula & SaaS Benchmarks. Retrieved 2026-06-07 from https://saasdb.app/glossary/gross-margin-saas/
HTML
<a href="https://saasdb.app/glossary/gross-margin-saas/">Gross Margin: Definition, Formula & SaaS Benchmarks — SaaSDB</a>
Markdown
[Gross Margin: Definition, Formula & SaaS Benchmarks](https://saasdb.app/glossary/gross-margin-saas/)