June Analytics
ENFR

Financial education for founders

Gross margin: what belongs in cost of revenue

Gross margin shows how much of each new dollar of revenue you keep to fund growth. It only means something if the right costs are in it.

Written by the CPAs at June Analytics · Updated

The short answer

Gross margin is revenue minus the cost of delivering it, divided by revenue. For a software startup the cost of delivery includes hosting, payment fees, the software inside your product, customer support and onboarding. Say which costs you included.

The formula

Gross margin = (revenue − cost of revenue) ÷ revenue

Worked example

  1. Revenue for the month: $50,000
  2. Hosting $4,000, payment fees $1,500, support salaries $6,000, onboarding $2,500
  3. Cost of revenue = $14,000
  4. Gross margin = ($50,000 − $14,000) ÷ $50,000 = 72%

Leave out support and onboarding and it reads 89%, a gap an investor will find

Made-up numbers to show the method.

What goes in cost of revenue

  • Hosting and infrastructure that runs the product for customers.
  • Third-party software and APIs your product pays for per customer or per use.
  • Payment processing fees.
  • Customer support and onboarding for existing customers.

What stays out

  • Building the product: engineering and design for new features.
  • Sales and marketing.
  • General and administrative costs: rent, finance, legal.

Why it matters to an investor

Gross margin decides how much of each new dollar of revenue is left to pay for growth and, later, profit. Two companies with the same revenue and different margins are worth different amounts.

There is room for judgment in what goes into cost of revenue. That is fine as long as you say what you included and treat every month the same way.

Keep reading

Get these numbers from your own books

Finance for Founders connects to QuickBooks or Xero read-only and works out runway, burn and the numbers an investor will ask about, with the math shown.

This guide explains how investors commonly read these numbers. It is not investment, legal or tax advice.

Questions founders ask

Is customer support part of cost of revenue?

Support that serves existing customers is a cost of delivering the product, so include it. If you leave it out, say so, because an investor will ask.

What about services revenue?

Show it separately. Services usually run at a lower margin than software, and mixing them hides both numbers.

Does my bookkeeper's split match this?

Not always. Many books put every salary in one line. Ask for support and onboarding salaries to sit in cost of sales, or split them out yourself before you show the number.