← Back to articles

Gross Margin in SaaS: Why Unit Economics at Scale Matter

Key Takeaways

Understand SaaS gross margin, how it impacts unit economics and profitability, why margins matter more than revenue, and how to improve gross margin at scale.

Financial margins and profitability analysis on dashboard

Gross margin in SaaS is deceptively simple—it's revenue minus the cost of goods sold, divided by revenue. Yet this single metric has profound implications for whether a SaaS company can ever reach profitability, how much capital it will consume reaching scale, and whether the business model is fundamentally viable.

Many founders focus on revenue and growth rate, treating gross margin as a given. This is a critical mistake. Gross margin determines the profit pool available for S&M, product development, and overhead. Companies with 70% margins have dramatically different paths to profitability than companies with 50% margins, even with identical growth rates.

Calculating Gross Margin for SaaS

Gross Margin = (Revenue - Cost of Goods Sold) / Revenue × 100

For SaaS, COGS typically includes: - Cloud hosting and infrastructure costs (AWS, GCP, Azure) - Payment processing fees - Third-party software integrations or APIs - Customer success and onboarding (often debated—some allocate to overhead) - Depreciation of servers/infrastructure What's NOT included in COGS: - Sales and marketing - Product engineering - General overhead Example calculation: - Monthly revenue: $100,000 - Cloud hosting cost: $12,000 - Payment processing: $2,000 - Third-party APIs: $1,000 - Total COGS: $15,000 - Gross profit: $85,000 - Gross margin: 85% This is a healthy SaaS gross margin. Most SaaS companies operate between 70-90% gross margin, with lower end being more infrastructure-heavy and higher end being more virtual services.

Why Gross Margin Matters More Than Revenue

Two companies with same revenue can have very different profitability based on gross margin: Company A: $5M revenue, 75% margin = $3.75M gross profit Company B: $5M revenue, 60% margin = $3M gross profit Company B is losing $750K per year in gross profit that Company A retains. This difference compounds: - At $10M revenue: Company A generates $7.5M gross profit, Company B generates $6M - At $20M revenue: Company A generates $15M, Company B generates $12M By the time each reaches $100M revenue, Company A has generated $75M in cumulative gross profit while Company B has generated $60M. This $15M difference is capital that A can invest in product, team, or growth while B is capital-constrained.

Gross Margin and Scaling: The Critical Relationship

Most SaaS companies experience one of three margin trajectories as they scale: Scenario 1: Improving margin (most common for efficient SaaS) - Year 1: 60% margin (early customer success costs, overhead not yet distributed) - Year 2: 72% margin (overhead distributed across larger revenue base) - Year 3: 78% margin (economy of scale, better infrastructure efficiency) Scenario 2: Stable margin - Margin stays constant as company scales (25-50 employees scaling to 100+ employees) - Typically occurs when company has poor cost management Scenario 3: Declining margin (concerning) - Margin declines as company scales (hosting costs rising faster than revenue) - Indicates either: (1) inefficient infrastructure, (2) product design flaws requiring excessive compute, (3) poor vendor negotiations The best SaaS companies have scenario 1—margins improve with scale as overhead is distributed and infrastructure efficiency improves.

Gross Margin Benchmarks by SaaS Category

Healthy gross margin varies by business model: Horizontal SaaS (e.g., project management): 80-90% typical - Low compute requirements, largely standardized product, high volume Vertical SaaS (e.g., industry-specific): 75-85% typical - More specialized, potentially higher support costs Infrastructure/platform SaaS (e.g., payment processing): 60-75% typical - High compute or transaction costs, third-party dependency Managed services SaaS: 40-60% typical - High professional services component, human-intensive delivery Below 60% gross margin becomes concerning for venture-backed SaaS. Below 50% suggests the business model might be fundamentally unprofitable at scale. Above 90% is excellent but potentially indicates pricing power that could be optimized.

COGS Components: Where to Focus for Margin Improvement

Cloud hosting is often 20-30% of COGS. This is the most common area for margin improvement: Optimization tactics: - Right-size infrastructure (eliminate over-provisioning) - Optimize database queries (reduce compute requirements) - Implement caching and CDN (reduce redundant queries) - Negotiate volume discounts with cloud providers (10-20% savings possible) - Migrate to more efficient infrastructure tier or provider Payment processing is typically 2-3% of revenue (1.5% payment fee + 0.5-1% payment support). Margins here are limited, but: - Negotiate processor rates (volumes >$50M ARR can negotiate better rates) - Implement efficient payment recovery (reduce failed payment costs) Third-party APIs/integrations: Often 5-15% of COGS depending on reliance - Reduce API call volume through optimization - Build internal solutions for heavily-used APIs - Negotiate volume discounts with providers - Migrate to providers with better pricing at scale

The COGS Illusion: Allocated vs. Direct Costs

Some founders understate COGS by excluding costs they should include: Mistake 1: Not including customer success onboarding in COGS - Correct approach: Include first 30-60 days of CS in COGS (per-customer delivery cost) - Incorrect approach: Allocate all CS to overhead Mistake 2: Not allocating infrastructure overhead to COGS - Servers, storage, database licenses: allocate to COGS - Office space for engineers: allocate to R&D/overhead, not COGS Mistake 3: Not including customer support and help desk - Most SaaS includes support in COGS, though some allocate to overhead - Be consistent in methodology Be honest about what's truly COGS vs. overhead. A 75% margin that's actually 60% after honest allocation is not fundamentally different from other SaaS—it just changes your profitability timeline.

Gross Margin and Pricing Strategy

Gross margin is directly impacted by pricing: Increasing price by 20% with same COGS improves margin 2-3 percentage points. Many SaaS companies underprice relative to value delivered, leaving margin on the table. However, there's a tradeoff: Higher prices might reduce conversion rate, volume, or LTV if customer churn increases from price sensitivity. For improving margin through pricing: 1. Analyze price elasticity (how much does demand drop with price increase?) 2. Test price increases with new customer cohorts 3. Implement value-based pricing (price based on value delivered, not cost) 4. Use tiered pricing to align price with usage and value 5. Adjust pricing more frequently (many SaaS companies raise prices annually) A company that could improve margin from 70% to 75% through 10% price increase but loses 5% customer volume has net-positive margin improvement (revenue: -5%, COGS: -5%, margin percentage: +5%).

Gross Margin as Predictor of Profitability

Gross margin strongly correlates with path to profitability. A company with 80% margin can potentially reach profitability at 10x revenue. A company with 50% margin might never reach profitability at any scale if overhead is proportional to revenue.

Rule of thumb: Operating margin at scale is approximately (Gross Margin - % of Revenue Spent on S&M - % of Revenue Spent on R&D - % of Revenue Spent on G&A) Company with 80% gross margin: - S&M: 30% of revenue - R&D: 20% of revenue - G&A: 10% of revenue - Operating margin: 80% - 30% - 20% - 10% = 20% Company with 50% gross margin: - S&M: 30% of revenue - R&D: 20% of revenue - G&A: 10% of revenue - Operating margin: 50% - 30% - 20% - 10% = -10% (unprofitable even at large scale) This mathematical relationship reveals why gross margin is so critical—it's the foundation upon which all profitability is built.

Gross Margin for Unit Economics

Gross margin enters directly into CAC payback calculation: CAC Payback (months) = CAC / (Monthly ARPU × Gross Margin %) If CAC is $1,000, monthly ARPU is $100, but gross margin is only 50%: - Contribution per month: $100 × 50% = $50 - CAC payback: $1,000 / $50 = 20 months If the same company improved gross margin to 75%: - Contribution per month: $100 × 75% = $75 - CAC payback: $1,000 / $75 = 13.3 months A 25-point margin improvement reduces payback period by 7 months, dramatically improving unit economics and reducing capital requirements to scale.

Monitoring Gross Margin Over Time

Track gross margin monthly and quarterly, watching for: Improving margin: Indicates infrastructure efficiency improving, good cost management Stable margin: Expected and acceptable if deliberate (investing in growth) Declining margin: Red flag indicating infrastructure problems, vendor cost increases, or product quality/scope creep Declining margin is particularly concerning if infrastructure costs are growing faster than revenue. This suggests either: - Technical debt requiring expensive computation - Poor product architecture - Customer mix shifting to more expensive to serve segments - Vendor cost increases not offset by optimization

Investigate margin declines immediately—they often indicate structural problems that only get worse at scale.

Communicating Gross Margin to Investors

Present gross margin with: 1. Current gross margin percentage 2. Gross margin trend over time (improving, stable, declining) 3. Breakdown of major COGS components 4. Benchmarking against peers and industry standards 5. Plan for margin improvement as company scales This demonstrates understanding of profitability fundamentals and realistic path to unit economics that works.

Key Takeaways

  • Gross margin = (Revenue - COGS) / Revenue; healthy SaaS is 70-90%
  • Gross margin is foundation of all profitability—determines profit pool for other expenses
  • Most scaling SaaS companies see margins improve as overhead is distributed across larger revenue base
  • Cloud hosting (20-30% of COGS) is primary lever for margin improvement
  • Be honest about COGS allocation; understatement delays realization of profitability problems
  • Price increases more effective than cost reduction for margin improvement (if elasticity allows)
  • Declining gross margin is red flag indicating infrastructure or product problems
  • Gross margin enters directly into CAC payback and unit economics calculations
  • Operating margin fundamentally limited by gross margin available
  • Target 75%+ gross margin for healthy SaaS unit economics at scale

FAQ: SaaS Gross Margin

Q: Should customer success and support be in COGS or overhead? A: Industry practice varies, but best practice is to allocate onboarding (first 30-60 days per customer) to COGS because it's per-customer cost. Ongoing support and health management can be allocated to overhead since those are more fixed. Be consistent and transparent about your allocation.

Q: If my gross margin is 55%, is my business doomed? A: Not necessarily, but you need dramatic proof of long-term profitability path. Venture investors will scrutinize heavily. You need either (1) margin improvement roadmap with clear timelines and execution, (2) very high LTV/CAC ratio that can sustain profitability despite lower margin, or (3) path to much higher pricing that improves margin. 55% is survivable but not ideal.

Q: How do I account for discounts given to customers in gross margin? A: Discounts reduce revenue, thus increasing the denominator in gross margin calculation. A 20% discount reduces reported revenue and thus reported gross margin. Some companies track "effective margin" after discounts separately. Be clear about whether your gross margin includes or excludes typical discounts.

Q: Can I have negative gross margin? A: Yes, if COGS exceed revenue. This indicates unsustainable unit economics—you're losing money on every customer. This is only acceptable very early-stage (seed) while proving product-market fit. By Series A, gross margin must be positive.

Q: What's the difference between gross margin and gross profit? A: Gross profit is the absolute dollar amount (Revenue - COGS). Gross margin is the percentage. Both matter—gross profit determines absolute capital available, gross margin percentage determines whether the model works at any scale. A company with $5M gross profit but 30% margin (implying $17M revenue) has less financial flexibility than a company with $5M gross profit at 75% margin (implying only $7M revenue).

Get the complete guide with all 16 chapters, exercises, and model templates.

Get Raise Ready - $9.99
YP
Yanni Papoutsi

VP Finance & Strategy. Author of Raise Ready. Has supported fundraising across multiple rounds backed by Creandum, Profounders, B2Ventures, and Boost Capital. Experience spanning UK, US, and Dubai markets.

The Raise Ready Weekly

Every Friday: the best startup finance insights. Fundraising, modeling, unit economics. No spam.