What is SaaS Gross Margin? Formula & Benchmarks 2025 (70-80% Target)
SaaS Gross Margin explained: formula, calculator, and 2025 benchmarks (70-80% is healthy). Learn to calculate and improve gross margin for better unit economics.

Natalie Reid
Technical Integration Specialist
Natalie specializes in payment system integrations and troubleshooting, helping businesses resolve complex billing and data synchronization issues.
Gross margin measures the percentage of revenue remaining after subtracting the direct costs of delivering your product—the fundamental indicator of how efficiently you convert revenue into profit available for growth investment. For SaaS companies, gross margin represents the economics of your product delivery: what you keep after paying for hosting, customer support, customer success, and other costs directly tied to serving customers. According to a 2024 KeyBanc SaaS survey, median SaaS gross margin is 75%, with top-quartile companies achieving 80%+ and best-in-class exceeding 85%. This benchmark matters because gross margin determines how much of every revenue dollar can fund sales, marketing, R&D, and G&A—companies with 80% gross margin can invest $0.80 of every dollar in growth, while companies with 60% margin have only $0.60 available. The compounding impact is dramatic: over time, higher-margin companies can outspend competitors on acquisition, out-innovate on product, and achieve profitability faster with the same revenue. Gross margin also fundamentally affects valuation—investors pay premium multiples for high-margin businesses because more revenue converts to profit and cash flow. A company growing at 50% with 80% gross margin is worth significantly more than one growing at 50% with 60% margin. This comprehensive guide covers SaaS gross margin calculation, what costs belong in COGS versus operating expenses, benchmarks by business model and customer segment, factors that impact margin, and strategies for improving this foundational unit economics metric. Whether you're managing costs, planning for scale, or preparing for fundraising, understanding gross margin is essential for SaaS financial management.
Understanding SaaS Gross Margin
Definition and Core Concept
Gross Margin = (Revenue - Cost of Goods Sold) / Revenue × 100. If you generate $1M revenue with $250K in direct delivery costs, gross margin = ($1M - $250K) / $1M = 75%. For SaaS companies, COGS includes costs directly attributable to delivering your product to customers—these costs scale with customer count or usage, unlike fixed operating expenses. The resulting gross profit (Revenue - COGS) represents what's available to cover operating expenses (sales, marketing, R&D, G&A) and eventually generate net profit. High gross margin means more operating leverage—as revenue grows, a larger proportion converts to profit.
What Belongs in SaaS COGS
SaaS Cost of Goods Sold typically includes: Hosting and infrastructure (cloud computing costs—AWS, GCP, Azure), third-party software costs (APIs, tools embedded in your product), customer support (salaries, tools, and costs for support teams), customer success (salaries and costs for CSM teams that directly serve customers), DevOps/site reliability (teams that keep the product running, scaled to production systems), and payment processing fees (Stripe, PayPal fees if material). The defining characteristic: these costs directly relate to serving customers and typically scale with customer count or usage. Some costs are borderline—support team software might be COGS while sales team software is operating expense.
COGS vs. Operating Expenses
Operating expenses are NOT included in gross margin calculation: Sales and marketing (customer acquisition costs), Research and development (product development, not production operations), General and administrative (finance, legal, HR, executives), and non-customer-facing infrastructure (internal tools, development environments). The distinction matters for comparability—companies that misclassify operating expenses as COGS will show artificially low margins, while those that undercount COGS will show artificially high margins. Follow GAAP guidance and industry norms for consistent classification.
Why Gross Margin Matters
Gross margin determines the economics of your business at the most fundamental level: Operating leverage (higher margin means more room for operating expenses at the same revenue), LTV calculation (gross margin adjusts how much lifetime value you actually retain—$10K revenue at 70% margin is $7K gross profit), pricing power (margin reflects whether you can command premium prices), and valuation impact (investors pay higher multiples for high-margin businesses). A 10-point margin difference compounds dramatically: two companies both at $100M revenue, one with 70% margin has $70M gross profit, one with 80% has $80M—$10M more annually to invest in growth or flow to profit.
Margin Fundamentals
Every point of gross margin improvement flows directly to operating profit or growth investment—margin improvements are among the highest-leverage financial optimizations.
Calculating SaaS Gross Margin
The Gross Margin Formula
Gross Margin = (Revenue - COGS) / Revenue × 100. Step-by-step calculation: 1) Total all subscription and recurring revenue for the period. 2) Calculate COGS by summing: hosting/infrastructure costs, customer support costs (salaries, tools, allocated overhead), customer success costs (if your CSMs are primarily service-focused), DevOps/SRE costs for production systems, third-party API and software costs, and payment processing fees. 3) Subtract COGS from revenue for gross profit. 4) Divide gross profit by revenue and multiply by 100 for percentage. Example: $500K revenue, $125K COGS = ($500K - $125K) / $500K × 100 = 75% gross margin.
Handling Hybrid Cost Allocations
Some costs don't fit cleanly into COGS or operating expenses: Customer success: if CSMs focus on retention and value realization (service delivery), allocate to COGS; if they focus on expansion and upselling (sales function), allocate to operating expenses. Infrastructure: production systems are COGS; development and testing environments are R&D. Shared teams: allocate based on time spent on production/customer-facing work versus internal development. Document your allocation methodology and apply consistently. Changing methodology between periods makes trend analysis impossible and raises investor concerns about data quality.
Subscription vs. Professional Services Margin
Many SaaS companies have both subscription revenue (recurring) and professional services revenue (one-time implementation, customization, training). These have very different margin profiles: Subscription margin: typically 75-85% for pure software delivery. Professional services margin: typically 20-40% due to labor intensity. Calculate and report margins separately—blending them masks the health of your core subscription business. Investors and operators focus on subscription gross margin as the key indicator of scalable business economics. High services revenue with low margin can drag down blended figures even when subscription economics are strong.
Normalized and Adjusted Calculations
For trend analysis and comparisons, consider normalizations: Usage normalization (if hosting costs are usage-based, normalize to per-customer or per-dollar-of-revenue for comparison), one-time cost exclusions (infrastructure migrations or unusual events that don't reflect ongoing operations), and seasonal adjustments (if support or hosting has seasonal patterns). Be careful with adjustments—they should clarify true economics, not manipulate metrics. Report both GAAP and adjusted figures, with clear explanation of adjustments applied.
Calculation Consistency
Document COGS classification methodology and apply consistently—changing methodology between periods destroys trend analysis and raises investor credibility concerns.
Gross Margin Benchmarks
Overall SaaS Benchmarks
SaaS gross margin benchmarks across the industry: Best-in-class: 85%+ (highly efficient, often product-led or self-serve models). Excellent: 80-85% (strong delivery economics, well-optimized operations). Good: 75-80% (solid SaaS economics, typical for mid-market companies). Acceptable: 70-75% (acceptable but room for improvement). Concerning: below 70% (may indicate high-touch delivery model, pricing issues, or operational inefficiency). The median public SaaS company achieves approximately 75% gross margin. Private companies vary more widely, with earlier-stage companies often lower due to less optimized operations.
Business Model Variations
Gross margin varies significantly by delivery model: Pure self-serve SaaS: typically 80-90% margin due to minimal human involvement in delivery. Sales-assisted with light support: typically 75-80% margin. High-touch enterprise with dedicated success: typically 65-75% margin due to significant human capital in delivery. Vertical SaaS with compliance/regulation: often 60-70% margin due to specialized support and compliance costs. Usage-intensive products: varies widely based on infrastructure efficiency and pricing relative to compute costs. Benchmark against companies with similar delivery models, not industry-wide averages.
Stage and Scale Considerations
Company stage affects realistic margin expectations: Early-stage (pre-product-market fit): margins often 50-65% as infrastructure isn't optimized and support burden per customer is high. Growth stage: margins typically improve to 70-80% as scale efficiencies emerge. At scale (public companies): margins often 75-85% with highly optimized operations. Margin should generally improve as you scale—cloud costs become more efficient at volume, support handles more customers per rep, and fixed costs spread across more revenue. If margins aren't improving with scale, investigate whether pricing, infrastructure, or staffing models need adjustment.
Impact on Valuation Multiples
Gross margin significantly affects valuation: High-margin companies (80%+) typically command premium revenue multiples because more revenue converts to potential profit. Low-margin companies (sub-70%) face valuation discounts as investors model reduced long-term profitability. The impact is substantial—a 10-point margin difference can affect valuation multiples by 20-30%. When preparing for fundraising, margin improvement can be as valuable as revenue growth for enterprise value. Investors also examine margin trends—improving margins signal operational excellence while declining margins raise concerns.
Benchmark Context
Self-serve SaaS typically achieves 80-90% margin while high-touch enterprise may be 65-75%—always benchmark against your delivery model, not industry averages.
Factors Affecting Gross Margin
Infrastructure and Hosting Costs
Cloud infrastructure is typically the largest COGS component: Compute efficiency (optimizing server utilization, right-sizing instances, using reserved capacity), storage optimization (tiering storage, implementing efficient data retention, compressing where appropriate), architectural choices (serverless vs. always-on, edge computing, caching strategies), and cloud vendor optimization (negotiating discounts, using spot instances, multi-cloud arbitrage). Infrastructure costs should decline as a percentage of revenue as you scale—if they're staying flat or increasing, investigate whether architecture or vendor agreements need optimization.
Support and Success Costs
Human capital in product delivery significantly impacts margin: Support staffing ratios (how many customers per support rep—higher ratios improve margin but may impact satisfaction), self-serve capabilities (documentation, in-product help, community forums that reduce support tickets), automation (AI/chatbots for routine inquiries, automated onboarding, proactive issue resolution), and tier-appropriate support (matching support intensity to customer value—premium support for enterprise, community for SMB). The goal is reducing marginal cost per customer while maintaining or improving experience.
Pricing and Value Capture
Price directly impacts margin—higher prices with the same COGS yield higher margin: Value-based pricing (pricing based on customer value received, not cost to serve), pricing power (differentiated products can command premium prices), usage alignment (pricing that captures value from heavy users without subsidy from light users), and price increases (regular price adjustments to reflect value improvements and offset cost inflation). Many SaaS companies underprice, especially early. Price optimization often yields margin improvement with minimal customer impact.
Product Complexity and Delivery Model
Product and delivery design fundamentally shapes margin potential: Product complexity (complex products require more support—simpler products have higher margin), customization requirements (highly customized deployments require services that reduce margin), integration dependencies (products requiring significant integration work have lower margin than standalone tools), and compliance/security requirements (regulated industries require compliance infrastructure that adds cost). Some of these are strategic choices—high-touch enterprise delivery trades margin for larger deal sizes. Others represent optimization opportunities.
Margin Driver
Infrastructure costs should decline as percentage of revenue at scale—if they're flat or rising, investigate architecture and vendor optimization opportunities.
Improving Gross Margin
Infrastructure Optimization
Reduce hosting and infrastructure costs through: Right-sizing (matching instance sizes to actual usage), reserved capacity (committing to usage for discounts—typically 30-50% savings), spot instances (using discounted preemptible capacity for fault-tolerant workloads), architectural efficiency (caching, CDN optimization, database tuning), vendor negotiation (enterprise discount programs as you scale), and multi-cloud strategy (using competitive pressure for better pricing). Infrastructure optimization is often the highest-ROI margin improvement—savings flow directly to margin without affecting customer experience.
Support Efficiency
Reduce support costs while maintaining quality: Self-serve resources (comprehensive documentation, video tutorials, community forums), in-product guidance (contextual help, feature walkthroughs, proactive tips), AI and automation (chatbots for routine inquiries, smart routing, suggested responses), tier optimization (right-sizing support for customer value—high-touch for enterprise, automated for SMB), and root cause resolution (fixing bugs and UX issues that generate support volume). Track cost per ticket and tickets per customer to measure progress. Best-in-class companies achieve 20-40% lower support costs per customer than average.
Pricing Optimization
Increase revenue relative to COGS through: Price increases (regular inflation adjustments—3-5% annually is common), value capture (ensuring pricing reflects value delivered, especially as product improves), tier optimization (designing tiers that capture value from different customer segments), and usage-based components (pricing mechanisms that grow with customer value extraction). Pricing changes require careful analysis of elasticity and competitive dynamics, but many SaaS companies are significantly underpriced relative to value delivered.
Customer Mix Optimization
Different customer segments have different margin profiles: High-touch enterprise (lower margin due to support/success costs but higher absolute profit per customer), mid-market (balanced margin and volume), and SMB/self-serve (highest margin but lowest absolute revenue per customer). Analyze margin by segment to understand which customers are most profitable. Consider whether acquisition investment is appropriately weighted toward high-margin segments. Sometimes de-emphasizing a low-margin segment dramatically improves blended margin.
Optimization Priority
Infrastructure optimization often delivers the highest ROI—savings flow directly to margin without affecting customer experience or requiring pricing changes.
Gross Margin in Financial Planning
Margin in Operating Models
Build gross margin assumptions into financial models: Revenue forecasting (apply margin assumptions to revenue projections for gross profit), COGS scaling (model how COGS scales with revenue—should show leverage over time), scenario planning (stress-test margin assumptions under different growth scenarios), and investment allocation (gross profit determines what's available for operating expenses). Track gross profit alongside revenue—a company growing revenue at 50% but with declining margin may not be generating more operating capacity.
Path to Profitability Analysis
Gross margin is the ceiling on potential profitability: Operating expense ratio (operating expenses / revenue—must be below gross margin for profitability), break-even analysis (at what revenue level does gross profit cover operating expenses?), and margin improvement impact (how much does each point of margin improvement accelerate path to profitability?). A company with 75% gross margin and 90% operating expense ratio needs either margin improvement or operating leverage to reach profitability. Model both paths—margin improvement often contributes meaningfully to profitability timeline.
LTV and Unit Economics Adjustments
Gross margin affects unit economics calculations: LTV calculation (many LTV formulas use gross margin-adjusted revenue, not raw revenue), CAC payback (gross profit-based payback is more accurate than revenue-based), and contribution margin (gross profit minus variable sales/marketing for true per-customer contribution). Use margin-adjusted figures for unit economics—a customer paying $1,000/month at 75% margin contributes $750 to covering costs and eventually profit, not $1,000.
Investor and Board Reporting
Report gross margin prominently in financial updates: Current margin (absolute figure and percentage), trend (quarterly or annual change), benchmarking (comparison to industry and stage-appropriate targets), COGS breakdown (major cost categories and their trends), and improvement initiatives (what you're doing to improve margin). Investors expect margin to improve as you scale—explain any periods where margin declines and the plan to address. Margin is one of the most-scrutinized metrics in fundraising and can significantly impact valuation.
Financial Planning
Use gross margin-adjusted figures in unit economics—a $1,000/month customer at 75% margin contributes $750 to operating profit, not $1,000.
Frequently Asked Questions
What is a good gross margin for SaaS?
Target 75-80% gross margin for healthy SaaS economics. Best-in-class companies (often self-serve or product-led) achieve 85%+, while high-touch enterprise models may be 65-75%. The median public SaaS company achieves approximately 75%. Margin below 70% warrants investigation into pricing, infrastructure efficiency, or support optimization. Margin should generally improve as you scale—if it's flat or declining, operational issues may need attention.
How do I calculate SaaS gross margin?
Gross Margin = (Revenue - COGS) / Revenue × 100. SaaS COGS includes: hosting/infrastructure costs, customer support costs (salaries and tools), customer success costs (if service-focused), DevOps/SRE for production systems, third-party software costs in your product, and payment processing fees. Exclude operating expenses (sales, marketing, R&D, G&A). Example: $500K revenue, $125K COGS = 75% gross margin. Calculate subscription margin separately from professional services for clearer unit economics.
What costs are included in SaaS COGS?
SaaS Cost of Goods Sold includes costs directly tied to delivering your product: cloud hosting and infrastructure (AWS, GCP, Azure), customer support team costs (salaries, tools, allocated overhead), customer success costs (if primarily service-focused), DevOps/site reliability for production systems, third-party APIs and software embedded in your product, and payment processing fees. These costs typically scale with customer count or usage. Operating expenses like sales, marketing, R&D, and G&A are NOT COGS.
Why does gross margin matter for SaaS companies?
Gross margin determines how much of each revenue dollar is available for operating expenses and profit. At 80% margin, you have $0.80 of every dollar for sales, marketing, R&D, and G&A; at 60% margin, only $0.60. This 20-point difference compounds dramatically over time—higher-margin companies can outspend on acquisition, out-innovate on product, and reach profitability faster. Gross margin also significantly affects valuation—investors pay premium multiples for high-margin businesses because more revenue converts to profit.
How can I improve SaaS gross margin?
Focus on three areas: Infrastructure optimization (right-size instances, use reserved capacity, optimize architecture)—often highest ROI. Support efficiency (self-serve resources, AI automation, tier-appropriate support)—reduce cost per customer while maintaining quality. Pricing optimization (regular price increases, value-based pricing, better tier design)—capture more value from customers. Analyze margin by customer segment to identify which are most profitable and consider shifting acquisition investment toward high-margin segments.
How does gross margin affect company valuation?
Gross margin significantly impacts valuation multiples. High-margin companies (80%+) command premium revenue multiples because more revenue converts to potential profit and cash flow. Low-margin companies (sub-70%) face valuation discounts. A 10-point margin difference can affect multiples by 20-30%. When preparing for fundraising, margin improvement can be as valuable as revenue growth for increasing enterprise value. Investors also examine margin trends—improving margins signal operational excellence.
Key Takeaways
Gross margin represents the fundamental economics of your SaaS business—the percentage of every revenue dollar that becomes available for operating expenses, growth investment, and eventually profit. At 80% margin, you have $0.80 of every dollar to work with; at 60%, only $0.60. This difference compounds dramatically over time, affecting your ability to invest in acquisition, product development, and ultimately valuation. Understanding what constitutes COGS in a SaaS context—hosting, support, success, DevOps—enables accurate calculation and meaningful benchmarking. Most SaaS companies should target 75-80% margin, with top performers exceeding 85% through efficient operations and appropriate pricing. Margin improvement comes from infrastructure optimization, support efficiency, and pricing adjustments—often the highest-leverage financial optimizations available. Build margin tracking into your financial operations: monitor trends, benchmark against appropriate peers, and continuously seek improvement. The companies with strongest unit economics and highest valuations don't achieve them by accident—they systematically optimize gross margin alongside revenue growth.
Track Gross Margin Automatically
Get instant Gross Margin analytics with QuantLedger
Related Articles

Gross Margin Calculation for SaaS Companies
Calculate SaaS gross margin correctly: include hosting, support, and third-party costs. Target 70-80%+ for healthy unit economics and investor expectations.

What is Net Profit Margin? SaaS Formula & Benchmarks 2025
Net Profit Margin for SaaS explained: formula (Net Income / Revenue), calculator, and benchmarks. Learn to measure profitability and optimize for the Rule of 40.

Why Your LTV is Wrong: Gross Margin Matters
Why Your LTV is Wrong: Gross Margin Matters. Most LTV calculations ignore gross margin, dramatically overstating customer value. Learn to calcula...