Margin Calculator
Find your profit margin, or the price that hits a target margin.
Last updated 2026-11-18 · How we calculate this
Margin Breakdown
Enter a cost to see the margin breakdown.
The calculator uses only the cost and price you enter. It does not add payment fees, shipping, overheads or sales tax unless you include them in the cost, and it cannot tell you what margin suits your business or market.
Quick Answer
Margin is the share of the selling price you keep as profit. An item that costs $12.00 and sells for $20.00 makes $8.00, and $8.00 ÷ $20.00 = 40%. To price for a margin, divide the cost by 1 minus the margin: $18.00 ÷ (1 − 0.40) = $30.00.
How to Use This Calculator
Choose whether you know the selling price and want the margin, or know the margin you want and need a price. Enter what the item costs you, then the price or the target margin. The calculator also shows the profit in money and the markup, so you can see both ways of describing the same sale.
- Choose "Find the margin" or "Find the price".
- Enter the cost of one item.
- Enter the selling price, or the margin you want.
- Read the margin or price, the profit and the markup.
The Formula
Find the margin: Profit = price − cost; Margin = profit ÷ price × 100; Markup = profit ÷ cost × 100. Find the price: Price = cost ÷ (1 − margin ÷ 100); Profit = price − cost
Margin and markup both start from the same profit but divide it by different numbers: margin by the selling price, markup by the cost. So the margin is always the smaller of the two. When finding a price, the calculator rounds up to the next cent, so the margin you actually get is never below the one you asked for.
Worked Example
Finding the margin: a candle costs $12.00 to make and sells for $20.00. The profit is $8.00, the margin is 8 ÷ 20 = 40%, and the markup is 8 ÷ 12 = 66.67%.
The same profit, two percentages: an item bought for $5.00 and sold for $6.50 makes $1.50. That is a 30% markup (1.50 ÷ 5.00) but only a 23.08% margin (1.50 ÷ 6.50).
Finding the price: to make a 40% margin on an $18.00 item, divide 18 by 0.60 to get $30.00, a $12.00 profit and a 66.67% markup.