Last updated: October 20, 2026 · Tax year 2026 · By Ahtesham Ahmad · How we calculate

Profit margin and markup calculator

Margin and markup both describe profit but use different bases. Enter your cost and selling price to see both, then set a target margin to find the price you need. One page covers both because they are two views of the same numbers.

More options

How the calculation works

  1. Profit = price − cost.
  2. Margin = profit ÷ price. Markup = profit ÷ cost.
  3. Price for a target margin = cost ÷ (1 − margin). Price for a target markup = cost × (1 + markup).
  4. Markup from margin = margin ÷ (1 − margin).

Example. Cost $40 and price $65: profit is $25, the margin is 38.5% and the markup is 62.5%.

Margin and markup are not the same number

Both describe the same profit, but against different bases. Margin divides profit by the selling price; markup divides it by the cost. A product that costs $60 and sells for $100 carries a 40% margin but a 66.7% markup - identical dollars, different percentages. Confusing the two is one of the most expensive pricing errors a small business can make: aiming for a 40% margin by marking cost up 40% actually delivers only a 28.6% margin. The conversion formulas are exact: markup = margin / (1 - margin), and margin = markup / (1 + markup). A 50% margin always requires a 100% markup, and a 100% margin is impossible because it would need a free product sold at a positive price.

Gross margin versus net margin

This calculator works with gross margin - price minus the direct cost of what you sell. Businesses also track net margin, which subtracts everything else too: rent, wages, marketing, interest and taxes. Gross margin tells you whether the product itself is priced right; net margin tells you whether the whole operation keeps money. A healthy gross margin can still hide a sick business if overhead eats it, which is why lenders and investors ask for both. When you compare your margin against industry figures, check which one is being quoted, because a 60% gross margin and a 10% net margin can describe the same company.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a share of the selling price. Markup is profit as a share of cost. A 50% markup is only a 33% margin.

Which one should I use?

Use margin for reporting profitability and markup for setting prices from cost. Be clear which one you mean when you talk to others.

Does this include overhead?

No. It is gross margin, based only on the cost you enter. Add overhead into cost per unit for a fuller view.

What is a good profit margin?

It depends entirely on the industry. Grocery retail runs on gross margins near 25-30% and net margins of a few percent, while software can carry gross margins above 70%. Compare like with like: your margin against businesses selling similar products with similar cost structures.

How do I raise my margin?

Raise the price, lower the direct cost, or shift the mix toward higher-margin products. The price side is usually more powerful: at a 30% margin, cutting costs 5% and raising prices 5% both help, but the price increase adds more profit dollars per sale.

Should I price from margin or markup?

Either works as long as everyone in the business uses the same one and knows which it is. Margin is more common in finance and investor conversations; markup is common in retail and wholesale buying. The calculator converts between them so you can check a quote given in either form.

Related calculators

This calculator uses standard formulas and no tax-year data, so it has no yearly rate table to expire.

Estimates only, not financial, tax or legal advice. See the methodology page and the disclaimer.