Everyday tool

Profit Margin Calculator

Enter cost and selling price to calculate profit, margin and markup.

Runs in your browser. No upload.

Works in your browser. Your files stay on your device.

Profit: —

Profit margin: —

Markup: —

Price at target margin: —

About this tool

Profit Margin Calculator made simple.

Margin is profit divided by selling price; markup is profit divided by cost. They are different percentages. This simple estimate excludes tax, shipping, fees, overhead and other business costs.

Guide

Using Profit Margin Calculator

This calculator starts from two numbers: what an item costs you and what you sell it for. It shows your profit, your profit margin and your markup. It can also work out the price you would need to reach a margin you pick. People who run small shops, sell online or quote jobs use it to check a price before they set it. It is a simple estimate. It does not include tax, shipping, fees or other costs of running a business.

How to use it

  1. Type your cost into the Cost box. This is what one item or job costs you.
  2. Type the Selling price you charge or plan to charge.
  3. Pick a Currency from the list, so the money results show the right symbol.
  4. Fill in Target margin (%) with the margin you want, for example 30. Use a number from 0 to under 100.
  5. Press Calculate profit and margin. Read Profit, Profit margin, Markup and Price at target margin.
  6. Press Clear to start over with new numbers.

Worked examples

Item bought for 40 and sold for 100

You enter
Cost
40
Selling price
100
Currency
USD
Target margin percent
30
You get
Profit
$60.00
Profit margin
60.00%
Markup
150.00%
Price at target margin
$57.14

Profit is 100 minus 40, which is 60. Margin is 60 out of 100. Markup is 60 out of 40. To earn a 30% margin you could charge as little as 57.14.

Run through the tool’s own code.

Thin margin on a 25 cost

You enter
Cost
25
Selling price
30
Currency
USD
Target margin percent
40
You get
Profit
$5.00
Profit margin
16.67%
Markup
20.00%
Price at target margin
$41.67

You keep 5 on a 30 sale. That is far below the 40% goal. The tool says a price of 41.67 would reach it.

Run through the tool’s own code.

Margin and markup are not the same number

You enter
Cost
8
Selling price
12
Currency
EUR
Target margin percent
50
You get
Profit
€4.00
Profit margin
33.33%
Markup
50.00%
Price at target margin
€16.00

The same 4 of profit is one third of the price but half of the cost. So a 50% markup is only a 33.33% margin.

Run through the tool’s own code.

Already above the target

You enter
Cost
60
Selling price
80
Currency
USD
Target margin percent
25
You get
Profit
$20.00
Profit margin
25.00%
Markup
33.33%
Price at target margin
$80.00

The price is exactly the one that gives a 25% margin, so the target price equals what you already charge.

Run through the tool’s own code.

When it helps

  • Check whether the price on a product page leaves you enough profit.
  • Compare two suppliers by seeing how much margin each cost leaves at the same shelf price.
  • Find the lowest price that still reaches the margin you want before you start a sale.
  • Turn a markup that a supplier or shop talks about into a margin, and the other way around.
  • Quote a small job by entering what it costs you and testing a few prices.
  • Explain to a student or a new team member why margin and markup give different percentages.

Limits to keep in mind

  • The tool uses only the cost and price you type. It leaves out tax, shipping, payment fees, rent, wages and other business costs.
  • Cost and price must be zero or more, and a price of zero is accepted only when the cost is zero.
  • The target margin must be below 100. A target of 100 or more gives an error.
  • Results are rounded to two decimals for percentages, and money follows your browser's currency format.
  • The currency list only changes how money is shown. The tool does not convert between currencies.

Tips

  • Use the full cost to you, not just the supplier price, if you want a result close to real life.
  • Fill in the target margin box on purpose. If you leave it empty, the price at target margin shows a dash instead of a number.
  • Try a few selling prices in a row and watch how the margin moves.
  • When someone quotes a percentage, ask whether it is margin or markup, because the two are not the same.
  • Write down the numbers you used, because Clear removes them.

Common questions

About Profit Margin Calculator.

What is the difference between margin and markup?

Margin is profit divided by the selling price. Markup is profit divided by the cost. Because the cost is smaller than the price, markup is a bigger percentage for the same profit.

How do I calculate profit margin?

Take the selling price, subtract the cost to get profit, then divide the profit by the selling price and multiply by 100. For a price of 100 and a cost of 40, the margin is 60%.

How do I find the price for a target margin?

Divide your cost by one minus the target margin as a decimal. For a cost of 40 and a 30% target, that is 40 divided by 0.70, which is 57.14. The tool does this for you.

Does this include tax or shipping?

No. It only uses the cost and price you enter. Taxes, shipping, fees and overhead are left out, so add them to your cost if you want them counted.

Can the margin be negative?

Yes. If the selling price is lower than the cost, the profit is negative and so are the margin and markup. That means you lose money on each sale.

Why is my markup higher than my margin?

Both use the same profit, but markup divides by the smaller number, your cost. Margin divides by the larger number, your price. So markup is bigger whenever profit is positive.

What happens if I leave the target margin empty?

The price at target margin shows a dash, because the tool needs a number to work with. Type a value such as 30 to get a target price for that margin.

Does the currency choice convert my numbers?

No. It only changes the symbol and format of the money shown. Enter cost and price in the same currency.

Is 50 percent a good profit margin?

It depends on your trade, your other costs and your goals. This tool does not judge a margin as good or bad. It shows the number, and you decide whether it leaves enough after your other costs.

Is my data sent anywhere?

No. All the sums run in your browser, and nothing you type into the boxes is uploaded or stored by the page.

Does this include tax or operating costs?

No. Enter your own cost and selling price; the estimate does not include tax, shipping, fees or overhead.