Home/Finance/Gross Margin
Finance
beginner📖 5 min read

Gross Margin

Also known as: Gross Profit MarginGPMGross Margin PercentageContribution MarginProduct Margin

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

The Concept

Gross margin is the percentage of revenue left after subtracting the direct costs of delivering your product (Cost of Goods Sold / COGS). For SaaS, COGS includes hosting, customer support, and payment processing — typically leaving 70-85% gross margins. For e-commerce, COGS includes product costs, shipping, and packaging — typically 30-50% margins. Gross margin determines how much money you have to invest in growth (sales, marketing, R&D). A SaaS company with 80% gross margins has $0.80 per revenue dollar for growth; a hardware company with 30% margins has only $0.30.

Real-World Example

Atlassian achieves 83% gross margins on $3.5B+ revenue with zero traditional sales team. Their entire go-to-market is self-serve: developers find Jira or Confluence through word of mouth, sign up online, and pay with a credit card. By eliminating the most expensive COGS line item (sales-assisted onboarding and support), they keep margins 10-15 points above the SaaS median. Their support is primarily community forums and documentation.

⚠️

The Trap

The trap is miscategorizing expenses to inflate gross margin. Some companies exclude customer success, onboarding, or infrastructure costs from COGS to make gross margins look SaaS-like (75%+) when they're really services businesses (50-60%). VCs see through this immediately. If your 'SaaS' has 55% gross margins, you're not a SaaS company — you're a services company with a software wrapper. The valuation difference is 3-5x.

🎯

The Action

Calculate gross margin honestly: include ALL costs directly related to delivering your product to one more customer. For SaaS: hosting/infrastructure, payment processing, customer support, DevOps. Formula: Gross Margin = (Revenue − COGS) ÷ Revenue × 100. Target: 70%+ for SaaS, 50%+ for marketplace, 30%+ for e-commerce. Track monthly and investigate any decline — it usually means infrastructure costs are scaling faster than revenue.

Pro Tips

1

SaaS gross margins should INCREASE with scale because infrastructure costs have economies of scale — hosting 1,000 users doesn't cost 10x hosting 100 users. If your margins are flat or declining as you grow, investigate your infrastructure cost structure.

2

Gross margin is the single best predictor of a SaaS company's valuation multiple. Companies with 80%+ margins trade at 15-20x revenue; companies with 60% margins trade at 6-8x. Each percentage point matters.

3

Customer support is a hidden margin killer. If support costs scale linearly with customers (1 ticket per customer per month), you have a gross margin problem. Invest in self-serve support, documentation, and in-app help to bend the cost curve.

🚫

Common Myths

High gross margins mean the company is profitable

Gross margin only covers direct costs. A SaaS company with 85% gross margins but spending 120% of revenue on sales and marketing is still losing money. Gross margin is a necessary but not sufficient condition for profitability.

All SaaS companies should have 80%+ gross margins

Infrastructure-heavy SaaS (video streaming, cloud storage, AI/ML) can have 50-65% margins and still be excellent businesses. Snowflake's gross margins are ~67% because compute costs are real. Context matters — compare within your category.

📊

Real-World Case Studies

🔵

Atlassian

2015-2023

success

Atlassian maintained 83%+ gross margins while scaling to $3.5B revenue by running a no-sales-team model. All customer acquisition happens through product-led growth — developers discover Jira through peers, sign up free, and upgrade when ready. Customer support is handled through community forums and self-serve documentation, not expensive enterprise support teams.

Gross Margin

83%

Revenue (2023)

$3.53B

Sales Team Size

0 (self-serve)

Active Users

250K+ orgs

💡 Lesson: Product-led growth isn't just a distribution strategy — it's a gross margin strategy. Eliminating sales-assisted onboarding and premium support from COGS dramatically improves unit economics.

Source →
🚴

Peloton

2020-2022

failure

Peloton's Connected Fitness hardware had 25-35% gross margins (typical for hardware), while their digital subscription had 60%+ margins. During the COVID boom, they over-invested in hardware production and logistics. Post-COVID, hardware demand collapsed but fixed manufacturing costs remained, pushing gross margins negative on hardware. They were stuck with $1B+ in unsold inventory.

Hardware Gross Margin (Peak)

35%

Hardware Gross Margin (Trough)

-17%

Subscription Gross Margin

67%

Unsold Inventory

$1B+

💡 Lesson: Mixing high-margin recurring revenue with low-margin hardware creates a blended number that hides the truth. Track gross margin by product line, not just in aggregate.

Source →
📈

Industry Benchmarks

Gross Margin %

B2B SaaS companies

Elite

> 85%

Good

75-85%

Average

65-75%

Below Average

50-65%

Not SaaS

< 50%

Source: KeyBanc Capital Markets 2024 SaaS Survey

🛠️

Recommended Tools

🎓

Go Deeper: Certifications

🎮

Decision Scenario: The AI Cost Squeeze

Your SaaS company has 78% gross margins on $400K MRR. You want to add an AI-powered feature using GPT-4 API calls. The feature costs $3 per user per month in API usage. You have 2,000 users paying $200/month average.

MRR

$400K

Gross Margin

78%

COGS

$88K/month

Users

2,000

ARPU

$200/month

Decision 1

Adding the AI feature would increase COGS by $6K/month ($3 × 2,000 users). Your gross margin would drop from 78% to 76.5%. The product team estimates the feature could reduce churn by 20% (from 3.5% to 2.8% monthly).

Don't add the feature — you can't afford to lose 1.5 percentage points of gross marginClick →
You preserve 78% margins but miss a competitive advantage. A competitor adds AI features and starts winning deals. Within 3 months, your churn increases from 3.5% to 4.5% as customers leave for AI-enabled alternatives. The churn increase costs $18K MRR/month — 3x more than the AI feature would have cost.
Gross Margin: 78% (preserved)Monthly Churn Loss: $14K → $18K
Add the feature AND raise prices by $15/month to more than offset the $3 COGS — the AI feature justifies the increaseClick →
Brilliant. The $15 price increase on 2,000 users adds $30K MRR while AI costs are only $6K. Net impact: +$24K MRR AND gross margin actually improves to 79.2%. Plus, the churn reduction from 3.5% to 2.8% saves $2.8K MRR per month. Three wins in one move.
Gross Margin: 78% → 79.2%MRR: $400K → $430K
🧪

Knowledge Check

Challenge coming soon for this concept.

Related Concepts

Turn knowledge into action

Try our free calculators to apply these concepts with your own numbers.

Try the Calculators →