Free Profit Margin Calculator

Find your profit, margin and markup from a cost and a price. Or work backwards: the price that gives you a target margin or markup, or the highest cost you can afford. Add a fee percentage and a fixed fee if you sell through a platform.

Runs in your browser. No sign-up, and nothing you type is sent anywhere. Your numbers are saved only in this browser.

Your numbers

What do you want to find?

Any symbol or code up to 4 characters. Enter every amount in the same currency.

For example a payment or marketplace fee. Enter the rates that apply to you. This calculator does not know any platform’s fees.

Saved in this browser only. Your numbers cannot be restored if you clear your browser data, use a private window, or switch to another browser or device.

Your result

Fill in the numbers above to see your result.

Print or copy

How to use this profit margin calculator

  1. Choose what you want to find. The first choice works out profit, margin and markup from a cost and a price. The others work backwards from a target.
  2. Enter the cost of one item and, depending on your choice, the selling price, a target margin, or a target markup.
  3. If you sell through a platform, enter its percentage fee and any fixed fee per sale. Leave them empty if you have none.
  4. Optionally enter a number of items to see totals.
  5. Read the result. Press Print or Copy as text to keep it.

Margin and markup: what is the difference?

Both measure profit, but against different things. Margin is profit as a share of the selling price. Markup is profit as a share of what the item costs you. For the same profit, the markup is always bigger than the margin, so the two numbers are easy to mix up.

MarginMarkup
Formulaprofit ÷ priceprofit ÷ cost to you
Example: cost 80, price 12040 ÷ 120 = 33.33%40 ÷ 80 = 50.00%
Can it reach 100%?No. It stays below 100%.Yes, and it can go far above.

How the numbers are calculated

Cost to you = cost + fixed fee + (fee % × price)
Profit = price − cost to you
Margin = profit ÷ price
Markup = profit ÷ cost to you

To find a price for a target margin, the calculator solves price = (cost + fixed fee) ÷ (1 − fee % − margin). To find a price for a target markup, it solves price = (cost + fixed fee) × (1 + markup) ÷ (1 − fee % × (1 + markup)). To find the highest cost for a target margin, it uses cost = price × (1 − fee % − margin) − fixed fee. A target is not possible when the margin and the fee percentage add up to 100% or more.

All money is worked out in whole cents and each result is rounded to the nearest cent, with halves rounded up. Because a price is rounded to a cent, the margin you get can differ from the target by a very small amount, and the result always shows the margin you actually get.

Example: an item costs 70 and you want a 30% margin with no fees. The price is 70 ÷ (1 − 0.30) = 100.00, the profit is 30.00, the margin is 30.00% and the markup is 42.86%. For a 30% markup instead, the price is 70 × 1.30 = 91.00. With a 3% fee and a fixed fee of 0.30, the price for a 30% margin is 70.30 ÷ 0.67 = 104.93, the fee is 3.15, the profit is 31.48 and the margin is 30.00%.

Where your numbers are saved

After each change, the numbers you entered, your choice and your currency symbol are saved in this browser’s local storage on this device. They are not sent to a server. Saved in this browser only. They cannot be restored if you clear your browser data, use a private window, or switch to another browser or device. There is no account and no backup.

What this calculator does not do

Privacy and disclaimer

Frequently asked questions

Is this profit margin calculator free? Do I need an account?

It is free to use. There is no account, no sign-up, and no email address to enter.

How do I calculate profit margin?

Subtract your cost from the selling price to get the profit, then divide the profit by the selling price. If an item costs 80 and sells for 120, the profit is 40 and the margin is 33.33%.

What is the difference between margin and markup?

Margin divides the profit by the selling price. Markup divides the profit by the cost. The same sale gives a bigger markup than margin, for example 50.00% markup and 33.33% margin.

How do I find the selling price for a target margin?

Choose “The price for a target margin”, enter your cost and the margin you want, and read the price. Without fees the price is the cost divided by one minus the margin.

How do fees change the result?

Fees are part of what the sale costs you. A percentage fee grows with the price and a fixed fee does not, so both lower the profit and the margin. The calculator includes them in the cost to you.

Why is my margin not exactly the target?

The price is rounded to a whole cent, so the margin can differ from the target by a very small amount. The result shows the margin you actually get.

Where are my numbers stored?

In this browser on this device, in local storage. They are not sent to a server. Print the result or copy it as text if you want a backup.

Can I use it on my phone?

Yes, in a mobile browser. Your numbers are saved in that phone’s browser only.