How to use Margin calculator
- 01Pick a modeMargin, target price or conversion.
- 02Type the numbersCost, price or a percent.
- 03Read the resultWith the formula used.

Margin is profit over price.
Gross margin = (price − cost) ÷ price. To hit a target margin, divide the cost by 1 minus the margin: a 30 cost at a 40% margin needs a price of 50. Margin can never reach 100%, while markup has no limit, so the same profit always shows a smaller margin than markup.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
What is the difference between margin and markup?
Both use the same profit but divide it by different numbers. Buying at 30 and selling at 50 gives 20 of profit: 20 ÷ 50 = 40% margin, and 20 ÷ 30 = 66.7% markup.
How do I price for a 40% margin?
Divide the cost by 0.6. A 30 cost needs a 50 price. Adding 40% to the cost instead (42) would give only a 28.6% margin.
How do I convert markup to margin?
Margin = markup ÷ (100 + markup). A 25% markup is a 20% margin; a 100% markup is a 50% margin.
Is what I type sent anywhere?
No. The calculation runs in your browser and nothing you type leaves your device.