How to use the margin and markup calculator
- Enter the cost of the item: what you paid for it, or what it costs to make, including any fees you want to count.
- Enter the selling price.
- Enter a target margin and a target markup to see the prices that would reach them.
The calculator uses the currency chosen in the header. For marketplace sales, run the relevant fee calculator first and add the fees to the cost, so the margin is what you really keep.
How margin and markup are worked out
Margin = profit ÷ price × 100
Markup = profit ÷ cost × 100
Price for a target margin = cost ÷ (1 − margin)
Price for a target markup = cost × (1 + markup)
Margin and markup describe the same profit from two directions. Margin compares it with the price, so it can never reach 100 percent. Markup compares it with the cost, so it can be any size: an item bought for $10 and sold for $40 has a 300% markup but a 75% margin.
Worked example
A product costs $50 and sells for $75:
- Profit is $75 − $50 = $25.00.
- Margin is $25 ÷ $75 = 33.3%, while markup is $25 ÷ $50 = 50%.
- For a 40% margin the price would need to be $50 ÷ 0.6 = $83.33.
Margin and markup side by side
| Markup | Margin | Price for a $10 cost |
|---|---|---|
| 25% | 20% | $12.50 |
| 50% | 33.3% | $15.00 |
| 100 percent | 50% | $20.00 |
| 150% | 60% | $25.00 |
| 200% | 66.7% | $30.00 |
A useful conversion: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin), with both written as decimals.
The most common pricing mistake
Adding a target margin to the cost as if it were a markup leaves the real margin short. To make a 30% margin on an item that costs $70, adding 30% gives $91, which is only a 23% margin. The correct price is $70 ÷ 0.7 = $100. On every sale the gap grows with the target, and with marketplace fees on top it can wipe out the expected profit entirely.
Fees also need care: a marketplace that takes 13% of the price takes it from the margin, not from the cost. If the gross margin is 40% before fees, it is roughly 27% after them.
Margin after marketplace and card fees
When you sell through a marketplace or take card payments, the platform’s fee comes out of the price, so the margin you keep is lower than the margin on paper. A product bought for $20 and sold for $40 has a 50% margin before fees. If the marketplace keeps 13% of the price, the fee is $5.20, profit falls to $14.80 and the margin to 37%. To protect a target margin after fees, add the fee rate to the margin before dividing: for a 35% margin on a platform taking 13%, the price is the cost divided by 1 − 0.35 − 0.13, or 0.52.
The marketplace fee comparison shows the fee rate on each platform for the same sale, which you can use in that formula.
Tips for setting prices
- Decide in margin, quote in price. Margins are easier to compare across products of different prices.
- Include all costs. Shipping, packaging and fees belong in the cost when you set a target margin.
- Check the whole sale. The reseller profit calculator takes fees and shipping into account automatically.