Markup vs Margin Calculator

Convert between markup and margin, and calculate the correct selling price from a target margin or markup.

Calculated in your browser. No data sent to servers.

Formula reviewed Nov 2026

Try an example

Convert from

Results

Margin

-

Markup

-

Suggested Price

-

How to use this calculator

Choose a mode: enter cost and price to see both percentages; enter a cost and a target margin to get the correct price; or enter a cost and a target markup to get the price.

The formula behind this result

Margin = (Price − Cost) ÷ Price. Markup = (Price − Cost) ÷ Cost. Margin to Markup: Markup = Margin ÷ (1 − Margin). Markup to Margin: Margin = Markup ÷ (1 + Markup). Price from Margin: Price = Cost ÷ (1 − Margin). Price from Markup: Price = Cost × (1 + Markup).

Frequently asked questions

Why does a 30% markup only give a 23% margin?

Because markup is calculated on cost, while margin is on price. A $30 profit on a $100 cost is a 30% markup, but the selling price is $130, making the margin $30 ÷ $130 = 23.1%.

What's the formula to set a price from a target margin?

Price = Cost ÷ (1 − Target Margin). For example, for a 40% margin on a $100 cost, price = 100 ÷ 0.6 = $166.67.

Explore more