Markup and margin calculator
Set prices and check profit for products you sell. It shows both markup and margin, which are often confused, from whichever pair of values you know.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
Markup and margin both describe profit, but markup is measured against cost and margin against the selling price, so margin is always the smaller number. To price for a target margin, divide the cost by 1 minus the margin. To price for a target markup, multiply the cost by 1 plus the markup.
FormulaMarkup = (price - cost) / cost. Margin = (price - cost) / price. Price for a margin = cost / (1 - margin)
Worked exampleAn item that costs $42 and sells for $68 makes $26.00 of profit, which is a 61.90% markup and a 38.24% margin.
Example
- Known values
- Cost and price
- Cost
- 42
- Selling price
- 68
- Markup
- 60
- Margin
- 40
- Markup
- 61.90%
- Margin
- 38.24%
- Selling price
- $68.00
- Cost
- $42.00
Markup is profit divided by cost. Margin is profit divided by the selling price, so a 61.9% markup is a 38.2% margin here.
How to use the markup and margin calculator
- Under Known values, choose Cost and price, Cost and markup, or Cost and margin.
- Enter the Cost.
- Enter the Selling price, Markup or Margin to match your choice.
- The result updates as you type. Press Run any time, then Copy result or Download to keep it.
How it works
Markup = profit / cost x 100. Margin = profit / selling price x 100, where profit = price - cost.
From markup, price = cost x (1 + markup). From margin, price = cost / (1 - margin).
Margin must be less than 100% because profit can never be the whole price when cost is above 0. Cost must be greater than 0.
If the price is below cost, the result shows a loss per unit and negative markup and margin.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link. Results are estimates for general information, not financial, tax or medical advice.
Questions and answers
What is the difference between markup and margin?
Markup compares profit to cost. Margin compares profit to the selling price. A $40 item sold for $60 has a 50% markup and a 33.33% margin.
How do I price for a target margin?
Divide the cost by 1 minus the margin as a decimal. For a 40% margin on a $30 cost, the price is $30 / 0.6 = $50.
Why can't margin be 100%?
A 100% margin would mean the item cost nothing. Any cost above 0 keeps margin below 100%.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools