Gross Margin
Also known as: Gross Profit MarginGPMGross Margin PercentageContribution MarginProduct Margin
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
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.
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.
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
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.
Peloton
2020-2022
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.
Industry Benchmarks
Gross Margin %
B2B SaaS companiesElite
> 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
The global gold standard for investment analysis and portfolio management fundamentals.
$1,200–$2,400 (exam + study materials)
via Coursera
The standard license for accountants covering audit, tax, regulation, and financial reporting.
$2,000–$4,000 (review courses + exam fees)
via Coursera
Covers marketing, finance, operations, and accounting from the Wharton School — the business fundamentals MBA foundation.
$49/month (Coursera subscription)
via Coursera
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 →
Add the feature AND raise prices by $15/month to more than offset the $3 COGS — the AI feature justifies the increaseClick →
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 →