Business and e-commerce · Calculator
Margin and markup calculator
Enter the cost price and the price to see the profit, margin and markup, or set a desired margin or markup, and the calculator works out the selling price you need.
Your data
How we calculate
profit = price − cost pricemargin = profit ÷ price × 100%markup = profit ÷ cost price × 100%price for a desired margin = cost price ÷ (1 − margin)price for a desired markup = cost price × (1 + markup)
Assumptions
- Profit is calculated before VAT, tax on profits, marketplace fees, card processing fees and shipping.
- Margin and markup are per unit; quantity is not taken into account.
Limitations
- A cost price of 0 makes the markup undefined (division by zero), and the margin at a positive price becomes 100%.
- A price of 0 with a positive cost price means losing the whole cost price; the margin is then undefined.
- Returns, discounts, advertising and overheads are not included. There is a unit economics calculator for them.
Sources
A universal formula with no external constants. Default values are labelled as approximate examples, not verified facts.
Questions and answers
How is margin different from markup?
Margin is the share of profit in the price; markup is how much the price exceeds the cost price. With a cost price of 600 and a price of 1,000, the profit is 400: a margin of 40% and a markup of 66.7%.
Why is a margin of 100% not possible?
A margin of 100% would mean that the whole price is profit, that is, the cost price is zero. With any positive cost price, the price you need becomes infinite.
Related tools
The result is mathematically exact for the data you entered and the calculation rules described; real conditions (tariffs, a supplier’s rounding, your contract) may differ from what you entered.
Checked by the Calc editorial team: three independent implementations of the formula, test cases and the live page on a phone. Last check: 27 September 2026