Profit margin calculator

Get margin and markup from your cost and price, or the price you need for the margin you want.

Rates checked December 2026

Cost and price

Everything it costs you to sell one unit.

Work backwards

Profit margin

60%

$18.00profit per unit
150%markup
CostProfit
Selling price$30.00
Cost−$12.00
Profit$18.00
Margin profit ÷ price60%
Markup profit ÷ cost150%
For a 50% margin on a $12.00 cost, charge$24.00

Profit margin formula

margin = (price − cost) ÷ price

Margin answers the question "how much of every dollar I take in do I keep?" A 60% margin means 60 cents of each sales dollar is profit.

Example. Cost $12, price $30.

Profit $18. Margin $18 ÷ $30 = 60%. Markup $18 ÷ $12 = 150%.

Price for a target margin

price = cost ÷ (1 − margin)

For a 50% margin on a $12 cost, charge $12 ÷ 0.5 = $24. Note that a 100% margin is impossible: it would mean the product cost nothing.

Margin and markup side by side

MarkupMargin$10 cost sells at
25%20%$12.50
50%33.3%$15.00
100%50%$20.00
150%60%$25.00
200%66.7%$30.00
300%75%$40.00

What counts as cost

For a true margin, include everything one sale costs you: the product, marketplace and payment fees, the shipping label, packaging and any per-unit ad spend. Leaving out fees is the most common reason sellers think they earn more than they do.

Questions sellers ask

How do you calculate profit margin?

Profit margin is profit divided by selling price. If something costs $12 and sells for $30, profit is $18 and margin is $18 ÷ $30 = 60%.

What is the difference between margin and markup?

Margin compares profit with the selling price; markup compares profit with the cost. The same $18 profit on a $12 cost and $30 price is a 60% margin but a 150% markup.

How do I find the price for a target margin?

Divide cost by one minus the margin. For a 50% margin on a $12 cost: $12 ÷ (1 − 0.50) = $24.

What is a good profit margin for an online shop?

It depends on the product and the platform. Many small online sellers aim for a gross margin of 30–50% after marketplace fees and shipping, so there is room left for ads, returns and their own time.

More seller calculators