Wall of Tools

Profit Margin and Markup Calculator: Price, Margin and Profit

Find the margin and markup from a cost and a price, or the price to charge for the margin you want. Both shown side by side, so you never mix them up.

  • Runs in your browser, nothing is uploaded
  • Free, no sign-up
  • 22 automated checks
Profit margin-of the selling price
Markup-on top of the cost
Selling price-
Profit-

Margin and markup side by side

Margin or markup: know which one you mean

Margin and markup describe the same profit, measured against different things. Markup is the profit as a share of what the item cost you. Margin is the profit as a share of what you sold it for. Buy something for 30 and sell it for 50, and the profit of 20 is a 66.7% markup but a 40% margin. Mixing the two up is one of the most common pricing mistakes in small businesses: if you want a 40% margin and add 40% to the cost, you end up with a margin of only 28.6%.

This calculator works the numbers out in any direction and shows both side by side, so you can see which one a supplier, a manager or a price list is talking about.

How to use it

  1. Pick what you know. Usually the cost and the price; or the cost and the margin you want, to find the price; or the cost and your usual markup.
  2. Type the numbers. The results update as you type.
  3. Read the margin, markup, price and profit, and the bar that shows how much of the price is cost and how much is profit.
  4. Type how many you sell to see the profit on a whole order or a month of sales.

The sums

  • Profit = price - cost
  • Margin = profit / price x 100
  • Markup = profit / cost x 100
  • Price for a margin = cost / (1 - margin / 100). For a 40% margin on a cost of 30: 30 / 0.6 = 50.
  • Price for a markup = cost x (1 + markup / 100)

A margin can never reach 100%, because that would mean the item cost nothing. A markup has no ceiling: a 300% markup is common for things that are cheap to make.

Good to know

  • Use prices without sales tax. VAT or GST collected on a sale is not yours, so leave it out; the VAT and GST calculator can take it out of a price for you.
  • Gross margin, not net: this is the margin on the item. Rent, wages and other running costs come out of it afterwards. To see how many sales cover those, use the break-even calculator.
  • Rounding: prices are rounded to the cent, and the margin shown is worked out from the rounded price, so it may be a hair off the margin you typed.
  • Nothing is sent or stored. The sums run in this page.

How this tool was tested

Before publishing, I ran 22 automated checks on the finished page in Microsoft Edge, which is built on Chromium like Chrome. Last full run: 15 November 2026.

  • Known answers: a cost of 30 and a price of 50 is a 40% margin and a 66.7% markup; a 40% margin on 30 needs a price of 50; adding 40% to the cost only gives a 28.6% margin; a 50% markup is a 33.3% margin. All match the formulas in the article worked by hand.
  • 2,000 random costs with random margins and markups: the price the tool suggests gives back the margin or markup asked for, to within the half cent that rounding the price allows, and price minus cost always equals the profit.
  • Limits: a margin of 100% or more is refused with a reason, and a price below cost shows a negative margin and a loss.
  • Using the tool: all three ways in, the quantity, the loss warning and the margin-to-markup table.

What the tests did not cover: Safari and Firefox were not tested. The tool works out the margin on one item; it does not know about overheads, discounts or tax. Something not working? Tell me on the contact page.

FAQ

What is a 50% markup as a margin?

33.3%. Cost 100, price 150, profit 50, and 50 is a third of 150.

What is a good profit margin?

It depends on the trade. Supermarkets work on a few percent; software and services often on far more. Compare with businesses like yours rather than a single number.

Why is my margin negative?

The price is below the cost, so each sale loses money. The calculator shows the loss in red.

Published 16 November 2026