Gross Margin Trends in SaaS
Quick definition: Gross Margin is the percentage of revenue remaining after subtracting Cost of Goods Sold (COGS). In SaaS, typical gross margins range from 50% to 85%, depending on product architecture, customer segment, and scale. Rising gross margins over time signal operating leverage; declining margins are a warning sign.
Gross margin is the foundation of SaaS profitability. Once you subtract the cost to deliver the product—servers, bandwidth, payment processing, customer support, and other variable costs—what's left is gross profit. This is the capital available to fund R&D, sales and marketing, and operating expenses. The higher your gross margin, the more leverage you have to build a profitable company.
For growth investors, gross margin trends matter as much as the absolute number. A company that enters the market at 65% gross margin and maintains it as it scales is healthy. A company that starts at 75% and declines to 60% over three years is in trouble, even if absolute revenue is growing. The margin decline suggests either rising COGS per customer or pricing pressure—both are red flags.
Key Takeaways
- Gross Margin = (Revenue - COGS) / Revenue, expressed as a percentage
- SaaS gross margins typically range from 50% (low-end SMB products) to 85%+ (platform products with minimal COGS)
- Gross margins should expand as a company scales due to operating leverage on infrastructure and support costs
- Declining gross margins despite revenue growth signal rising unit costs, pricing pressure, or customer mix shift toward lower-margin segments
- Gross margin is a key component of Rule of 40: companies with higher margins can reach profitability faster
Calculating Gross Margin
The formula is simple:
Gross Margin % = (Revenue - COGS) / Revenue × 100%
In dollars:
Gross Profit = Revenue - COGS
For a SaaS company with $10 million annual revenue and $2 million in COGS, the gross margin is:
Gross Margin = ($10 million - $2 million) / $10 million = 80%
The challenge is defining COGS correctly. In SaaS, COGS typically includes:
- Cloud infrastructure costs (AWS, Google Cloud, etc.)
- Payment processing fees (Stripe, PayPal, etc.)
- Customer support and success (outsourced customer service, contractors)
- Content delivery and bandwidth
- Third-party tools and integrations
- Direct costs of delivering the product to the customer
What's NOT included in COGS (and is instead R&D, sales/marketing, or G&A):
- Product development and engineering (building new features)
- Sales and marketing (acquiring customers)
- General and administrative (finance, HR, legal)
- Stock-based compensation (usually)
The distinction matters. Some companies classify customer success as COGS (variable cost per customer), others as operating expense. Some include payment processing in COGS, others net it against revenue. The important thing is consistency: calculate the same way every period, and disclose your methodology.
Gross Margin by Product Type
Gross margin varies widely by product type:
Infrastructure and Platform: 85%–95% gross margin. Products like Amazon Web Services, Twilio, or Stripe have minimal COGS because they're built on commodity cloud infrastructure. The cost to serve a customer at 10x scale is similar to serving them at 1x scale.
High-Scale, Low-Support: 70%–85%. Products like Slack, Figma, or Notion have moderate COGS dominated by cloud infrastructure. Customer support is relatively low-touch due to self-service product design.
Mid-Market SaaS: 60%–75%. Products like HubSpot or Atlassian have higher support costs (account managers, professional services) and more customization. COGS includes both infrastructure and people.
Low-End, High-Support: 40%–60%. SMB-focused products with high touch support, or products with expensive COGS components (like video processing or data services). Margins are compressed due to the high cost to serve.
A company's gross margin is largely determined at product inception: the architecture, customer segment, and go-to-market model lock in margin potential. A company built for SMB with high-touch support will never achieve enterprise platform gross margins, no matter how well-run it is.
Rising vs. Declining Margins
The direction of gross margin trends is often more important than absolute gross margin. Here's why:
Rising Gross Margins: Usually signal operating leverage. As the company grows, infrastructure costs per customer fall (spreading fixed costs across more customers), support costs become more efficient (support team handles more customers), and customer mix shifts toward higher-margin segments. Rising margins are a green light.
Example: A company starts at 60% gross margin with $5 million revenue. Over three years, it scales to $50 million revenue and achieves 72% gross margin. The absolute margin expanded because:
- Cloud infrastructure costs per unit fell 30% due to volume discounts
- Support costs per customer fell 40% due to better automation and self-service
- Customer mix shifted from 20% enterprise to 50% enterprise (higher-margin segment)
Declining Gross Margins: Usually signal trouble. Common causes include:
- Rising support costs (hiring more support staff per customer)
- Rising COGS per customer (more expensive infrastructure, more customization)
- Customer mix shift toward lower-margin segments (replacing SMB customers with even lower-end SMB)
- Pricing pressure (competition forcing price cuts)
- Competitive response (building new features that require expensive infrastructure)
Example: A company maintains 60% gross margin at $5 million revenue. Over three years, it scales to $50 million revenue but gross margin falls to 55%. The margin compressed because:
- Customer support headcount grew faster than customer base (60 support staff for 10x customer growth)
- Enterprise customers demanded more customization and implementation services
- Price competition from new entrants forced price cuts from $200/user/month to $180/user/month
Declining margins are a major red flag, even if growth is strong. They signal that the business model is not scaling as expected.
Gross Margin and Operating Leverage
Gross margin is the foundation for operating leverage—the ability to grow revenue while controlling costs. Here's why it matters:
A company with 80% gross margin has $80 to spend on R&D, sales/marketing, and G&A for every $100 of revenue. If it can grow revenue 30% while holding R&D, sales/marketing, and G&A flat, operating margin improves from 20% to 26% (because the $80 gross profit now represents 26% of the higher revenue base).
A company with 55% gross margin has only $55 to spend on R&D, sales/marketing, and G&A. Even if it achieves 30% revenue growth with flat overhead, operating margin improves less because the base is smaller.
In other words, high gross margin is the prerequisite for reaching the Rule of 40. A company with 50% gross margin and 40% growth could theoretically reach Rule of 40 (40 + some operating margin). A company with 70% gross margin and 40% growth has much more room to reach Rule of 40 because operating leverage kicks in faster.
Gross Margin by Customer Segment
Like other SaaS metrics, gross margin should be analyzed by customer segment:
Enterprise: Often 70%–80% gross margin. Enterprise customers are self-service or require limited customization. Customer success is handled by a few high-touch account managers, spreading cost over large contract values.
Mid-market: Often 60%–75%. Mid-market customers require some customization and implementation support, raising COGS.
SMB: Often 45%–65%. SMB customers have lower contract values, so per-customer support costs are higher relative to revenue. Self-service is critical to achieving profitability.
A company might report overall 65% gross margin but break down to 78% enterprise, 65% mid-market, 48% SMB. This reveals which segments are truly profitable and which are subsidized.
Gross Margin and the Rule of 40
Gross margin directly enables Rule of 40 achievement. A company with 70% gross margin can spend 30% on operating expenses and still break even. A company with 50% gross margin needs to reach higher revenue growth to offset lower margins.
Example:
- Company A: 70% gross margin, 30% growth, 0% operating margin = 30 Rule of 40 score (below threshold)
- Company B: 50% gross margin, 40% growth, 0% operating margin = 40 Rule of 40 score (on threshold)
Both are growing, but Company A has structural advantages (higher margin) that should drive it above 40. If Company A is not above 40, it's mismanaging costs.
Tracking Gross Margin Trends
Professional investors track gross margin quarterly and annually to spot trends:
- Q1 2024: 68% gross margin
- Q2 2024: 69% gross margin
- Q3 2024: 70% gross margin
- Q4 2024: 71% gross margin
A rising trend quarter-over-quarter is a green light. A flat trend suggests the company has hit an equilibrium. A declining trend is a red flag.
Some companies also track "Magic Margin" (operating margin) separately from gross margin to understand whether the company is controlling operating expenses:
- Gross Margin: Revenue minus direct COGS
- Operating Margin: Revenue minus all operating expenses
A company with stable gross margin but declining operating margin is spending more on R&D, sales/marketing, or G&A—which might be a conscious investment choice or a sign of cost control issues.
Gross Margin and Pricing
Gross margin is affected by pricing strategy. A company that cuts prices to win customers will see gross margin decline (lower revenue per customer) even if COGS stays constant. A company that raises prices will see gross margin rise (before considering elasticity effects, which might reduce customer count).
Successful SaaS companies often improve gross margin over time through:
- Pricing increases: Raising list prices or moving existing customers to higher tiers (if customer mix allows)
- Cost reduction: Optimizing infrastructure, automating support, outsourcing low-value work
- Product mix shift: Moving customers from low-margin to high-margin products
- Scale efficiency: Spreading fixed costs over more customers
Gross Margin Compression Risk
A company should be alert to gross margin compression—a steady decline in margin despite growth. Common causes:
- Customer mix shift: Moving downmarket into SMB (lower margins) as enterprise market saturates
- Churn in high-margin segments: Enterprise customers leave, replaced by lower-margin SMB
- Pricing pressure: New competitors force price cuts
- Feature creep: Adding features that require expensive infrastructure
- Support inflation: Hiring support staff faster than customer acquisition
Any of these is a structural issue that pricing increases alone won't fix. Addressing margin compression requires operational changes: product optimization, process automation, customer education to reduce support burden, or repositioning toward higher-margin segments.
One Metric Among Many
Gross margin is essential but not sufficient. A company with 85% gross margin and 10% growth is not as valuable as a company with 65% gross margin and 40% growth, even though the first has better margins. Context matters.
However, declining gross margins combined with slowing growth is a serious red flag. Rising gross margins combined with strong growth is a major green light.
Next
Gross margin trends reveal whether the business model is becoming more or less profitable as you scale. But true profitability also depends on controlling all operating expenses—R&D, sales, marketing, and overhead. Cash burn and runway metrics measure how long the company can survive on its cash reserves before reaching profitability or requiring more funding. Learn more in Cash Burn and Runway.