Gross margin (gross profit margin). What it means.

Gross margin is the percentage of revenue left after subtracting the direct cost of delivering the product or service, known as cost of goods sold.

By Brady Heinrich · Updated

Definition

Gross margin is the percentage of revenue left after subtracting the direct cost of delivering the product or service, known as cost of goods sold.

Gross margin shows how much of each dollar of revenue is available to pay for everything else: sales, marketing, product development, overheads and profit. It is the first test of whether a business model can work at scale.

How to calculate gross margin

The gross margin formula is:

Gross margin % = (revenue - cost of goods sold) / revenue x 100

Revenue minus cost of goods sold is gross profit, a dollar amount. Gross margin is that amount as a percentage of revenue. People use the two terms loosely, so check whether a figure is in dollars or percent.

What counts as cost of goods sold

Cost of goods sold, or COGS, is the cost that exists because customers are being served. For a software company the usual split is:

Included in COGSNot included
Hosting and infrastructureSales and marketing
Customer support and onboarding staffProduct development and engineering
Third-party software and data built into the productGeneral and administrative costs
Payment processing feesOffice rent

There is judgment at the edges, such as how much of a customer success team is support and how much is sales. Because companies draw the line differently, gross margins are only roughly comparable between them.

Margin is not markup

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A product that costs $60 and sells for $100 has a 40% margin and a 66.7% markup. Confusing the two leads to underpricing.

What affects gross margin

Price, discounting and delivery cost. In software, the main pressures are infrastructure bills that grow with usage, fees for third-party services such as AI models, and services work like custom implementation, which carries far lower margins than the subscription itself.

What is a good gross margin?

A good gross margin depends on the kind of business. As a rule of thumb, subscription software is expected to keep about 70% to 80% or more of revenue as gross profit, because serving one more customer costs little. Services, hardware and retail businesses run much lower, since each sale carries real labour or material cost. A software company well below that range usually has a heavy services component or an expensive cost to serve, and both limit what it can spend on growth.

An example

A software company has $1,000,000 in revenue. Its cost of goods sold is $90,000 for hosting, $80,000 for support staff, $30,000 for third-party software and $20,000 in payment fees: $220,000 in total. Gross profit = 1,000,000 - 220,000 = $780,000. Gross margin = 780,000 / 1,000,000 x 100 = 78%.

The common mistake

Leaving real delivery costs out of cost of goods sold. Moving support, onboarding or hosting into operating expenses raises gross margin on paper and changes nothing about how much cash each customer leaves behind.

How people search for gross margin

  • gross margin14,800 a month
  • gross margin formula12,100 a month
  • how to calculate gross margin8,100 a month
  • saas gross margin50 a month

US monthly searches, Google Ads keyword data.

Related terms

Go deeper

Building something ambitious? Let's talk.

We reply within one business day.