Profit margin and markup calculator
Enter two values, including cost, price or profit, to calculate the rest. Your two latest edits determine the result.
Margin and markup workspace
Worked example
Markup vs margin: a $30 item
Three ways to price the same $30 unit cost. Only two of them give you a 40% margin.
Target 40% margin: $30 ÷ (1 − 0.40)
$50.00$20.0040%66.6667%40% margin after a 13.6% percentage fee: $30 ÷ (1 − 0.40 − 0.136)
$64.66$25.8740%—The third price is a percentage-fee-only illustration at eBay's most-categories 13.6% rate: raw fee $8.79376 and raw profit $25.86624 on $64.66. Displayed money is $8.79 and $25.87. It excludes the per-order fee, shipping, tax and other costs, so it is not a full eBay bill. Link: eBay fee calculator.
Formula
margin = markup ÷ (1 + markup)
price for a target margin = cost ÷ (1 − margin − fee%)
Compare
Markup to margin conversion
The same percentage means two different things. Margin is the smaller number. Prices below use a $30 cost.
| Markup | Margin | Price on a $30 cost |
|---|---|---|
| 25% markup | 20% | $37.50 |
| 40% markup | 28.5714% (rounded) | $42.00 |
| 50% markup | 33.33% (rounded) | $45.00 |
| 66⅔% markup | 40% | $50.00 |
| 100% markup (keystone) | 50% | $60.00 |
Keystone (2× cost) is 50% margin before platform fees, shipping, returns and ads. The 40% target-margin card above shows 66.6667% as the calculator's rounded display, not as an exact markup input.
Checklist
Common margin mistakes
Checks on the $30 prices above: markup versus margin, and a percentage fee in the divisor.
A markup is not the same margin
A $5,000 job with a 30% markup is a $6,500 price and about 23.08% margin, not 30%.
cost × 1.40 is markup
That is a 40% markup. A 40% margin needs cost ÷ 0.60, which is $50 on a $30 cost.
Percentage fees belong in the divisor
A 13.6% fee on the price is not added after you pick a 40% margin. The minimum cent price on a $30 cost is $64.66 when that fee is the only extra term.
Keystone is 50% margin before fees
Doubling a $30 cost is a $60 price and 50% margin before platform fees, shipping, returns and ads.
Name margin or markup
The gap grows as the percentage rises. 50% markup is 33.33% margin; 100% markup is 50% margin.
A discount needs more volume
A $100 price at a $60 cost leaves $40 profit. Cut the price 10% to $90 and profit is $30, so you need 4/3 as many units to keep the same dollar profit.
HOW IT WORKS
How the profit margin calculator works
Enter what one item costs you and what you sell it for, or the margin you want. The calculator shows profit, margin and markup side by side, so you can check both percentages before you set a price.
Enter your cost
Use the full cost of one unit: what you paid, plus inbound shipping and packaging if you count them.
Enter a price or a target margin
Type the price you plan to charge, or type the margin you want and the calculator works out the price.
Read margin, markup and profit
Profit is price minus cost. Margin divides that profit by the price; markup divides it by the cost.
FORMULA
margin = (price − cost) ÷ price markup = (price − cost) ÷ cost
Example: cost $30, price $50 → profit $20, margin 40%, markup 66.7%
Margin is a share of the price and markup is a share of the cost, so when cost and price are above zero and the sale makes a profit, the margin is the smaller number. At break-even both are 0%; with a zero cost markup is undefined, and with zero revenue margin is undefined.
Common questions
What is the difference between margin and markup?
Both start from the same profit: price minus cost. Margin divides that profit by the selling price; markup divides it by the cost. An item that costs $30 and sells for $50 makes $20 profit, which is a 40% margin and a 66.7% markup.
How do I convert markup to margin?
Divide the markup by one plus the markup: margin = markup ÷ (1 + markup). A 66.7% markup is 0.667 ÷ 1.667, about 40% margin, and a 50% markup is 33.33% margin. To go the other way, markup = margin ÷ (1 − margin).
Can a profit margin be higher than 100%?
Not while the item costs anything. Margin is profit divided by price, and profit is less than price whenever cost is above zero, so margin stays under 100%. Markup has no such ceiling: selling a $30 item for $90 is a 200% markup but a 66.7% margin.
What price do I need for a 40% margin?
Divide the cost by one minus the margin: price = cost ÷ (1 − 0.40). A $30 cost needs a $50 price. Adding 40% to the cost instead gives $42, which is only a 28.57% margin.
Should shipping and fees count as cost?
If you want true margin per sale, yes. Count every cost you pay each time you sell, such as marketplace fees, payment processing, the shipping label and packaging. Leaving them out gives a margin on product cost only, which looks better than what you keep.
How do I price something for a 30% margin?
Choose Find a price. A $20 cost at a 30% margin gives an exact price of 200/7 ($28.5714…). The minimum recommendation is $28.58. A $28.57 price gives 29.996% margin, just under 30%. A 30% markup instead gives $26.00.
What happens when revenue is zero?
Margin is undefined because its denominator is revenue. Profit can still be shown, including a loss.
Can I calculate from just margin and markup?
Those percentages do not set a money scale. Enter a cost, selling price or profit as one of the two values.
Will a discount change the margin?
Yes. An $80 cost, $100 price and 25% discount leave $75 of revenue, a $5 loss and a margin of approximately −6.67%.
This is business profit margin, not trading or stock margin. Calculations run in your browser. Saving comparisons is optional.