Toolvito

Works on this device

Pricing, Margin & Markup Calculator

Find the margin and the markup of a sale, or the price you need for a target margin or markup. Margin is profit as a percent of the selling price. Markup is profit as a percent of the cost. The two are never the same number, so choose the one you mean.

Enter your values

Use this when you know what an item costs you and what you sell it for.

Your values

What one item costs you, before tax.

More options

Leave blank for no tax step. Type the current rate for your place and product, from your tax office. The tool has no tax rates.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose what you want to work out in the first menu, for example Selling price from cost and margin.
  2. Enter the numbers you know. Amounts are in your own currency. Type them without a currency sign.
  3. Under More options you can choose a price ending such as .99 and add a sales tax or VAT rate. The tax box starts empty: type the current rate for your place.
  4. Choose Calculate. The result shows the answer, the formula and the working with your numbers.
  5. You can copy the result, print it, or download it as a CSV file for a spreadsheet.

Margin and markup are not the same

Both start from the same profit: selling price − cost. Margin divides that profit by the selling price. Markup divides it by the cost. The cost is the smaller number, so the markup is always the larger percent.

An item that costs 60 and sells for 100 has a profit of 40. The margin is 40 ÷ 100 = 40%. The markup is 40 ÷ 60 = 66.67%. If you add a 40% markup to a cost of 60, the price is only 84 and the margin is 28.57%, not 40%.

A margin can never reach 100% when the item has a cost, because the profit cannot be the whole price. A markup has no upper limit.

Markup that gives each margin
Margin Markup Price as a multiple of cost
10% 11.11% 1.1111
20% 25% 1.25
25% 33.33% 1.3333
30% 42.86% 1.4286
40% 66.67% 1.6667
50% 100% 2
60% 150% 2.5
75% 300% 4

The formulas

  • Profit = selling price − cost.
  • Margin = profit ÷ selling price × 100. Markup = profit ÷ cost × 100.
  • Selling price from a margin = cost ÷ (1 − margin ÷ 100). Selling price from a markup = cost × (1 + markup ÷ 100).
  • Cost from a margin = selling price × (1 − margin ÷ 100). Cost from a markup = selling price ÷ (1 + markup ÷ 100).
  • Markup from a margin = margin ÷ (100 − margin) × 100. Margin from a markup = markup ÷ (100 + markup) × 100.
  • Price that keeps a margin after fees = (cost + fixed fee) ÷ (1 − margin ÷ 100 − fee ÷ 100 × (1 + tax ÷ 100)).
  • Gross margin = (revenue − cost of goods sold) ÷ revenue × 100. Operating margin and net profit margin use the operating profit and the net profit in the same way.
  • Contribution margin for each unit = selling price − variable cost. Its ratio = contribution margin ÷ selling price × 100.
  • Blended margin of several products = total profit ÷ total sales × 100.

Worked examples

Price for a margin. An item costs 60 and you want a 40% margin. Price = 60 ÷ (1 − 0.40) = 100.00. Profit = 40.00, and the markup is 66.67%.

A discount. You sell that item for 100 and give 15% off. The new price is 85.00. The profit falls from 40.00 to 25.00, and the margin falls from 40% to 25 ÷ 85 = 29.41%. You need 40 ÷ 25 = 1.6 times the sales to earn the same total profit.

A selling fee. The item costs 60, you want a 40% margin, and the marketplace takes 10% plus 0.30 for each sale (the example fees of Try an example). Price = (60 + 0.30) ÷ (1 − 0.40 − 0.10) = 120.60. The fees are 12.06 + 0.30 = 12.36, the profit is 120.60 − 12.36 − 60 = 48.24, and 48.24 ÷ 120.60 = 40%.

Tax. A price of 49.98 with tax added at 8% gives a tax of 4.00 (3.9984 rounded to the cent) and a price with tax of 53.98. The 8% is an example for trying the tool, not a current rate.

Tax, fees and price endings

  • Tax is a separate step. Margin and markup are always worked out on the price before tax, because the tax is not your money.
  • Choose Tax is added on top of the price where shelf prices are shown without tax, or The price includes tax where the shelf price has the tax in it.
  • The tool has no tax rates. The tax rate box starts empty and the example value is only for trying the tool. Take the current rate from your tax office.
  • The selling fee is a percent of what the customer pays, plus a fixed amount for each sale. Both boxes start empty, because a marketplace or a payment company sets these fees and changes them. Try an example fills in 10% and 0.30, which are for trying the tool and are not current fees. Type the rates you are charged.
  • A price ending such as .99 is an option, not the default. It moves the price up to the next price with that ending, so the profit does not fall below your target.

Limits you should know

  • Money is rounded to the nearest cent, and half a cent is rounded up. The percents are worked out from the rounded price, so they can differ a little from your target.
  • The tool does not know the fees of any marketplace, the tax rules of any place, or the usual margin of any trade. Every rate is the one you type.
  • The profit margin modes for an income statement use the amounts you enter. They do not include other income or one-off items.
  • One sale is treated as one item at one price. Returns, shipping and stock losses are not included unless you add them to the cost.
  • The tax step is simple arithmetic and is not tax advice. Rules for rounding tax and for which goods are taxed differ by place.

Related tools