Let’s work it out.

Pick what you want to work out. The answer updates as you type.

What do you want to work out?
Updates as you type

Gross margin is profit ÷ selling price; markup is profit ÷ cost. Include the costs that matter for your decision. Amounts use your input currency.

BUSINESS · FREE CALCULATOR

Profit Margin & Markup Calculator

Use this free profit margin calculator to see your gross margin, markup, and profit from a cost and a selling price. You can also find the price to charge for a target margin or markup, and convert between margin and markup, which are easy to mix up.

01 / GET STARTED

How to use this calculator

  1. Choose what you want to work out, such as “Margin from prices”.
  2. Enter the cost and the price, or the margin or markup you want.
  3. The margin, markup, profit, and working update as you type.
02 / THE WORKING

How the calculation works

Margin = (price − cost) ÷ price × 100
Markup = (price − cost) ÷ cost × 100

Margin and markup both measure profit, but against different bases: margin compares profit with the selling price, markup compares it with the cost. The same sale always has a smaller margin than markup.

A QUICK EXAMPLE

Cost 60, selling price 100

Profit 40 → 40% margin, 66.67% markup

The profit of 40 is 40% of the selling price (the margin) and 66.67% of the cost (the markup).

03 / THE DIFFERENCE

Margin vs. markup

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. An item that costs 60 and sells for 100 makes 40 profit: a 40% margin, but a 66.67% markup.

Confusing the two is a common pricing mistake. Adding a 40% markup to a 60 cost gives a price of 84, which is only a 28.57% margin, not 40%.

MarginEquivalent markup
20%25%
25%33.33%
33.33%50%
40%66.67%
50%100%
04 / PRICING

How to price for a target margin

Divide the cost by 1 minus the target margin as a decimal. For a 40% margin on a cost of 60, the price is 60 ÷ 0.6 = 100. To add a markup instead, multiply the cost by 1 plus the markup: a 40% markup on 60 is 60 × 1.4 = 84.

05 / CONVERTING

How to convert margin to markup and back

Markup = margin ÷ (100 − margin) × 100
Margin = markup ÷ (100 + markup) × 100

A 25% margin is a 33.33% markup, and a 100% markup (doubling the cost) is a 50% margin. Use the “Margin ↔ markup” mode to convert any value.

06 / GOOD TO KNOW

Gross margin vs. net margin

This calculator works out gross margin: price minus the cost of the item itself. Net margin also subtracts overheads such as rent, wages, marketing, and taxes, so it is always lower. Include whichever costs matter for your decision in the cost field.

07 / A LITTLE MORE CLARITY

Common questions

How do I calculate profit margin?

Subtract the cost from the selling price, divide by the selling price, and multiply by 100. Cost 60 and price 100 give a margin of (100 − 60) ÷ 100 × 100 = 40%.

What is the difference between margin and markup?

Margin is profit divided by the selling price; markup is profit divided by the cost. A 60 cost sold at 100 is a 40% margin but a 66.67% markup.

How do I find the selling price for a target margin?

Divide the cost by 1 minus the margin as a decimal. For a 40% margin on a 60 cost, the price is 60 ÷ 0.6 = 100.

How do I convert margin to markup?

Markup = margin ÷ (100 − margin) × 100. A 25% margin is a 33.33% markup.

Can a margin be negative?

Yes. If the cost is more than the selling price, the sale makes a loss and the margin is negative.

Is this gross or net profit margin?

Gross margin, based on the cost you enter. Net margin also subtracts overheads such as rent and wages.