Skip to content
AllToolsCalculator
Business

Free Profit Margin Calculator Online

Calculate gross profit margin and markup from cost and price, or find the selling price you need to hit a target margin.

$
$

Gross profit margin

60.00%

Gross profit
$60.00
Margin (profit ÷ price)
60.00%
Markup (profit ÷ cost)
150.00%
Cost
$40.00
Selling price
$100.00

Margin vs markup

People confuse these two constantly. Both use the same profit number, but they divide by different things.

Margin = profit / revenue
Markup = profit / cost

A 50% margin is a 100% markup. A 25% margin is a 33% markup. When pricing, decide which one you mean.

Calculating margin by hand

Example: you buy a product for $30 and sell it for $50.

  1. Profit: $50 − $30 = $20.
  2. Margin: $20 ÷ $50 = 0.40, or 40%.
  3. Markup: $20 ÷ $30 = 0.667, or 66.7%.

To go the other way and set a price from a target margin, divide the cost by 1 minus the margin. For a 40% margin on a $40 cost: $40 ÷ 0.60 = $66.67.

If you only know one of the two percentages, you can convert: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin), with both written as decimals.

Target margin to price and markup

Selling price needed for an item that costs $100
Target marginSelling priceProfitEquivalent markup
10%$111.11$11.1111.1%
20%$125.00$25.0025.0%
25%$133.33$33.3333.3%
30%$142.86$42.8642.9%
40%$166.67$66.6766.7%
50%$200.00$100.00100.0%
60%$250.00$150.00150.0%
75%$400.00$300.00300.0%

Notice how the price climbs faster as the margin rises. Going from 50% to 75% margin doubles the price.

Why margin caps below 100%

Margin is profit divided by revenue. To reach 100% margin, cost would need to be zero. That's why margins above ~95% are economically nonsensical for most real products. Markup has no such ceiling: a $10 item sold for $50 has a 400% markup but an 80% margin.

Common pricing mistakes

  • Using markup when you meant margin. Adding a 40% markup to a $40 cost gives $56, which is only a 28.6% margin. To earn a 40% margin you need to charge $66.67.
  • Leaving costs out. Include shipping, packaging, payment processing and marketplace fees in the cost per item, or your real margin will be lower than the calculator shows.
  • Underestimating discounts. On a $50 item that costs $30, a 20% discount cuts the price to $40 and profit from $20 to $10. Margin falls from 40% to 25% and profit per sale halves.

Frequently asked questions

How do I calculate the selling price from cost and margin?

Price = Cost ÷ (1 − Margin). For a $40 cost and a 40% margin, the price is 40 ÷ 0.6 = $66.67.

What is a good profit margin?

It depends on the industry. Grocery retail often runs on low single-digit net margins, while software can have gross margins above 70%. Compare against businesses like yours.

Is this gross or net margin?

Gross margin, based on the cost you enter. Net margin would also subtract overheads such as rent, salaries and tax.

Can markup be more than 100%?

Yes. Markup compares profit with cost, so it has no upper limit. An item that costs $20 and sells for $60 has a 200% markup and a 66.7% margin.

How do I convert markup to margin?

Divide the markup by 1 plus the markup, using decimals. A 50% markup is 0.5 ÷ 1.5 = 0.333, or a 33.3% margin.

What does a negative margin mean?

You are selling below cost, so each sale loses money. Raise the price, lower the cost, or check that the cost figure you entered is correct.

Results are estimates for informational purposes and are not financial, medical or professional advice. See our methodology and disclaimer.