Start with one sale
Suppose an item costs 80 and sells for 100. Gross profit is 20. Profit margin divides that profit by the selling price: 20 ÷ 100 = 20%. Markup divides the same profit by cost: 20 ÷ 80 = 25%. Both percentages are correct; their denominators differ.
Setting a price
For a target gross margin m, expressed as a decimal below 1, selling price = cost ÷ (1 − m). A cost of 80 and target margin of 20% gives a price of 100. Simply adding 20% to cost gives 96, a margin of about 16.67%.
Use a consistent cost basis
Decide whether cost includes freight, packaging and other direct costs. This calculator excludes overhead, taxes and transaction fees unless you include them in the inputs. Gross profit is not net profit. When cost is zero, markup is undefined, even though margin may be calculated. A negative result means a loss on the entered basis.
Try the calculator