Business

How to Calculate Profit Margin and Markup (With Examples)

Profit margin is profit divided by the selling price, and markup is profit divided by cost. If an item costs 600 and sells for 800, profit is 200, margin is 25% and markup is 33.3%. To reach a 25% margin on a cost of 600, the price must be 600 ÷ 0.75 = 800.

By CalculatorHub Editorial TeamPublished December 2, 2026Updated December 2, 20266 min read
Run the numbers yourself. Try our free Profit Margin Calculator and see the result with your own figures.

The formulas

Profit = selling price − cost Margin % = profit ÷ selling price × 100 Markup % = profit ÷ cost × 100

With a cost of 600 and a price of 800, profit is 200, so margin is 25% and markup is 33.3%. Our profit margin calculator works both out from any two numbers.

Margin versus markup

The two measure the same profit against different bases, so markup is always bigger than margin for a profitable item. Mixing them up leads to underpricing: if you want a 25% margin and add 25% to the cost, you actually earn only a 20% margin.

MarkupMargin
10%9.1%
20%16.7%
25%20.0%
33.3%25.0%
50%33.3%
100%50.0%

Finding the selling price for a target

  • Target margin: price = cost ÷ (1 − margin). For 25% on 600: 800.
  • Target markup: price = cost × (1 + markup). For 40% on 600: 840.

Gross margin and net margin

Gross margin subtracts only the direct cost of the goods. Net margin subtracts everything: rent, wages, marketing, interest and tax. A business can have a healthy gross margin and still lose money if overheads are too high. Always check which margin a figure refers to.

A worked example for a small shop

A shop buys a bag for 1,200 and sells it for 1,800. Profit is 600, so the margin is 600 ÷ 1,800 = 33.3% and the markup is 600 ÷ 1,200 = 50%. If delivery and card fees add 150 to the cost, profit falls to 450, the margin to 25% and the markup to 33.3%. Including every cost matters.

Discounts eat margin quickly

With a 25% margin, a 10% discount on the price cuts profit to 15% of the original price, which is a 40% fall in profit per item. Check your margin before promising big discounts, and use the discount calculator to see the sale price.

Common mistakes

  • Using the wrong base, cost instead of price or the other way around.
  • Ignoring shipping, returns and payment fees.
  • Quoting markup when the buyer expects margin.
  • Not updating prices when costs rise.

For more on percentages, see how to calculate a percentage, and compare investments with the ROI guide.

Key terms

  • Gross margin: Profit after direct costs only, as a share of the selling price.
  • Net margin: Profit after all costs and tax, as a share of revenue.
  • Markup: Profit as a percentage of cost.
  • Cost of goods sold: The direct cost of what you sell.
  • Break-even price: The price at which profit is zero.

Practice questions

Try each one before you read the answer.

  1. Cost 1,000 and price 1,250. What are the margin and the markup?
    Answer: Profit 250. Margin 250 ÷ 1,250 = 20%. Markup 250 ÷ 1,000 = 25%.
  2. What price gives a 40% margin on a cost of 900?
    Answer: 900 ÷ 0.60 = 1,500.
  3. A 50% markup is what margin?
    Answer: 0.5 ÷ 1.5 = 33.3%.

Review your prices regularly

Costs change, so check your margins every few months and after any supplier price rise.

Frequently asked questions

What is a good profit margin?

It depends on the industry. Retail and food often run on low margins, while software and professional services can be much higher.

How do I convert markup to margin?

Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5 = 33.3% margin.

Is profit margin the same as profit?

No. Profit is an amount of money. Margin is that profit as a percentage of the selling price.

Try the calculators

Keep reading