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
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.
0.00
- Selling price
- 0.00
- Cost
- 0.00
- Fees
- 0.00
- Cost to you
- 0.00
- Profit
- 0.00
- Margin (profit ÷ price)
- 0%
- Markup (profit ÷ cost to you)
- 0%
Totals for the items you entered
- Revenue
- 0.00
- Cost to you
- 0.00
- Profit
- 0.00
How to use this profit margin calculator
- 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.
- Enter the cost of one item and, depending on your choice, the selling price, a target margin, or a target markup.
- If you sell through a platform, enter its percentage fee and any fixed fee per sale. Leave them empty if you have none.
- Optionally enter a number of items to see totals.
- 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.
| Margin | Markup | |
|---|---|---|
| Formula | profit ÷ price | profit ÷ cost to you |
| Example: cost 80, price 120 | 40 ÷ 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.
- If you edit in two tabs of the same browser, the tab that saves last wins.
- “Clear all” empties the fields and the saved copy. If saved data cannot be read, the calculator clears it and starts empty.
- If your browser blocks storage, the calculator still works, but the numbers are lost when you close or reload the page. The page tells you when saving is not available.
What this calculator does not do
- It does not know any platform’s fees, taxes, shipping, or discounts. Enter the rates that apply to you.
- It works with one item type at a time. It does not combine different products.
- It does not convert between currencies or keep a history of your calculations.
- It does not tell you what price your customers will accept or what margin is good for your business.
Privacy and disclaimer
- What the calculator collects: nothing. It has no sign-up, analytics, advertising, cookies, or third-party scripts, and it does not send your numbers to any server.
- What stays on your device: the numbers you typed, in this browser’s local storage. You can empty them at any time with “Clear all” or by clearing your browser data.
- Web server logs: like any website, the server that delivers this page may keep ordinary access logs, such as the time of a visit and your IP address. This calculator cannot see or control those logs.
- Disclaimer: this is a free calculator, provided as is, without any warranty. Results are estimates based only on what you enter. It is not financial, accounting, or tax advice.
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.