How we calculate
The formulas for the three modes and the margin to markup conversion, step by step, with a cost of US$100 and a price of US$150.
1. I have cost and price
profit = price − cost; margin = profit ÷ price; markup = profit ÷ cost- Subtract the cost from the price:
US$150 − US$100 = US$50 - Divide the profit by the price:
US$50 ÷ US$150 = 33.33% margin - Divide the profit by the cost:
US$50 ÷ US$100 = 50.00% markup
2. I want a margin
price = cost ÷ (1 − margin)- Turn the margin into a decimal: 33.33% is 0.3333.
- Subtract it from 1:
1 − 0.3333 = 0.6667 - Divide the cost:
US$100 ÷ 0.6667 = US$150 (rounded)
3. I want a markup
price = cost × (1 + markup)- Turn the markup into a decimal and add 1: 50% is 1.50.
- Multiply the cost:
US$100 × 1.50 = US$150
4. From margin to markup and back
markup = margin ÷ (1 − margin); margin = markup ÷ (1 + markup)- Margin to markup:
0.3333 ÷ (1 − 0.3333) = 0.50, that is 50.00% - Markup to margin:
0.50 ÷ (1 + 0.50) = 0.3333, that is 33.33%
If you add tax, it goes on at the end: price with tax = price × (1 + tax). Margin and markup are calculated without tax.
If there is a fee per sale, it comes out of the price: profit = price − cost − price × fee, and the margin is that profit ÷ price. For a target margin: price = cost ÷ (1 − margin − fee).
We do not round intermediate steps and show two decimals. A margin of 100% or more is not possible because cost is never zero.