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
  1. Subtract the cost from the price: US$150 − US$100 = US$50
  2. Divide the profit by the price: US$50 ÷ US$150 = 33.33% margin
  3. Divide the profit by the cost: US$50 ÷ US$100 = 50.00% markup
Cost US$100, Price US$150: Margin 33.33%, Markup 50.00%Margin 33.33% of the priceCost US$100Profit US$50Markup 50.00% of the cost

2. I want a margin

price = cost ÷ (1 − margin)
  1. Turn the margin into a decimal: 33.33% is 0.3333.
  2. Subtract it from 1: 1 − 0.3333 = 0.6667
  3. Divide the cost: US$100 ÷ 0.6667 = US$150 (rounded)

3. I want a markup

price = cost × (1 + markup)
  1. Turn the markup into a decimal and add 1: 50% is 1.50.
  2. Multiply the cost: US$100 × 1.50 = US$150

4. From margin to markup and back

markup = margin ÷ (1 − margin); margin = markup ÷ (1 + markup)
  1. Margin to markup: 0.3333 ÷ (1 − 0.3333) = 0.50, that is 50.00%
  2. 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.