Profit Margin Calculator

Enter your cost and selling price. Profit margin = (price − cost) ÷ price × 100. A product that costs $60 and sells for $100 has a 40% margin and a 66.7% markup.

By Mustansar Iqbal Khan, independent developerUpdated

Profit Margin Calculator

$
$
Result

Working it out…

How do I calculate profit margin?

Subtract cost from revenue to get gross profit, then divide by revenue. Margin is always a share of the selling price, so it can never be 100% or more.

Margin % = (Revenue − Cost) ÷ Revenue × 100

What is the difference between margin and markup?

Markup compares profit to cost; margin compares profit to price. The same sale always shows a higher markup than margin.

MarkupMargin
25%20%
50%33.3%
100%50%
200%66.7%

What is a good profit margin?

It depends on the industry. Grocery stores often run net margins of 1–3%, restaurants 3–6%, and software companies 20% or more. Compare against businesses like yours, not the whole market.

Frequently asked questions

What is a 40% profit margin?

It means 40 cents of every sales dollar is gross profit. On a $100 sale, cost is $60.

How do I price for a target margin?

Divide cost by (1 − margin). For a 40% margin on a $60 cost: 60 ÷ 0.6 = $100.

Is this gross or net margin?

Gross margin, which only subtracts the direct cost of the product. Net margin also subtracts rent, wages, taxes and other overheads.