Skip to content
Built in Lahore, PakistanHow we check the math
mathbehind

Profit Margin vs Markup Calculator

Enter a cost and a selling price to see profit, margin and markup side by side, plus the price you need to hit a target margin.

By Muhammad Ahmad, Software EngineerLinkedIn· figures checked

Your numbers

$

What the item or service costs you.

$
%

Shows the price you would need to charge for this margin.

Profit margin

40.00%

Markup

66.67%

Profit per sale
$40.00
Price for your target margin
$120.00
The math behind it
  1. Profit

    $100.00 − $60.00equals$40.00

  2. Margin (profit ÷ price)

    $40.00 ÷ $100.00equals40%

  3. Markup (profit ÷ cost)

    $40.00 ÷ $60.00equals66.67%

  4. Price for a 50% margin

    $60.00 ÷ (1 − 50%)equals$120.00

Margin and markup both describe profit as a percentage, which is why they get mixed up so often. The difference is what you divide by. Margin divides profit by the selling price. Markup divides profit by the cost. For the same sale, markup is always the larger number, and pricing with the wrong one can cost you real money.

Figures checked by Muhammad Ahmad against Investopedia: Markup vs margin and Shopify: Margin vs markup explained. Prices and rules change, so confirm with the official source before relying on them. How we check the math

How it works

Profit is the selling price minus the cost. Margin is that profit divided by the selling price. Markup is the same profit divided by the cost.

To reach a target margin, divide the cost by (1 minus the margin). For a 50% margin on a $60 cost, that is $60 ÷ 0.5, which is $120. Adding 50% to the cost instead would give only $90, which is a 33.33% margin.

Margin can never reach 100%, because that would mean the item cost nothing. Markup has no upper limit.

A worked example

An item that costs $60 and sells for $100 makes $40 of profit. That is a 40% margin ($40 ÷ $100) and a 66.67% markup ($40 ÷ $60). To earn a 50% margin on the same $60 cost, you would need to charge $120.

More examples

A $60 item marked up 40% sells for $84, which is only a 28.57% margin. For a 40% margin, the price must be $100.

Common mistakes

  • Applying a margin percentage as a markup, which underprices.
  • Forgetting that discounts come straight out of margin.
  • Leaving shipping and payment fees out of cost.
  • Comparing your markup with a competitor's margin.

Questions people ask

Which should I use for pricing, margin or markup?

Either works as long as you are consistent. Retailers often think in markup because it starts from cost. Finance teams and most business reports use margin because it shows what share of revenue you keep. The mistake to avoid is setting a markup when your target was written as a margin.

How do I convert markup to margin?

Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5, which is a 33.33% margin. Going the other way, markup = margin ÷ (1 − margin), so a 40% margin is a 66.67% markup.

Is this gross margin or net margin?

It is gross margin on a single sale: price minus the direct cost of what you sold. Net margin also subtracts overheads such as rent, salaries and marketing, which this calculator does not include.

What is a 50% markup as a margin?

33.3%. A 50% markup on a $100 cost gives a $150 price. The $50 profit is 50% of the cost but only 33.3% of the price.

What markup do I need for a 30% margin?

About 42.9%. Markup = margin ÷ (1 − margin), so 0.30 ÷ 0.70 = 0.429. A $100 cost becomes a $142.86 price, which gives a 30% margin.