Profit margin and markup calculator
Start from a target margin and your cost, and this calculator gives you the selling price; everything is calculated in your browser. Enter any two of your cost, selling price, profit margin or markup and it fills in the rest, including the profit in money. Margin and markup both describe profit, but they divide by different numbers, and mixing them up leads to prices that are too low.
Runs in your browser; what you type never leaves your device.
Your numbers
Enter any two of cost, selling price, margin and markup to see the rest.
- Selling price
- Profit
- Profit margin
- Markup
- Cost
This is a pricing estimate, not financial or tax advice; it ignores taxes, fees, discounts and other costs unless you include them in the cost. Everything is calculated in your browser and no data is collected. This page was written with the help of AI tools and checked by a person.
How to use it
- Fill in exactly two boxes: for example the cost and the selling price, or the cost and the margin you want.
- Leave the other two boxes empty; they are worked out for you.
- Read the cost, selling price, profit, margin and markup in the results and copy the one you need.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by the selling price; markup is profit divided by the cost. With a cost of 60 and a price of 100, profit is 40, so margin is 40% and markup is 66.67%. Markup is always the larger number when profit is positive.
How do I calculate selling price from cost and margin?
Price = cost ÷ (1 − margin). For a cost of 60 and a 40% margin, price = 60 ÷ 0.6 = 100. Do not simply add 40% to the cost: that is a 40% markup, which gives 84 and only a 28.57% margin.
How do I turn a markup into a margin?
Margin = markup ÷ (1 + markup). A 50% markup on a cost of 60 gives a price of 90 and a margin of 30 ÷ 90 = 33.33%. A 100% markup is a 50% margin, and a 25% margin is a 33.33% markup.
Which number formats does it read?
Plain numbers, 1,234.56 with comma thousands, and 1.234,56 or 12,5 with a decimal comma. A comma followed by one or two digits is a decimal (12,5 is 12.5); groups of exactly three digits are thousands (1,200 is 1200). If a number could be read two ways, such as 12,3456, the calculator asks you to rewrite it instead of guessing.
Why can't the margin be 100% or more?
Margin is profit as a share of the selling price, and profit can never equal the whole price while the cost is above zero. A 100% margin would mean a cost of zero, so the calculator asks for a margin below 100%.
What happens if the selling price is below the cost?
The profit, margin and markup all turn negative, which means a loss. A cost of 100 sold at 80 gives a profit of -20, a margin of -25% and a markup of -20%, and the calculator shows a warning.