★ GUIDES · MONEY · HOW-TO

How to Calculate Gross Profit Margin

Your gross profit margin is 40.00% on $500,000 of revenue and $300,000 of cost of goods sold — the revenue needed for a 50.00% margin is $600,000.00, and the cost of goods sold needed for a 50.00% margin is $250,000.00. This guide works the calculation step by step: find the revenue, subtract the cost of goods sold, and check the result against the 40% strong line and the 20% thin line — in 7 steps.

The formula

The gross profit margin is the business’s answer to one question: what share of each sales dollar remains after the direct cost of what was sold. Take the revenue — total sales — subtract the cost of goods sold, and divide by the revenue. A margin of 40.00% means each dollar of revenue keeps 40 cents after the direct cost of goods sold. This guide works it in seven steps.

Step 1 — Find the revenue

Start with the revenue: total sales for the period, from the income statement. Use the same period for everything — a year, a quarter, a month. On the worked example the revenue is $500,000.00.

Step 2 — Find the cost of goods sold

Now find the cost of goods sold: the direct cost of the goods sold — materials, direct labour and manufacturing overhead — also from the income statement. It does NOT include rent, marketing or admin salaries. Use the same period as the revenue. On the worked example the cost of goods sold is $300,000.00.

Step 3 — Subtract the cost of goods sold from the revenue

Subtract the cost of goods sold from the revenue. That is the gross profit. On the worked example it is $500,000.00 − $300,000.00 = $200,000.00. Each dollar of revenue keeps 40 cents, and the other 60 cents paid for the goods.

Step 4 — Divide the gross profit by the revenue

Divide the gross profit by the revenue. That is the margin as a fraction. On the worked example it is $200,000.00 ÷ $500,000.00 = 0.40. Each dollar of revenue keeps 40 cents of gross profit.

Step 5 — Multiply by 100

Multiply by 100 to turn the fraction into a percent. On the worked example it is 0.40 × 100 = 40.00%. The gross profit margin is 40.00% — the business keeps 40 cents of every sales dollar after the direct cost of goods sold.

Step 6 — Work out the revenue the target needs

Divide the cost of goods sold by one minus the target to find the revenue the target needs. On the worked example the target is 50.00%, so the revenue needed is $300,000.00 ÷ 0.50 = $600,000.00. The smallest whole-dollar revenue for the margin to reach 50.00% is $600,000 — at $599,999 the revenue is $1 short of the $600,000 needed.

Step 7 — Check the result against the 40% strong line and the 20% thin line

Compare the margin with the lines: above 40% is strong for many businesses, 20–40% is workable, below 20% is thin and leaves little room for rent, wages and marketing. On the worked example the margin is 40.00%, so the business sits on the strong line. Below 0% the business sells below cost — with cost of goods sold of $550,000.00 and revenue of $500,000.00 the margin is −10.00%.

Three worked examples

The headline example: $500,000.00 of revenue and $300,000.00 of cost of goods sold. The gross profit is $500,000.00 − $300,000.00 = $200,000.00, the margin is $200,000.00 ÷ $500,000.00 = 40.00%, the revenue needed for the 50.00% target is $600,000.00, and the cost of goods sold needed for the 50.00% target is $250,000.00. Cost of goods sold of $250,000.00 instead: the margin is 50.00%. Revenue of $1,000,000.00 instead: the margin is 70.00%. Use the gross profit margin calculator for your own numbers.

Two reverses to check your answer

The largest whole-dollar cost of goods sold for the margin to stay at or above 50.00% is $250,000 — at $250,000 the margin is 50.00%, and at $250,001 the cost is $1 over the $250,000 allowed. The smallest whole-dollar revenue for the margin to reach 50.00% is $600,000 — at $600,000 the margin is 50.00%, and at $599,999 the revenue is $1 short of the $600,000 needed.

What revenue and cost of goods sold are, and what they are not

Revenue is total sales: everything the business sold in the period, before any cost is taken out. Cost of goods sold is the direct cost of those goods: materials, direct labour and manufacturing overhead. What they are not: revenue is not the profit, and cost of goods sold is not every expense — it does NOT include rent, marketing or admin salaries, which come out later, below the gross profit line. A business can report strong revenue and still lose money, because the cost of goods sold and the rest of the expenses can eat it all.

Why a margin above 40% is strong

A margin above 40% is strong because the gross profit is what pays for everything else: rent, wages, marketing and admin, and whatever is left is the net profit. At 40.00% the business keeps 40 cents of every sales dollar to cover those costs; at 25.00% it keeps only 25 cents, and the rent alone can take most of it. Below 20% the business has little room for a bad month, and a single price rise from a supplier can push it under.

What to do below target

A margin below target means each sales dollar keeps less than the target allows. If the margin were 25.00% instead, the business would be in the grocery-store band. The fixes are the formula’s two levers: raise the revenue, or cut the cost of goods sold. Raise prices, find cheaper materials, or cut waste on the line. The smallest whole-dollar revenue that reaches 50.00% is $600,000 — at $599,999 the revenue is $1 short of the $600,000 needed.

What a very high margin means

A margin above 50.00% does not mean twice as safe — it may mean the business is a software company, with low direct costs and most of its spending below the gross profit line, or it may mean the business is running its costs hard with little slack for a supplier price rise or a bad month. On $500,000.00 of revenue and no cost of goods sold the margin is 100.00% and the cost of goods sold needed for a 50.00% margin is $250,000.00. The 50.00% line is the line for making each sales dollar work; above it, the question is whether the business should spend more to grow faster — and whether it can afford the risk.

How the gross profit margin differs from net profit margin, operating margin and markup

Net profit margin divides by revenue too, but it subtracts ALL expenses first: rent, salaries, marketing, interest and tax, not just the direct cost of goods sold. Operating margin subtracts operating expenses but not interest or taxes. Markup divides the same gross profit by the cost of goods sold, not by revenue: a 40.00% margin on $500,000 of revenue is a 66.67% markup on $300,000 of cost. Gross profit margin is the gross test; net profit margin is the bottom-line test; operating margin is the operating test; markup is the pricing test.

Frequently asked questions

Frequently asked questions

What is gross profit margin?

Gross profit divided by revenue. On $500,000.00 of revenue and $300,000.00 of cost of goods sold the gross profit is $200,000.00 and the gross profit margin is 40.00% — each dollar of revenue keeps 40 cents after the direct cost of goods sold.

How do I calculate gross profit margin?

Subtract, divide, then multiply by 100. Take the revenue, subtract the cost of goods sold, divide by the revenue, times 100. On $200,000.00 ÷ $500,000.00 that is 40.00%.

What is a good gross profit margin?

Above 40% is strong for many businesses. A margin above 40% is strong for many businesses; grocery stores run around 25% or less; software companies run 70% or more because their direct costs are low. Below 20% is thin and leaves little room for rent, wages and marketing.

What does a negative gross profit margin mean?

The business sells below cost. With cost of goods sold of $550,000.00 and revenue of $500,000.00 the margin is −10.00% — every sale loses money: the business loses 10 cents on every dollar of revenue.

How much revenue do I need for a 50.00% margin?

$600,000.00 on $300,000 of cost of goods sold. The revenue needed is the cost of goods sold divided by one minus the target: $300,000.00 ÷ 0.50 = $600,000.00. At $599,999 the revenue is $1 short of the $600,000 needed.

How is gross profit margin different from net profit margin?

Net profit margin subtracts ALL expenses. Gross profit margin subtracts only the direct cost of goods sold; net profit margin subtracts rent, salaries, marketing, interest and tax as well. The operating margin subtracts operating expenses but not interest or taxes.