How to use the markup vs margin calculator
The calculator has three tools for the three questions people usually have.
- Convert. Choose whether you know the markup or the margin, enter the percentage and read the other. The table lists common markups from 10% to 200% with the margin each one gives.
- Price from cost. Enter what an item costs you, choose whether you price with a markup or a target margin, and enter the percentage. The result shows the price, the profit per unit and both percentages.
- Margin from price. Enter the cost and the price you already charge to see the markup and the margin it gives.
Use the cost of one unit: the purchase price for resale goods, or materials and direct labor for things you make. If shipping or import duties are part of getting the item to you, include them in the cost.
The formulas
Markup = Profit ÷ Cost
Margin = Profit ÷ PriceBoth are percentages of the same profit. Markup measures it against what you paid, margin against what the customer pays.
Markup = Margin ÷ (1 − Margin)Percentages are used as decimals: a 30% markup is 0.30, so the margin is 0.30 ÷ 1.30 = 23.08%.
Price from a margin = Cost ÷ (1 − Margin)
A worked example
A shop buys an item for $40 and adds a 30% markup. The price is $52.00 and the profit $12.00 a unit.
That profit is 30.00% of the cost, but only 23.08% of the price. If the owner wanted a 30% margin, the price would have to be $57.14, a markup of 42.86%.
If the item already sells for $60 against a cost of $40, the margin is 33.33% and the markup 50.00%.
The classic mistake: a 30% markup is not a 30% margin
Suppose your budget assumes a 30% gross margin because that is what it takes to cover rent, wages and other overheads. If you price by adding 30% to cost, the margin you actually earn is 23.08%. On the $40 item, that is $52.00 instead of $57.14, $5.14 a unit short. Over 1,000 units, roughly $5,140 of gross profit you planned for never arrives, and nothing in the price list looks wrong.
The gap grows with the percentage:
| Target margin | Markup actually needed | Adding the margin % as a markup gives |
|---|---|---|
| 30% | 42.86% | 23.1% margin |
| 50% | 100.00% | 33.3% margin |
| 60% | 150.00% | 37.5% margin |
The usual source of the error is that suppliers, retail buyers and accountants use different conventions. A wholesaler may quote “keystone” or a markup, while your financial statements and lenders speak in margins. Agree on which one you mean before anyone sets a price.
When to use each one
Markup is convenient at the counter: multiply the cost by a fixed factor and the price is set. A 30% markup is simply cost × 1.3.
Margin is what ties prices to the profit and loss statement. Gross margin on the income statement is gross profit divided by revenue, the same calculation as margin on a single item. If you plan the business in margins, set prices with the margin formula, or convert your target margin to a markup first. The profit margin calculator takes that margin down to operating and net profit.
What this calculator does not include
The calculations use the cost you enter. They do not add sales tax or VAT to the price, deduct card fees, platform commissions or shipping to the customer, or account for discounts and returns, all of which reduce the margin you keep. For a full picture of an online sale, the e-commerce profit calculator includes fees and advertising. The calculator also says nothing about whether customers will pay the price; that depends on your market.