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 × 100Worked 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.
Live Rankings
View full rankings →| Rank | Company | Gross Margin |
|---|---|---|
| #1 | Block, Inc.(SQ) | 324.4% |
| #2 | VARONIS SYSTEMS INC(VRNS) | 181.9% |
| #3 | i3 Verticals, Inc.(IIIV) | 149.7% |
| #4 | OOMA INC(OOMA) | 140.1% |
| #5 | Weave Communications, Inc.(WEAV) | 101.1% |
| · · · | ||
| #155 | Applied Digital Corp.(APLD) | 1.0% |
| #156 | AUTOMATIC DATA PROCESSING INC(ADP) | 6.0% |
| #157 | BigBear.ai Holdings, Inc.(BBAI-WT) | 25.7% |
| #158 | BigBear.ai Holdings, Inc.(BBAI) | 25.7% |
| #159 | Toast, 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
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.
format_quoteCite This Data
Data sourced from SEC EDGAR filings · Updated daily · As of 2026-05-22
SaaSDB (2026). Gross Margin: Definition, Formula & SaaS Benchmarks. Retrieved 2026-06-07 from https://saasdb.app/glossary/gross-margin-saas/<a href="https://saasdb.app/glossary/gross-margin-saas/">Gross Margin: Definition, Formula & SaaS Benchmarks — SaaSDB</a>[Gross Margin: Definition, Formula & SaaS Benchmarks](https://saasdb.app/glossary/gross-margin-saas/)