Skip to main content
Mathovia

Financial / Everyday Money

Markup Calculator

Enter what an item costs you and the markup you want. You'll get the selling price, your gross profit per sale and the gross margin that markup really gives you. You can also enter a target margin to see the price and markup you'd need to reach it.

Selling price
60.00 $
Gross profit per item
20.00 $
Gross margin at this markup
33.33 %
Revenue for all units
6,000.00 $
Gross profit for all units
2,000.00 $
Price needed for your target margin
66.67 $
Markup needed for your target margin
66.67 %
  • Cost$40 · 67%
  • Gross profit$20 · 33%
How much of each sale covers the item's cost and how much is gross profit.

Selling price = cost × (1 + markup). Gross profit = price − cost. Markup is profit as a share of cost; gross margin is profit as a share of price, so margin = markup ÷ (1 + markup). To hit a target margin, price = cost ÷ (1 − margin), which means markup = margin ÷ (1 − margin).

Source: Standard pricing definitions used in retail and accounting: markup is measured on cost, gross margin on selling price. Figures are before operating expenses, taxes and discounts.

Written by
MPhil in Mathematics, Founder of Mathovia
Updated

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

Markup and margin both describe the profit in a price, and they’re easy to mix up — which is how many small businesses end up earning less than they planned. Markup measures profit against what an item costs you; margin measures it against what you sell it for. This calculator works out both, turns a cost and markup into a selling price, and tells you the markup you need for the margin you actually want.

Markup and margin formulas: markup equals profit divided by cost, margin equals profit divided by price, and margin equals markup divided by one plus markup
The same profit, divided by two different numbers

Markup and margin: the formulas

Both start from the same profit — the selling price minus the cost:

Markup divides that profit by the cost; gross margin divides it by the price:

Because the price is always bigger than the cost (when you make a profit), the margin is always smaller than the markup. The two convert directly:

Worked example: a $40 item with a 50% markup

These are the calculator’s default values.

Step 1 — selling price.

Step 2 — gross profit. $60 − $40 = $20 per item.

Step 3 — gross margin.

So a 50% markup is only a one-third margin. On 100 units that’s $6,000 of revenue and $2,000 of gross profit.

Step 4 — pricing for a 40% margin instead.

That’s a markup of 66.67%. In other words, to keep 40% of every sale you add two-thirds to the cost, not 40%.

Curve of gross margin against markup: a 25 percent markup gives a 20 percent margin, 50 percent gives 33.3 percent, 100 percent gives 50 percent and 200 percent gives 66.7 percent
As markup rises, margin climbs more and more slowly toward 100%
Markup Calculator worked example diagram
A visual read of the worked example above — the same numbers the calculator returns for its default inputs.

Markup to margin conversion table

Markup on costGross marginPrice of a $100-cost item
10%9.09%$110
20%16.67%$120
25%20.00%$125
33.33%25.00%$133.33
42.86%30.00%$142.86
50%33.33%$150
66.67%40.00%$166.67
100%50.00%$200
150%60.00%$250
200%66.67%$300
300%75.00%$400

The most common pricing mistake

Suppose you need a 30% margin to cover rent, wages and a profit. Adding 30% to a $40 cost gives $52 — but that’s a 23.1% margin, because $12 is 23.1% of $52. To really keep 30% of every sale you need:

a markup of 42.86%. On 1,000 sales the difference between the two prices is $5,140 of gross profit.

Discounts eat margin faster than you expect

A discount comes off the selling price, so it cuts straight into your margin. With a 100% markup (a 50% margin), a 20% sale leaves a 37.5% margin, and a 50%-off sale brings you exactly back to cost. Before running a promotion, check the margin at the discounted price, not the original one.

Gross profit is not net profit

Markup and gross margin only cover the cost of the goods themselves. Your net profit is what’s left after rent, wages, shipping, card fees, marketing and taxes. A shop with a healthy 50% gross margin can still lose money if its overhead eats more than half of revenue. That’s why businesses usually set markups by working backwards from the gross margin their overhead requires.

Common mistakes

  • Adding the target margin to cost. A 30% margin needs a 42.86% markup.
  • Quoting margin and meaning markup (or the reverse) when talking to suppliers, lenders or buyers.
  • Pricing from the cost of goods alone. Include freight, packaging and payment fees in “cost” if you pay them per item.
  • Forgetting discounts. Plan your markup so your margin survives your usual promotions.

This calculator gives gross figures before operating costs and taxes. It’s a pricing tool, not accounting advice.

Sources and assumptions

This calculator assumes:

  • Markup is measured on cost and gross margin on selling price.
  • Figures are before operating expenses, discounts and taxes.

Figures last reviewed: . Educational estimates, not professional advice.

About the formula: Selling price = cost × (1 + markup). Gross profit = price − cost. Markup is profit as a share of cost; gross margin is profit as a share of price, so margin = markup ÷ (1 + markup). To hit a target margin, price = cost ÷ (1 − margin), which means markup = margin ÷ (1 − margin).

Frequently Asked Questions

How do you calculate markup?+

Divide the profit by the cost. If something costs $40 and sells for $60, the profit is $20 and the markup is $20 ÷ $40 = 50%. To find a price from a markup, multiply the cost by one plus the markup: $40 × 1.5 = $60.

What's the difference between markup and margin?+

Both use the same profit, but markup divides it by the cost and margin divides it by the selling price. A $20 profit on a $40 item selling for $60 is a 50% markup but only a 33.3% margin. Margin is always the smaller number.

How do I convert markup to margin?+

Margin = markup ÷ (1 + markup). A 25% markup is a 20% margin, 50% is 33.3%, and 100% is 50%. Going the other way, markup = margin ÷ (1 − margin), so a 40% margin needs a 66.7% markup.

What markup do I need for a 30% profit margin?+

42.86%. Adding 30% to cost gives only a 23.1% margin — the most common pricing mistake. For a $40 item, a 30% margin means a price of $57.14 ($40 ÷ 0.70), not $52.

What is keystone pricing?+

Doubling the wholesale cost to set the retail price, which is a 100% markup and a 50% gross margin. It's a traditional starting point in retail, though many categories use higher or lower markups depending on competition and overhead.

How do you calculate gross profit?+

Gross profit = revenue − cost of goods sold. For 100 items bought at $40 and sold at $60, revenue is $6,000, cost of goods is $4,000 and gross profit is $2,000. Net profit then subtracts rent, wages, marketing and other operating costs.

Can a margin be more than 100%?+

No. Margin is profit as a share of the price, and profit can never be bigger than the price, so margin always stays below 100%. Markup has no upper limit: selling a $10 item for $50 is a 400% markup but an 80% margin.

Related calculators