On this page
  1. Why gross margin matters
  2. How to calculate it
  3. What belongs in cost of revenue
  4. What does not
  5. Allocating people costs
  6. Common mistakes
  7. How Rasorce helps

In short

  • Gross margin is revenue less cost of revenue, divided by revenue.
  • Cost of revenue covers what it costs to deliver your service to existing customers: hosting, software built into the product, customer support, onboarding and payment processing.
  • Building new features, sales and marketing, and general overheads belong in operating expenses, not cost of revenue.

Rasorce runs the finance office for tech companies: bookkeeping, monthly reporting and cash forecasting for SaaS, software and IT companies, run by one dedicated team for one fixed monthly fee.

Why gross margin matters

Gross margin shows how much of each dollar of revenue is left to pay for growth and overheads once the service has been delivered. It tells investors whether your business gets more profitable as it grows, which is why it is one of the first numbers they check. Software companies are expected to have high gross margins, and investors often look for figures in the 70% to 80% range or higher. A margin that looks wrong, in either direction, invites questions about how your costs are classified.

How to calculate it

If a SaaS company earns $100,000 in a month and its cost of revenue is $22,000, gross profit is $78,000 and gross margin is 78%. The calculation is simple. The judgment is in what goes into the $22,000.

What belongs in cost of revenue

  • Hosting and infrastructure for the production service, such as AWS, Google Cloud or Azure
  • Third-party software and data built into the product and paid per customer or per use
  • Customer support: the people and tools that help existing customers
  • Onboarding and implementation teams who set customers up
  • Site reliability and operations work that keeps the service running
  • Payment processing fees, which many companies include here; whichever choice you make, apply it consistently

What does not

  • Engineering time spent building new features, which is product development
  • Development and testing environments, which support product development rather than delivery
  • Sales, marketing and customer acquisition costs
  • General and administrative costs such as finance, legal and office costs

Allocating people costs

Few people in a small company do only one thing. An engineer may spend part of the week on production support, or a founder may handle support tickets. Split salaries by role or by an estimate of time, document the basis, and review it once a year. A reasonable, consistent method is worth far more than a precise one that changes every month.

Common mistakes

  • Recording all hosting in general expenses, which overstates gross margin
  • Leaving out support and onboarding costs
  • Combining subscription revenue with one-off services, which have much lower margins. Report the two separately.
  • Changing the classification from month to month, so trends become meaningless

The fix usually starts with the right accounts. Our guide to a chart of accounts for SaaS companies shows how to set them up, and our guide to the SaaS metrics founders should track puts gross margin alongside the other numbers investors ask for.

How Rasorce helps

Rasorce sets up your accounts so cost of revenue is separated correctly from the start, allocates shared costs on a documented basis and reports gross margin every month in the Founder Brief. It is part of the finance office for tech companies.

Book an introductionSee how Rasorce works

This article is general information, not tax or legal advice. Rules and rates change; we confirm the current position for every client.