SaaS Metrics and KPIs
What is the SaaS Cost of Revenue?
What is the SaaS Cost of Revenue?
SaaS cost of revenue is the total of every direct expense a company incurs to deliver its software to paying customers. It’s a foundational number for understanding gross margin: usage-only pricing models, with higher compute and infrastructure costs, had a 62% median gross margin for 2025 in Aleph and Benchmark’s 2026 benchmarks for B2B SaaS and AI-native companies.
What does Cost of Revenue Mean for a SaaS business?
Generally, the SaaS cost of revenue includes all the direct costs you need to buy, deliver, and support a subscription product, e.g., hosting, third-party licensing fees, customer onboarding, and payment processing. Its intangible nature means it does not relate to physical inventory. Sales, marketing, and general administration are examples of indirect costs and are not included.
Cost of Revenue vs. COGS vs. Cost of Sales — What's the difference?
- Cost of revenue and COGS (cost of goods sold) are often treated as synonyms in SaaS, since there’s no physical inventory. Cost of revenue is generally considered the broader, more accurate term for a services-based business.
- Cost of sales sometimes refers narrowly to costs tied to closing a deal (like sales commissions), though many finance teams also use it as a stand-in for cost of revenue.
- The safest approach is to define your own line items clearly in your financial statements and apply them consistently, since GAAP offers SaaS companies some flexibility.
Why does Cost of Revenue matter for SaaS gross margin?
Cost of revenue is the direct input into gross margin, calculated as (Revenue − Cost of Revenue) ÷ Revenue. In Aleph and Benchmark’s 2026 benchmarks (full-year 2025 data, B2B SaaS and AI-native companies; Aleph sells FP&A software), median gross margin was 80% on software revenue but 62% for usage-only pricing, whose revenue carries higher infrastructure and compute costs.
Costs classified as cost of revenue, including categories such as cloud infrastructure, support functions, or third-party services, impact a company’s gross margin, sometimes as a reduced amount concurrent with top-line revenue expansion. Investors view this as a potential scalability consideration: as the business expands, infrastructure and service costs may influence the unit economics. A reduction in the cost of revenue can influence margin levels without adjustments to pricing or staffing in other departments.
What's the SaaS Cost-of-Revenue formula?
The core formula is straightforward: Cost of Revenue = Hosting/Infrastructure Costs + Third-Party Software/API Fees + Customer Support & Success Costs (delivery-related) + Payment Processing Fees + Implementation/Onboarding Costs
From there, gross margin is calculated as: Gross Margin (%) = (Revenue − Cost of Revenue) ÷ Revenue × 100
Some companies also track the cost of revenue per customer or per dollar of ARR to benchmark efficiency over time. Products with AI features increasingly add AI inference and model costs, which the Aleph and Benchmarkit report advises tracking separately.
How do you classify customer support — Cost of Revenue or OPEX?
Support costs typically encompass a wide range of functions within a human organization. In SaaS, it’s important to differentiate “direct” support that is essential to delivering the service (e.g., technical support, uptime monitoring, basic troubleshooting) from other functions supporting retention, upselling, or strategic account growth (e.g., customer success managers running QBRs).
The former should be classified as “cost of revenue,” and the latter should be classified as operating expense (OPEX), since it includes more, such as sales and marketing functions, than service delivery.
What are the benefits of careful Cost-of-Revenue tracking?
- Tracking cost of revenue supports gross-margin protection. The nature of cost classification can influence how margin figures are perceived during investor or acquirer review.
- Pricing decision processes. Information on the actual delivery cost per customer influences the setting of price points.
- Valuation movement. SaaS companies are often valued on revenue multiples adjusted for margin quality. A clean, well-documented cost of revenue is often associated with the multiples considered during fundraising or M&A due diligence.
- Earlier detection of scaling problems. The development of the cost of revenue as a percentage of revenue can be influenced by aspects of infrastructure or support expenditure management.
Do I need to track the Cost of Revenue closely?
The following questions may contribute to assessing the issue’s importance and the timing for its resolution:
- Has your gross margin shown a reduction, or is its clarity influenced by how cost lines are defined?
- Is a fundraising, acquisition, or board meeting on your calendar, where margin quality will be one of the topics of discussion?
- Do the costs of support, hosting, or infrastructure seem to be remaining the same despite increases in the number of your customers?
If these situations are confirmed, managing the accuracy of your cost-of-revenue may be relevant. Consider these factors too:
- What is the stage of the company? (e.g., early-stage, scaling, pre-exit)
- Are investors or potential buyers going to review your financials in the near future?
- How complicated is your current infrastructure and support stack?
- Have cost classifications been made consistently over time?
Conclusion
The cost of revenue can be viewed as the direct expenditures for products or services delivered to customers, analogous to ingredient costs in a restaurant, and does not encompass overheads such as rent or marketing. What this means for SaaS companies is that accurate and proper classification of cost of revenue is the clearest way to protect gross margin, enable stronger valuations, and identify scaling issues before they manifest themselves in the top line.