CCalclabhub

Profitability

How To Calculate Gross Margin

Gross margin is gross profit as a share of revenue, and the most common error in using it is confusing it with markup.

Quick Answer

gross margin = (revenue - cost of goods sold) / revenue

GM
Gross margin, as a percentage of revenue
GP
Gross profit, revenue minus cost of goods sold
R
Revenue for the period

Subtract the cost of goods sold from revenue to get gross profit, then divide by revenue. A business with 250000 of revenue and 150000 of cost of goods sold has a 40 percent gross margin, while the markup on the same numbers is 66.7 percent.

What Is Gross Margin?

Gross margin is gross profit divided by revenue. A business with two hundred and fifty thousand of revenue and one hundred and fifty thousand of cost of goods sold has forty percent, meaning forty cents of every revenue dollar survives the direct cost of producing what was sold.

Cost of goods sold is deliberately narrow. It covers materials, direct labour and manufacturing overhead that is tied to production. It excludes rent on the office, sales salaries, marketing and admin, all of which are operating expenses that come further down the income statement.

The distinction between gross margin and markup is the single most common confusion in this area. Markup divides gross profit by the cost of goods sold, gross margin divides it by revenue. The same numbers give forty percent and sixty six point seven percent respectively, and they are not interchangeable.

The relationship between them is fixed rather than arbitrary. Markup equals gross margin divided by one minus gross margin, so a fifty percent markup on cost corresponds to a thirty three point three percent margin on revenue. Knowing one always gives the other.

Gross margin is a statement about production efficiency and pricing power rather than profitability. A business can have an excellent gross margin and still lose money if its fixed operating costs are too large, which is exactly what happens to thin-margin businesses with heavy overheads.

Comparisons are only meaningful within an industry. Software businesses routinely report gross margins in the eighties or nineties, retailers in the twenties and thirties, and manufacturers somewhere in between depending on materials intensity. A low margin in one sector can be excellent in another.

The ratio is a useful screening tool for pricing decisions. If gross margin falls while revenue rises, the business is buying volume with price or is absorbing input cost increases, and either trend shows up in the ratio long before it shows up in net profit.

It is also the metric behind break-even analysis, because fixed operating costs are covered out of gross profit. The contribution margin generalises the same idea down to a single product, where variable cost is compared to price rather than total cost to total revenue.

A single period is noisy. Seasonal discounting, a one-off materials spike or a change in the product mix can all move gross margin sharply, so the trend across several periods usually says more than any one number.

Inventory accounting affects the cost of goods sold and therefore the margin. The method used should be consistent across periods, because switching methods changes the reported cost without any change in the underlying business.

Finally, gross margin is not cash. A sale that is invoiced but unpaid still counts as revenue, and the cash arrives later or not at all, so gross margin has to be read alongside the working capital position to mean much.

Formula

GM = (R - C) / R

Gross profit as a share of revenue. Multiply by a hundred for a percentage.

SymbolMeaning
GMGross margin
RRevenue
CCost of goods sold

markup = GM / (1 - GM)

Converts a gross margin into the equivalent markup on cost, which is the figure used when pricing from cost.

SymbolMeaning
MMarkup
GMGross margin

How To Calculate Gross Margin

  1. 1

    Take revenue from the income statement

    Gross sales for the period, after returns and discounts but before any costs are deducted. Use the same period as the cost figure.

  2. 2

    Take the cost of goods sold

    Materials, direct labour and production overhead. Exclude office rent, sales salaries, marketing and administration, which are operating costs.

  3. 3

    Subtract to get gross profit

    Two hundred and fifty thousand minus one hundred and fifty thousand leaves one hundred thousand. This is the amount revenue contributes to fixed costs.

  4. 4

    Divide gross profit by revenue

    One hundred thousand over two hundred and fifty thousand is 0.4, or forty percent. This is gross margin.

  5. 5

    Compare with markup if you price from cost

    One hundred thousand over one hundred and fifty thousand is 0.667, a sixty six point seven percent markup. The same business, two different denominators.

Examples

Example 1: 250000 of revenue against 150000 of cost of goods sold

Revenue
250000
Cost of goods sold
150000
StepCalculationResult
Gross profit250000 - 150000100000
Markup on cost100000 / 1500000.6667
Gross margin100000 / 2500000.4

Result: The business has a gross margin of 0.4, which is 40 percent, the same as a 0.6667 markup on cost.

Example 2: A retailer with 480000 of revenue and 369600 of cost

Revenue
480000
Cost of goods sold
369600
StepCalculationResult
Gross profit480000 - 369600110400
Markup on cost110400 / 3696000.2987
Gross margin110400 / 4800000.23

Result: A gross margin of 0.23, or 23 percent, typical of a retailer, corresponding to a 0.2987 markup on cost.

Example 3: A software business with 1200000 of revenue

Revenue
1200000
Cost of goods sold
132000
StepCalculationResult
Gross profit1200000 - 1320001068000
Markup on cost1068000 / 1320008.0909
Gross margin1068000 / 12000000.89

Result: A gross margin of 0.89, or 89 percent, typical of software, which is an enormous markup on a very small direct cost.

Calculator

Gross margin

40.00%

Gross profit
$100,000.00
Markup on cost
66.67%
Cost of goods sold as share of revenue
60.00%

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

Prefer a full-width tool? Open the Gross Margin calculator page.

Common Mistakes

  • Confusing gross margin with markup

    Markup divides gross profit by cost, gross margin divides it by revenue. The same numbers give different percentages and quoting the wrong one misleads readers.

  • Including operating expenses in the cost of goods sold

    Rent, sales salaries and admin are operating costs that come below the gross line. Including them produces a margin that no industry comparison can use.

  • Comparing margins across industries

    Software, retail and manufacturing have structurally different margins. A comparison only means something within a sector or against the same business over time.

  • Reading a high margin as profitability

    Gross margin sits above operating costs. A business can have an excellent gross margin and still lose money once fixed costs are covered.

  • Using a single period as the whole story

    Discounting, seasonal mix and one-off materials spikes all move the ratio. The trend across several periods is far more informative.

  • Changing the inventory method without restating

    It changes the cost of goods sold and therefore the margin, even though the underlying business has not changed. Consistency matters.

  • Treating gross margin as cash

    Revenue counts when invoiced, not when paid. Gross margin has to be read alongside the working capital position to mean very much.

FAQ

What is the formula for gross margin?

Gross profit divided by revenue. Two hundred and fifty thousand of revenue with one hundred and fifty thousand of cost of goods sold gives forty percent.

What is the difference between gross margin and markup?

Markup divides gross profit by cost of goods sold, gross margin divides it by revenue. Forty percent margin equals a sixty six point seven percent markup.

What costs belong in the cost of goods sold?

Materials, direct labour and production overhead. It excludes rent, sales salaries, marketing and administration, which are operating expenses.

What is a good gross margin?

It depends entirely on the sector. Software often runs above eighty percent, retail in the twenties and thirties, and manufacturing between those. Compare within your industry.

Can gross margin be negative?

Yes, when the cost of goods sold exceeds revenue. That means the business loses money on every unit before any fixed costs are considered.

How do I convert a margin into a markup?

Divide the margin by one minus the margin, so a forty percent margin becomes sixty six point seven percent. The reverse divides markup by one plus markup.

References

  1. [1]Wikipedia, Gross margin — https://en.wikipedia.org/wiki/Gross_margin
  2. [2]Wikipedia, Cost of goods sold — https://en.wikipedia.org/wiki/Cost_of_goods_sold
  3. [3]Wikipedia, Profit margin — https://en.wikipedia.org/wiki/Profit_margin
  4. [4]Wikipedia, Income statement — https://en.wikipedia.org/wiki/Income_statement