SaaS Metrics and KPIs
What is the SaaS Cost of Revenue?
What is the SaaS Cost of Revenue?
SaaS cost of revenue tracks every direct expense a company incurs to deliver its software to paying customers. It’s a foundational number for understanding gross margin. In essence, it is the way investors and operators measure the health of a subscription business.
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. Healthy SaaS companies typically target a 70–80% gross margin, and cost of revenue is the lever that determines where a company lands in that range.
Costs classified as operational expenses, including categories such as revenue generation, cloud infrastructure, support functions, or third-party services, impact a company’s profit 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. Cost of revenue reduction is frequently the quickest way to generate margin gains without altering the prices or the number of employees 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.
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 capitalized “cost of revenue,” and the latter should be classified as operating expense (OPEX), since it includes more, such as sales and marketing function, than service delivery.
What are the benefits of careful Cost-of-Revenue tracking?
- The current stance on 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. Don’t forget that besides these few questions, you have to consider the following 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.