Why Gross Margin Is the Second-Most-Screened SaaS Metric
After growth rate, gross margin is the metric SaaS investors examine most closely. It determines how much of each revenue dollar is available to fund sales, marketing, research, and ultimately profit. A SaaS company with 85 percent gross margin has fundamentally different economics than one with 65 percent gross margin, even at identical revenue — the former can reinvest 20 cents more of every dollar into growth.
Yet gross margin is also the most inconsistently calculated metric in SaaS. Two companies reporting "80 percent gross margin" may be including entirely different costs in their COGS, making the numbers non-comparable. Understanding what belongs in COGS — and rigorously excluding what does not — is essential for honest benchmarking and for presenting your business accurately to investors.
Gross margin is not a single number. It is a claim about what your cost structure is. Investors who have seen enough decks know to ask what is in it before they believe it.
What Belongs in SaaS COGS
Cost of goods sold for a SaaS business includes the costs directly required to deliver the software to customers and keep it running. The principle is that if you could not deliver the product without incurring the cost, it belongs in COGS. If the cost would exist regardless of how many customers you have, it belongs in operating expenses.
- **Hosting and cloud infrastructure.** AWS, GCP, or Azure costs that scale with usage. This is the largest COGS line for most SaaS businesses and the one most commonly misclassified.
- **Third-party APIs and data.** Services like Stripe payment processing, data providers, or embedded analytics that are incurred per customer or per transaction.
- **Customer support and success operations.** The staff who directly support existing customers. Engineering support (devops, SRE) that keeps the production service running also belongs here, though it is often incorrectly placed in R&D.
- **Software licenses required to deliver the product.** Monitoring tools, CDN costs, and any third-party software that is a direct input to service delivery.
- **Onboarding and implementation.** If you provide hands-on implementation as part of the product, the labor cost belongs in COGS. If implementation is a separately sold professional service, it is a separate revenue line with its own COGS.
What does not belong: sales and marketing (that is acquisition cost, not delivery cost), product management and core engineering (that builds the product, it does not deliver it per customer), general and administrative, and corporate-level software that is not a direct delivery input. Including R&D in COGS is the most common upward distortion; excluding support labor is the most common downward distortion.
Benchmark Ranges and What Drives Them
Healthy SaaS gross margins range from 70 to 85 percent, with the best-in-class pure-software businesses exceeding 85 percent. The drivers of the variation are instructive.
- **Infrastructure efficiency.** Companies with multi-tenant architectures on shared infrastructure achieve higher margins than those running dedicated instances per customer. Modern containerization and serverless architectures push this further.
- **Support intensity.** Products that require heavy customer support or success management carry lower margins. Self-serve products with low support load can exceed 85 percent; enterprise products with dedicated CSMs may sit at 70 percent.
- **Data and API costs.** Products that rely on expensive third-party data (financial data, geospatial data, AI inference) have structurally lower margins. An AI product paying per-token inference costs may have a 60 percent gross margin even with excellent infrastructure efficiency.
- **Professional services mix.** Companies that bundle significant implementation services have lower blended margins because services carry 30–50 percent gross margins, dragging the software margin down.
The Trend Matters More Than the Level
Investors care about the direction of gross margin as much as the absolute level. A company whose gross margin is improving from 70 percent to 78 percent over four quarters is more attractive than one stable at 80 percent, because the improvement signals operating leverage — the business is becoming more efficient as it scales. Conversely, a declining gross margin, even from a high starting point, signals that costs are scaling faster than revenue, which is a warning about the scalability of the business model.
Common causes of declining SaaS gross margin include rising infrastructure costs from inefficient scaling, growing support headcount outpacing revenue growth, and increasing reliance on expensive third-party APIs or data. Diagnose the cause by decomposing COGS into its components and tracking each as a percentage of revenue. The component that is rising as a share of revenue is the one to address.
Use the profit margin calculator on this site to model the impact of COGS changes on your overall margin structure. A 5 percent reduction in infrastructure costs as a share of revenue flows directly to gross margin and, with operating expenses held constant, to net margin. That is the compounding power of gross-margin improvement.