Profit Intelligence

Gross Margin

2026-04-12 7 min read Profit Intelligence
Gross Margin — Revenue minus cost of goods sold (COGS), expressed as a percentage of revenue. Gross margin measures how much of every dollar earned remains after the direct costs of delivering the product or service. It is the foundational profitability metric — the starting point before operating expenses, marketing costs, and overhead are considered.
TL;DR: Gross margin tells you how much profit you keep from each dollar of revenue after direct costs. Healthy SaaS companies target 70-85% gross margin. E-commerce and D2C brands typically run 40-65%. Below these ranges, the business model itself may not be sustainable (SaaStr, 2025).

What is gross margin?

Gross margin (also called gross profit margin or gross profit percentage) is the percentage of revenue remaining after subtracting the direct costs of producing or delivering your product. It answers the most basic profitability question: for every dollar of revenue, how many cents do you keep before operating expenses?

Gross margin is the first filter for business viability. A company with 80% gross margin has $0.80 of every revenue dollar available for sales, marketing, R&D, and general operations. A company with 30% gross margin has only $0.30 — which means it needs dramatically higher revenue volume to cover the same operating costs.

For B2B SaaS companies, gross margin is expected to be 70-85% because the incremental cost of serving one more customer is low (hosting, support, infrastructure). For e-commerce and D2C brands, gross margin runs 40-65% because physical goods carry manufacturing, shipping, and fulfillment costs. Below these ranges, investors and operators question whether the underlying business model works.

Gross margin is different from contribution margin. Gross margin subtracts only COGS. Contribution margin subtracts all variable costs including marketing spend, sales commissions, and variable fulfillment. Gross margin is broader; contribution margin is more granular and more useful for channel-level decisions.

Why gross margin matters for operators

Gross margin sets the ceiling on everything else. Every dollar of operating expense — salaries, marketing, rent, tools — comes out of gross profit. If gross margin is 75%, a company with $10M revenue has $7.5M to fund operations. If gross margin is 45%, the same revenue leaves only $4.5M.

The constraint becomes acute during growth. A SaaS company scaling from $5M to $15M ARR with 80% gross margin can afford aggressive sales hiring and marketing spend. The same growth at 55% gross margin forces painful tradeoffs — every marketing dollar competes directly with product investment.

Operators often discover gross margin problems when they segment the metric. Company-wide gross margin might look healthy at 72%. But when calculated by product line, one product runs at 85% and another at 45%. The blended number hides a product that's barely covering its costs. Fairview's Margin Intelligence surfaces these gaps automatically.

Gross margin formula

Gross Margin (%) = (Revenue - COGS) / Revenue x 100

Example:
- Revenue: $850,000
- COGS: $195,000

Gross Margin = ($850,000 - $195,000) / $850,000 x 100
Gross Margin = $655,000 / $850,000 x 100
Gross Margin = 77.1%

What counts as COGS for different business types:

Business typeTypical COGS items
SaaSHosting/infrastructure, customer support salaries, third-party API costs, data costs
E-commerce / D2CRaw materials, manufacturing, packaging, shipping, fulfillment labor
ServicesDirect labor costs, contractor fees, project-specific tools
MarketplacePayment processing, seller payouts, infrastructure costs

What does NOT count as COGS: Sales and marketing expenses, general admin, R&D salaries, rent, software tools (unless directly tied to product delivery).

Gross margin benchmarks by industry

IndustryGoodAverageBelow averageAction if below benchmark
B2B SaaS75-85%65-75%<65%Review hosting costs, support headcount, third-party API fees
D2C / E-commerce55-65%40-55%<40%Renegotiate supplier pricing, optimize fulfillment
Fintech SaaS65-80%55-65%<55%Evaluate payment processing and compliance costs
Professional services50-65%35-50%<35%Improve utilization rates, reduce contractor dependency
Marketplace60-75%45-60%<45%Review take rate and payment processing margins

Sources: SaaStr 2025 Benchmark Report, Bessemer Cloud Index 2025, NYU Stern Industry Margins Database 2025.

Common mistakes when calculating gross margin

1. Misclassifying operating expenses as COGS

Sales salaries, marketing spend, and R&D costs are operating expenses — not COGS. Including them in COGS deflates gross margin and makes the business model look worse than it is. COGS should only include costs directly tied to delivering the product.

2. Excluding infrastructure costs from SaaS COGS

Cloud hosting (AWS, GCP, Azure), third-party APIs, and customer support salaries are legitimate COGS for SaaS companies. Excluding them inflates gross margin and gives a false picture of unit economics. If the cost scales with each additional customer, it's probably COGS.

3. Using company-wide gross margin for channel-level decisions

A 72% blended gross margin is useless for deciding which product to invest in or which channel to scale. Calculate gross margin by product line, by customer segment, and by channel. The variance is almost always larger than operators expect.

4. Ignoring gross margin trends over time

A single quarter's gross margin is a snapshot. The trend over 4-6 quarters tells the real story. Declining gross margin while revenue grows often signals that the company is acquiring lower-quality revenue — customers with higher support costs, more refunds, or deeper discounting.

5. Treating gross margin as fixed

Gross margin changes as the product and customer mix shift. A SaaS company adding a professional services offering will see blended gross margin decline. An e-commerce brand launching a premium product line may see it improve. Review the composition, not just the number.

How Fairview tracks gross margin automatically

Fairview's Margin Intelligence connects your revenue data (Stripe, Shopify) with your cost data (QuickBooks, Xero) to calculate gross margin automatically — broken down by product line, customer segment, and channel.

Instead of waiting for the monthly P&L to see margin, you see it in real time. The Operating Dashboard flags when gross margin drops below configured thresholds, and the Next-Best Action Engine recommends where to investigate: "Gross margin on Product Line B dropped from 68% to 52% this month. COGS increased 34% — review supplier pricing."

See how Margin Intelligence works

Gross margin vs contribution margin

Gross MarginContribution Margin
What it subtractsCOGS onlyAll variable costs (COGS + marketing + sales + fulfillment)
What it showsProduct delivery profitabilityTrue unit profitability after all variable costs
Can it be negative?Rarely — signals fundamental pricing problemYes — common for heavily marketed channels
Best forProduct economics, investor reportingChannel decisions, marketing budget allocation
GranularityProduct line, company levelChannel, campaign, SKU, customer segment

Contribution margin is the more actionable metric for daily decisions. Gross margin is the baseline that proves the business model works. Track both.

FAQ

What is gross margin in simple terms?

Gross margin is the percentage of revenue left after you subtract the direct costs of making or delivering your product. If you sell $100 worth of product and it costs $25 to produce, your gross margin is 75%. It tells you how profitable the product itself is — before marketing, salaries, and overhead.

What is a good gross margin for SaaS?

B2B SaaS companies should target 70-85% gross margin. Below 65% raises questions about the business model. High gross margin in SaaS reflects low incremental costs per customer — hosting and support scale efficiently. Companies below benchmark should review cloud infrastructure costs and support headcount ratios.

How is gross margin different from net margin?

Gross margin subtracts only COGS (direct product costs). Net margin subtracts everything: COGS, operating expenses, marketing, salaries, taxes, and interest. A SaaS company with 80% gross margin might have 10-15% net margin after all expenses. Gross margin shows product profitability. Net margin shows company profitability.

Why does gross margin decline as companies grow?

Three common causes: adding lower-margin products or services (blended margin drops), scaling customer support faster than revenue (support costs are COGS in SaaS), and offering deeper discounts to win enterprise deals (revenue per customer drops while costs stay constant). Segment the metric to find the cause.

How often should you track gross margin?

Monthly for company-wide and product-level gross margin. Weekly if you're actively investigating a margin decline or evaluating a new product launch. Quarterly for strategic reviews of margin trends over time. The trend over 4-6 quarters matters more than any single month.

Can gross margin be too high?

In theory, yes — extremely high gross margin (90%+) might indicate underinvestment in customer support or product infrastructure. In practice, high gross margin is almost always good. It means more of every dollar is available for growth investment. The question is what you do with it.

Related terms

  • Contribution Margin — Revenue minus all variable costs; more granular than gross margin
  • COGS (Cost of Goods Sold) — Direct costs of producing or delivering products sold
  • EBITDA — Earnings before interest, taxes, depreciation, and amortization
  • Gross Profit — Revenue minus COGS in absolute dollar terms (vs. gross margin as a percentage)
  • Profit Intelligence — The ability to identify which customers, channels, and products are most and least profitable

Fairview is an operating intelligence platform that tracks gross margin by product, channel, and customer segment automatically. Start your free trial →

Siddharth Gangal is the founder of Fairview. He built Margin Intelligence after watching operators rely on quarterly P&L reports that arrived 30 days too late for the decisions they needed to make.

Ready to see your data clearly?

Stop reporting on last week.
Start acting on this week.

10 minutes to connect. No SQL. No engineering team. Your first dashboard is built automatically.

See your data in Fairview Start 14-day free trial

No credit card required · Cancel anytime · Setup in under 10 minutes