SaaS COGS: What Belongs in Cost of Revenue (and What Doesn’t)

Which costs belong in SaaS cost of goods sold, which don’t, and how to split shared costs so your gross margin is accurate for boards and lenders.

SaaS COGS: What Belongs in Cost of Revenue (and What Doesn’t)

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.
SA Globus

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 costCommon allocation method
Engineers who build and also maintain productionTime tracking or an agreed percentage split
Cloud costs for production and developmentSeparate accounts or tags by environment
Team leads covering support and successShare of time on support tickets vs. expansion work
Payroll taxes and benefitsFollow 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.

Nikhil
Nikhil

When you work with Nikhil, you gain a trusted financial partner who believes that accounting should empower better business decisions, not just ensure compliance. His focus is on delivering practical, reliable solutions that help businesses grow with confidence.

Whether you’re looking for bookkeeping, accounting, or advisory support, you’ll benefit from his commitment to accuracy, transparency, and long-term relationships. He works closely with business owners and accounting firms to create efficient processes that save time and add value.

Beyond numbers, you’ll find someone who is passionate about entrepreneurship, continuous learning, and helping clients achieve sustainable success. His goal is simple: to help you build a stronger business while making your financial journey smoother and more predictable.

Articles: 93