Profit Margin & Markup Calculator
Gross margin is the share of the selling price you keep as profit. Markup is the profit as a share of the cost. Enter both amounts to see each one.
Calculator
Your numbers are worked out in your browser. They are not sent anywhere, saved, or added to the page address.
Formulas
With cost C and selling price P:
Gross profit = P − C
Gross margin = (P − C) ÷ P × 100
Markup = (P − C) ÷ C × 100
Worked example
Cost 70, selling price 100:
- Gross profit = 100 − 70 = 30.00
- Gross margin = 30 ÷ 100 × 100 = 30.0%
- Markup = 30 ÷ 70 × 100 = 42.9%
The same profit gives different percentages because margin divides by the selling price and markup divides by the cost.
Converting between the two
| Gross margin | Markup |
|---|---|
| 20.0% | 25.0% |
| 30.0% | 42.9% |
| 50.0% | 100.0% |
Markup = margin ÷ (1 − margin), and margin = markup ÷ (1 + markup), with percentages as fractions.
Limits and what this leaves out
- Enter digits and one decimal point only, up to four decimal places. The largest amount is 999999999.9999.
- Negative numbers, commas, symbols and scientific notation are not accepted.
- Gross profit is rounded to two decimals and percentages to one; halves round away from zero.
- A percentage shows "Not defined" when it would divide by zero.
- This is a gross calculation in one currency. It leaves out net margin, tax, fees, shipping and other costs. It is for planning, not financial advice.
Last updated: 24 November 2026