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:

The same profit gives different percentages because margin divides by the selling price and markup divides by the cost.

Converting between the two

Gross marginMarkup
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

Last updated: 24 November 2026