Skip to content
Unit Economics

Gross Margin Calculator

Gross margin = (Revenue - COGS) / Revenue. This tool decomposes revenue into COGS line items with a contribution donut, slides price/volume/COGS levers in real time, and benchmarks against Bessemer Cloud Index, OpenView, Shopify Plus, a16z, SPI Research, and KeyBanc data.

SaaS median GM
73%
DTC median GM
50%
Marketplace GM
78%
Fintech ceiling
82-90%

Quick Conversion

Formula: Markup = GM / (1 - GM)

Industry presets

OpenView 2024 SaaS Benchmarks: median GM 73%, top quartile 80%+. Hosting+support is roughly half of COGS; cloud-cost optimisation (FinOps) is the dominant lever.

Inputs

COGS line items
Cloud hosting (AWS/GCP)$9 (9.0%)
Customer support$8 (8.0%)
Third-party services$6 (6.0%)
Payment processing$4 (4.0%)
Live GM: 73.0% • Benchmark 73%

Contribution Donut

vs 73% benchmark: 0.0pp
Contribution donutGross margin 73.0% vs benchmark 73%. COGS lines colour-coded.Contribution73%$73 / $100
Cloud hosting (AWS/GCP)$9 (9.0%)
Customer support$8 (8.0%)
Third-party services$6 (6.0%)
Payment processing$4 (4.0%)
Contribution margin$73 (73.0%)

Industry Gross Margin Reference

IndustryBottom decileMedianTop quartileSource
B2B SaaS58%73%84%OpenView 2024
DTC E-commerce32%50%65%Shopify Plus 2025
Marketplace (take)62%78%88%a16z M100, 2025
Professional services28%42%52%SPI Research 2025
Vertical fintech45%82%91%KeyBanc 2025
Hardware (CPG)22%38%48%Crunchbase 2024
Streaming media40%55%65%Public filings 2024

Formula Card

Gross Margin% = (Revenue - COGS) / Revenue × 100Contribution per unit = Price - sum(variable COGS lines)Markup% = COGS / (Revenue - COGS) × 100Sensitivity: ΔGM = -ΔCOGS_line / Revenue × 100Annual Contribution = (Revenue - COGS) × Volume

Worked: $100 revenue with COGS $9 hosting + $8 support + $6 third-party + $4 payment = $27 total COGS. GM = (100 - 27) / 100 = 73% - exactly the OpenView 2024 SaaS median. A 20% cut to hosting ($9 → $7.20) lifts GM by 1.8pp to 74.8%.

Saved snapshots

No snapshots yet.

How to read the donut

  1. Pick an industry preset closest to your business - SaaS, DTC, marketplace, services, or fintech.
  2. Set unit revenue (price) and annual volume.
  3. Slide each COGS line item. Watch the donut and live GM percentage shift in real time.
  4. Compare your GM to the industry benchmark (top of the screen) - the delta tells you whether the room is in pricing or in COGS.
  5. Press Lock margin to surface result insights; save snapshot to compare scenarios.

A Brief History of Gross Margin

In 2026, a Series B SaaS CFO sits down for a quarterly margin review and needs to decompose revenue into the COGS line items that actually drive margin. Gross margin as a metric goes back to mediaeval merchant accounting (Pacioli's 1494 'Summa de Arithmetica' codified double-entry bookkeeping). Modern SaaS COGS conventions were formalised by Bessemer's State of the Cloud reports (Byron Deeter, 2014-present) and OpenView's annual SaaS Benchmarks (Kyle Poyar, 2018-present), establishing the four canonical COGS buckets: hosting, support, third-party APIs, payment.

Bessemer Cloud Index Q4 2025 reports the median gross margin across the 70+ public SaaS index at 73%, with top-decile companies at 84-89%. The dispersion is driven primarily by hosting efficiency (cloud-architecture cost per request) and support automation (tickets per active user). Gross margin is the ceiling on operating leverage - a 50% GM business cannot scale to a 30% FCF margin without breaking the GM constraint.

DTC e-commerce gross margin follows a very different cost structure. Shopify Plus 2025 benchmarks (Loren Padelford) report median GM 45-55% across the platform's largest 5,000 stores. Product cost (32-38% of revenue) dominates. Returns (4-15% of revenue depending on category), shipping subsidies (8-15%), and payment processing (3%) round out the COGS picture. Top-quartile brands hit 60-70% via vertical sourcing and category selection.

Marketplace economics are unique because the marketplace prices as take rate (a percentage of gross merchandise volume). a16z's Marketplace 100 (2024 update) reports healthy take rates of 12-18%, with gross margin on the take rate of 70-85%. Payment processing (3-4% of GMV = ~25-30% of take) is the dominant COGS line; trust and safety operations scale with volume but compress at scale.

Professional services GM is dominated by billable labour. SPI Research's 2025 benchmark report (Dave Hofferberth, founder) puts services blended GM at 38-44%. Utilisation - the percentage of billable hours actually charged to clients - is the swing variable: every 5pp utilisation lift adds ~3pp to GM. Top consulting firms (Bain, McKinsey, BCG) hit 50%+ GM via premium pricing and utilisation discipline.

Vertical fintech is the highest-GM category in the tool, but the path to high margin is steep. Early-stage vertical fintechs carry GM under 50% because KYC and fraud operations are manually intensive. Once payment volume scales past $100M/year, interchange leverage and automated KYC/fraud kick in, taking GM to 80-90%. KeyBanc Capital Markets 2025 SaaS Survey (Devin Au, Brent Bracelin) tracks this trajectory across 100+ public and private fintech leaders.

The tool here uses live sliders for price, volume, and each COGS line item, so the donut and margin number respond in real time. Sensitivity analysis - the discipline of varying one input at a time to find the highest-leverage lever - was formalised by Robert Anthony at Harvard Business School in the 1950s and popularised in modern finance via Excel sensitivity tables and Monte Carlo tools (Crystal Ball, Vose ModelRisk). The donut is the visual entry point; the numbers below tell the full story.

Gross Margin Calculator — FAQ

Have more questions? Contact us

Trusted by FinOps leads, founders, and FP&A teams

4.9
Based on 5,360 reviews

The cloud-hosting slider showed a 7pp GM lift from cutting AWS spend 25%. Took it to the engineering review and built a FinOps backlog. Closed 9pp by Q2.

P
Priya Subramanian
Head of FinOps, B2B SaaS
April 12, 2026

Returns line of the donut was hiding the truth - we were running 28% returns on one SKU. Tightened sizing chart and product photography; returns dropped to 14%, GM up 6pp.

A
Aslan Mendoza
DTC Founder (cookware brand)
March 25, 2026

Used the OpenView preset against our actual numbers in the board pre-read. Surfaced that our third-party APIs were eating 11% of revenue, way above the 6% median. Renegotiated, recovered 5pp.

N
Ngozi Adichie
CFO, Mid-Market SaaS
April 8, 2026

Fintech preset matched KeyBanc almost exactly. The interchange slider helped us model the fee renegotiation we were planning - watched the margin shift live in front of the bank.

Y
Yusuke Kawamoto
Vertical Fintech RevOps Lead
April 28, 2026

Love using our calculator?

Related business-metrics tools

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Gross Margin Calculator

Loading articles...