Money calculator

Profit margin and markup calculator

Illustration for the profit margin and markup calculator

Calculate gross profit, profit margin and markup from a unit cost and selling price.

Quick answer

Margin = profit ÷ selling price and markup = profit ÷ cost. Cost 60, price 100: profit 40, margin 40%, markup 66.67%.

Formula

Gross profit = selling price − cost. Margin = gross profit ÷ selling price × 100. Markup = gross profit ÷ cost × 100.

Worked example

A $60 selling price with a $40 cost gives $20 gross profit, a 33.33% margin and a 50% markup. Other expenses are not included.

Example: Thin retail margin: cost 75, price 90

Profit 15. Margin = 15 ÷ 90 = 16.67%; markup = 15 ÷ 75 = 20%.

Example: Price for a target margin: cost 70, target 30%

Price = cost ÷ (1 − margin) = 70 ÷ 0.70 = 100. Check: profit 30 ÷ 100 = 30%. Adding 30% to cost (91) would only give a 23.08% margin.

Assumptions and limits

For general information only. Estimates depend on the values and assumptions described here; local rules and individual circumstances can affect the result.

Margin and markup examples

CostPriceProfitMarginMarkup
$40.00$60.00$20.0033.33%50.00%
$10.00$25.00$15.0060.00%150.00%
$75.00$100.00$25.0025.00%33.33%
$200.00$250.00$50.0020.00%25.00%
$6.00$15.00$9.0060.00%150.00%
$500.00$800.00$300.0037.50%60.00%

Common mistakes to avoid

  • Calling markup "margin". A 50% markup is only a 33.33% margin.
  • Leaving shipping, payment fees or packaging out of cost.
  • Setting price by adding the target margin to cost. For a 40% margin, divide cost by 0.6.

Privacy

Values are processed in your browser and are not sent to Earnwell Atlas. Your host may still record standard visit logs.

Advertisement

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. A $40 item sold for $60 has a 33.33% margin and a 50% markup.

How do I calculate profit margin?

Subtract cost from selling price to get gross profit, then divide by the selling price and multiply by 100.

What price do I need for a target margin?

Divide the cost by 1 minus the target margin as a decimal. For a $40 cost and a 25% margin, the price is $40 ÷ 0.75 = $53.33.

What price gives a 40% margin on a $30 cost?

$30 ÷ (1 − 0.40) = $50. Profit is $20, which is 40% of $50.

How do I convert markup to margin?

Margin = markup ÷ (1 + markup). A 100% markup is a 50% margin.

How do I find the selling price for a target margin?

Divide the cost by (1 − target margin). For a cost of 70 and a 30% margin: 70 ÷ 0.70 = 100. Adding the percentage to the cost gives a markup, not a margin.

Built and maintained by Faris Dinware, founder of Earnwell Atlas. Last updated 29 November 2026. How we build and check these tools.