
Gross margin is one of the first numbers investors, boards and lenders look at in a SaaS business. But it’s only as good as your definition of cost of goods sold (COGS), also called cost of revenue. Put too little in, and margin looks better than it is. Put too much in, and you undersell the business. Here is how to draw the line.
The rule of thumb
SaaS COGS should include the costs of delivering and supporting the service for existing customers. Costs of building the product, winning customers or running the company sit below gross margin in operating expenses.
What usually belongs in SaaS COGS
- Hosting and infrastructure: cloud servers, storage and bandwidth used to run the product.
- Third-party software in the product: APIs, data feeds and licenses your service depends on.
- Customer support: support staff wages and support tools.
- Implementation and onboarding: staff who set up new customers.
- DevOps and site reliability: the share of engineering time spent keeping production running.
- Revenue share and payment fees tied directly to delivering the service, where your policy includes them.
Is your SaaS gross margin real?
Our offshore accounting team tracks cost of revenue by department and product line, so your board and lenders see margins they can trust.
What usually does not belong in COGS
- Engineering time spent building new features (research and development).
- Sales, marketing and customer acquisition costs.
- Account management focused on upsells.
- General and administrative costs, such as finance, HR and office rent.
Services revenue needs its own cost line
If you also sell consulting, implementation projects or data, give each stream its own cost of revenue. Blending them hides the fact that services margins are usually much lower than subscription margins. In our SaaS and consulting case study, tracking cost of goods sold by class and department, together with accrued bonuses, is what made departmental gross margin visible to the board.
How to split shared costs
| Shared cost | Common allocation method |
|---|---|
| Engineers who build and also maintain production | Time tracking or an agreed percentage split |
| Cloud costs for production and development | Separate accounts or tags by environment |
| Team leads covering support and success | Share of time on support tickets vs. expansion work |
| Payroll taxes and benefits | Follow the underlying salary allocation |
Whatever method you choose, document it and apply it the same way every month so margins are comparable over time.
Connecting COGS to revenue recognition
Gross margin only works if revenue is right too. Subscription revenue should be recognized over the service period under ASC 606, while one-off services are recognized as delivered. Our MIS and financial reporting services build both sides into one monthly package.
Frequently asked questions
Is customer support part of SaaS COGS?
Generally yes. Support for existing customers is a cost of delivering the service, so most SaaS companies include support wages and tools in cost of revenue.
Should engineering salaries be in COGS?
Only the share spent running and maintaining production, such as DevOps or site reliability. Time spent building new features is research and development.
Why do lenders care about SaaS gross margin?
Gross margin shows how much each revenue dollar contributes to covering operating costs and debt. A clear, consistently calculated margin makes lender and board reporting more credible.
Discover more from SA Globus
Subscribe to get the latest posts sent to your email.
