331+ free tools. No sign-up. No hidden fees. Explore the toolkit

Margin Calculator: Profit Margin & Markup

Gross margin is the share of the selling price that is profit. Markup is the profit as a share of the cost. They describe the same sale from two sides — and mixing them up is one of the most common pricing mistakes in business.

Pick a mode: find the selling price from cost and margin, work out margin and markup from cost and price, or find the cost from price and margin.

What it costs you to buy or make one unit.

Profit as a share of the selling price. Must be under 100%.

Selling Price

Save to Pinterest
Disclaimer: Results are estimates for planning only and not financial advice. This calculator works with gross margin — profit before overheads, tax and other operating costs — so a healthy gross margin does not by itself mean a profitable business.

How It Works

Gross margin and markup both measure the profit on a sale, but they divide it by different numbers. Margin is profit as a share of the selling price: margin = (price − cost) ÷ price. Markup is profit as a share of the cost: markup = (price − cost) ÷ cost. On the same sale the two numbers are always different, and markup is always the larger of the two.

Take a product that costs $40 and sells for $60. The profit is $20 either way. But the margin is $20 ÷ $60 = 33.33%, while the markup is $20 ÷ $40 = 50%. A seller who means "I want a 50% margin" but prices with a 50% markup ends up with a 33.33% margin — and a seller who means "50% markup" but prices with a 50% margin charges $80 instead of $60. The two words are not interchangeable, and this calculator shows both figures for every calculation so the difference is always visible.

The three modes cover the three questions a seller usually asks. If you know your cost and the margin you want, the selling price is cost ÷ (1 − margin). If you know the cost and the price, margin and markup follow directly from the two formulas above. If you know the price you can charge and the margin you need, the most you can afford to pay is price × (1 − margin). The calculator also converts between the two: a 50% markup is a 33.33% margin, and a 50% margin is a 100% markup.

The table below shows what happens to a $40 product as the margin target rises:

Target marginSelling priceProfit per unitMarkup
20%$50.00$10.0025.00%
30%$57.14$17.1442.86%
40%$66.67$26.6766.67%
50%$80.00$40.00100.00%

Notice how the price accelerates: lifting the margin from 20% to 30% adds $7.14 to the price, but lifting it from 40% to 50% adds $13.33. That is because the margin is a share of the price itself — each extra point of margin has to be earned on a larger price. It is also why a 100% margin is impossible: it would mean the entire selling price is profit, which would require the cost to be zero.

Worked Example

A product costs $40 and sells for $60. The profit per unit is $60 − $40 = $20. The gross margin is $20 ÷ $60 = 33.33% — a third of every sale is profit. The markup is $20 ÷ $40 = 50% — the price is half as much again as the cost. Same sale, same $20 of profit, two different percentages, and both are correct answers to different questions.

Worked the other way round: if the cost is $40 and you want a 33.33% margin, the selling price is $40 ÷ (1 − 0.3333) = $60. And if the price is fixed at $60 and you need a 33.33% margin, the most you can pay for the product is $60 × (1 − 0.3333) = $40. All three modes of the calculator agree, because they are the same formula rearranged.

Assumptions

Sources: No external rates are used on this page — every figure is calculated from the numbers you enter. Last reviewed: 15 November 2026.

Built and tested by SumKitTool — see how we check our numbers.

How to Use This Calculator

Choose what you want to find. To set a price, pick "Selling price", enter your cost per unit and the margin you want, and the calculator gives the price, the profit per unit and the equivalent markup. To check an existing price, pick "Margin and markup", enter the cost and the price, and you get both percentages. To work out what you can afford to pay, pick "Cost", enter the selling price and the margin you need, and the calculator gives the maximum cost per unit.

The headline result changes with the mode, but the table below it always shows the full picture: cost, price, profit per unit, gross margin and markup. Use the margin figure when you are comparing products or reporting to an accountant — margin is the standard measure — and the markup figure when you are setting prices from a supplier's cost list.

Tips and Practical Advice

Price from the margin, not the markup. If you need a 40% margin to cover your overheads, a 40% markup gives you only a 28.57% margin — $40 cost marked up 40% sells for $56, and $16 of profit on $56 is 28.57%, not 40%. Enter the margin you need and let the calculator set the price.

Watch small margins on cheap products. A 20% margin on a $50 product is $10 of profit per unit; the same 20% on a $5 product is $1. Low-priced products need either much higher margins or much higher volume to be worth selling, because the fixed cost of handling each sale is roughly the same whatever the price.

Remember that gross margin is not profit in the bank. A 50% gross margin looks comfortable until rent, wages, payment fees and tax take their share. If you sell through PayPal, its fees take a fixed slice of every sale — the PayPal fee calculator shows what you actually keep. Work out your break-even point too — the Break-Even Calculator shows how many units you must sell before the business covers its fixed costs. These figures are estimates, not financial advice.

Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit as a share of the selling price: (price minus cost) divided by price. Markup is profit as a share of the cost: (price minus cost) divided by cost. On a $40 product sold for $60, the profit is $20 either way, but the margin is 33.33% and the markup is 50%. Markup is always higher than margin on the same sale.

Why can margin not be 100%?

A 100% margin would mean the entire selling price is profit, which requires the cost to be zero. If a product costs anything at all, some of the price goes to covering that cost, so the margin must be below 100%. The closer the margin gets to 100%, the higher the price climbs: a $40 product at a 90% margin would sell for $400.

How do I convert markup to margin?

Divide the markup by one plus the markup. A 50% markup becomes 50 divided by 150, which is 33.33% margin. Going the other way, divide the margin by one minus the margin: a 33.33% margin becomes 33.33 divided by 66.67, which is a 50% markup. This calculator shows both figures for every calculation.

What is the difference between gross margin and net margin?

Gross margin counts only the direct cost of the product — what you pay to buy or make it. Net margin subtracts everything else too: rent, wages, advertising, payment fees and tax. Net margin is always lower than gross margin, and it is the figure that decides whether a business actually makes money.

Last updated: