# Understanding Gross Margin and Cost of Sales

Your overall gross margin gives you a general idea of the production costs in relation to your revenue. But is that all? The answer is no.

Niko Laine

October 4, 2022

_

What is Cost of Sales (COS)?

Cost of Sales (COS) refers to the direct costs associated with selling and delivering your product.

• Wages of Support staff
• Services
• Wages of Customer Success staff
• DevOps
• Payment processing expenses
• Hosting expenses

Once you have your COS, you can then calculate your gross margin using the formula below.

It’s normal for your COS to scale alongside your revenue. It means the more revenue you generate, the more COS you have. The trick to making your business more profitable is: Grow your revenue faster than your COS.

While it may be relatively slow for that to happen, it doesn’t mean there aren’t ways to speed up your revenue growth.

What is gross margin?

Gross margin is the amount left after deducting the Cost of Sales from the total revenue.

Total revenue - COS = Gross margin

How do I calculate my gross margin rate?

The formula to calculate your gross margin rate is pretty straightforward:

[(Total revenue - COS)/Total revenue] x 100 = Gross margin rate

Let’s say the total revenue for your product is \$120,000. We’ll assume that your COS includes the following cost centers–Support (\$7,500), Services (\$9,000), Customer Success (\$12,500), Dev Ops (\$1,500). Your variables are:

Total revenue = \$120,000
COS = \$7,500 + \$9,000 + \$12,500 + \$1,500 = \$30,500

Therefore, your gross margin is \$89,500.

To calculate your gross margin rate:

[(\$120,000 - \$30,500)/\$120,000]*100 = 74.58%

Your gross margin rate is 74.58%.

That looks healthy, right?

Yes. No. Maybe–all three answers are valid depending on who you talk to.

According to Tom Tunguz, 50-75% is a good target to aim for depending on which lifecycle your SaaS business is in. A more common consensus is that a profitable SaaS business model should have a gross margin rate of 80-90%. It means that your COS should only take up 10-20% of your total revenue.

Your gross margin is likely to be smaller at the beginning of your SaaS business. The goal is to increase as you scale. We’ll go with the common consensus of aiming for an 80-90% gross margin rate. Based on the example above, you have a few options to improve your gross margin rate:

1. Increase revenue by acquiring more customers.
2. Decrease COS by making internal adjustments, such as reshuffling your resource allocation.
3. Invest in self-serve onboarding.
4. Create excellent knowledge base articles and guide customers to read them.
6. Integrate new products or services to expand your Net Revenue Retention (NRR)
7. Alter your customer segment focus.

How does your gross margin rate affect other metrics?

The formula is:

(A x B) / C = LTV.

ARPA = \$500
Gross margin rate = 80%
MRR churn rate = 4%

(\$500 x 0.8) / 0.04 = \$10,000

Here’s what happens if you have a gross margin rate of 50%. We’ll keep the rest of the variables as they are:

ARPA = \$500
Gross margin rate = 50%
MRR churn rate = 4%

(\$500 x 0.5) / 0.04 = \$6,250