The cost of delivering the service
In SaaS, cost of goods sold is the direct cost of delivering the service, hosting, support, and the operations to run the product, and it determines gross margin. Unlike a physical product, a SaaS company's COGS is mostly infrastructure and people who keep the service running: cloud hosting, the support and success costs of keeping customers live, embedded third-party software or data, and the DevOps that maintains uptime. What it captures is the cost to serve the customers you already have, which is precisely what sets the gross margin.What belongs in COGS, and what does not
The boundary is direct delivery cost versus everything else:
- In COGS: hosting and infrastructure, customer support and success, embedded software and data, product operations. - Not in COGS: sales, marketing, research and development, and general overhead, which are operating expenses below the gross margin line.
A common and consequential error is loading sales or R&D into COGS, which distorts gross margin and makes the economics look worse than they are. COGS should reflect only the cost of delivering the service, nothing more.
What it reveals about the business
Beyond setting gross margin, SaaS COGS reveals how software-like the economics genuinely are. A company with low COGS, mostly efficient infrastructure, has the high-margin, scalable economics that make software attractive, and a strong gross margin for SaaS. A company with high COGS is telling you something: heavy infrastructure costs that scale with usage, a large support organization, or services-heavy delivery that requires people to make the product work. None of these is fatal, but each pulls the margin below the pure-software range and changes how the business should be valued and run. Decomposing COGS, knowing which of infrastructure, support, or services is driving it, is what separates a company that understands its own economics from one that reports a gross margin without knowing why it sits where it does, which also clarifies the difference between gross and contribution margin as you move down the income statement.
Frequently Asked Questions
What is included in SaaS cost of goods sold?
The direct costs of delivering the service: cloud hosting and infrastructure, customer support and success costs tied to keeping customers running, third-party software and data costs embedded in the product, and the operations and DevOps needed to run it. It excludes sales, marketing, and general overhead, which are operating expenses, not cost of delivery.
Why does SaaS COGS matter?
Because it determines gross margin, which sets how much of each revenue dollar is available to fund growth and profit. It also reveals how software-like the economics really are: low COGS means high margin and true software economics, while high COGS signals heavy infrastructure, support, or services costs that make the business less purely software-like.
What is not part of SaaS COGS?
Sales and marketing, research and development, and general and administrative costs are operating expenses below the gross margin line, not cost of goods sold. A common error is loading these into COGS, which distorts gross margin. COGS should include only the direct cost of delivering the service to existing customers.
Put these metrics to work
ORM builds custom revenue forecast models that turn concepts like cost of goods sold (saas) into prescriptive action for your team.
Schedule a Demo