Profit margin calculator
Profit, margin and markup from a cost and a price, or the price that gives a target margin or markup.
Runs entirely in your browser. Your files never leave your device.
About this tool
Margin and markup are often confused, and the difference matters when you set prices. Both start from the profit, the selling price minus the cost. The margin divides it by the price, the markup divides it by the cost: an item bought 60 and sold 100 has a 40 % margin but a 67 % markup.
Enter a cost and a price to see both, or start from the margin or the markup you want and the calculator returns the selling price to charge. Useful for shops, freelancers quoting a job, resellers and anyone pricing a product. Prices are taken excluding tax: add VAT or sales tax afterwards with the dedicated calculator.
How it works
- Choose what you know besides the cost: price, margin or markup.
- Enter the cost and that value.
- Read the profit, the margin, the markup and the price.
Profit = price − cost. Margin = profit ÷ price. Markup = profit ÷ cost. Price from a margin = cost ÷ (1 − margin); from a markup = cost × (1 + markup).
Worked example
You buy a lamp for €60 and sell it for €100. The profit is €40: a margin of 40 % (40 ÷ 100) and a markup of 66.7 % (40 ÷ 60).
To earn a 30 % margin on an item that costs you €42, the price must be 42 ÷ (1 − 0.30) = €60, a markup of about 43 %.
Good to know
- Adding 30 % to the cost does not give a 30 % margin: it gives 23 %. Always say which one you mean.
- Work prices out excluding VAT, then add the tax at the end.
- Include shipping, packaging and payment fees in the cost, or the margin will look better than it is.