Markup & Margin Calculator

Price your products with confidence. Enter any two known values (cost and selling price, cost and markup, cost and target margin, or selling price and margin) and get the rest instantly: selling price, profit, markup % and gross margin %. The working is shown step by step, and a conversion table explains the most common pricing mistake of all, confusing markup with margin.

  • 100% free
  • No sign-up
  • Private & local
  • Works on mobile
%
%
%

Markup vs margin conversion

MarkupEquals margin

Private by design: every calculation runs locally in your browser. Nothing you type is sent to a server or stored by us.

Results are estimates for general information only and are not financial advice. Read our disclaimer.

Markup vs Margin: What's the Difference?

Markup and margin both describe profit as a percentage, but they measure it against different numbers, and confusing them is one of the most expensive mistakes in pricing.

  • Markup is profit as a percentage of cost: (price − cost) ÷ cost. Buying at $40 and selling at $60 is a 50% markup.
  • Gross margin is profit as a percentage of the selling price: (price − cost) ÷ price. The same $40 → $60 sale is a 33.3% margin.

Markup is always the larger of the two numbers. If you want a 50% margin but add a 50% markup, you'll only achieve 33.3%, a shortfall that can wipe out a business's entire net profit. This markup and margin calculator converts between them, and works out the right selling price for any target.

How to Use the Calculator

  1. Choose what you know: cost and target margin (most common for pricing), cost and markup, cost and price, or price and margin.
  2. Enter the two values and choose your currency.
  3. Read the results: selling price, cost, profit per unit, markup and margin.
  4. Optional: enter a quantity for total profit, or a tax rate to see the tax-inclusive shelf price.

Formulas

To findFormulaExample (cost $40)
Price from markupcost × (1 + markup)40 × 1.5 = $60 (50% markup)
Price from margincost ÷ (1 − margin)40 ÷ 0.6 = $66.67 (40% margin)
Markup from marginmargin ÷ (1 − margin)40% margin = 66.7% markup
Margin from markupmarkup ÷ (1 + markup)50% markup = 33.3% margin
Profitprice − cost$66.67 − $40 = $26.67

Typical Margins by Industry

Healthy gross margins vary widely. Grocery stores often run 20–30%, general retail 30–50%, restaurants 60–70% on food (but with high labour costs), clothing and jewellery 50–60%+, and software and digital products 70–90%. Gross margin must cover all your overheads (rent, salaries, marketing, software and so on) before there's any net profit, so always price with your full costs in mind. The Break-Even Calculator shows how many sales you need to cover them.

Keystone Pricing and Other Strategies

  • Keystone pricing: doubling the wholesale cost, a 100% markup, which is a 50% margin. It's a traditional retail rule of thumb.
  • Cost-plus pricing: adding a fixed markup to every product. It's simple, but ignores what customers will pay.
  • Value-based pricing: setting the price from customer value, then checking that the margin is healthy.
  • Psychological pricing: ending in .99 or .95. Recalculate the margin after rounding.
  • Discount planning: a 20% sale on a 40% margin product cuts profit per unit by half, so check with the Discount Calculator.

Worked Example: Pricing a Product

Suppose a product costs you $40 to buy or make, and you need a 40% gross margin to cover overheads and make a profit. Using the margin formula, price = 40 ÷ (1 − 0.40) = $66.67. The profit per unit is $26.67, which is a 66.7% markup on cost. If you'd simply added 40% to your cost instead, you'd charge $56 and earn only a 28.6% margin, $10.67 less per unit. Over 1,000 units, that confusion would cost you over $10,000 in profit. Rounding the price to $66.99 or $69 for psychological pricing changes the margin again, so recalculate with the "cost and selling price" option to confirm you're still on target before setting your final price.

Wholesalers and retailers along a supply chain each add their own markup, which is why a product's shelf price can be three or four times its manufacturing cost.

Frequently Asked Questions

Is a 50% markup the same as a 50% margin?

No. A 50% markup gives a 33.3% margin. A 50% margin requires a 100% markup.

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

Price = cost ÷ (1 − margin). For a $40 cost and a 40% margin: 40 ÷ 0.6 = $66.67.

Can margin be more than 100%?

No. Margin is capped below 100%, but markup can be any size (e.g. 300%).

What's the difference between gross and net margin?

Gross margin subtracts only the cost of goods. Net margin also subtracts all operating expenses, interest and tax.

Should VAT be included when calculating margin?

No. Calculate margin on prices excluding VAT or sales tax, because the tax belongs to the government.