About Profit Margin Calculator
Enter what a product costs you and the price you sell it for, and this calculator shows three numbers at once: the profit per unit, the profit margin as a share of the selling price, and the markup as a share of the cost. The results update as you type, so you can try different prices and watch the margin move. With the default example, a cost of 50 and a price of 80 give a profit of 30.00, a margin of 37.5% and a markup of 60.0%.
Margin and markup are often confused, and mixing them up leads to prices that look profitable but are not. This tool puts both side by side. It is useful for shop owners pricing new stock, resellers checking a deal, freelancers quoting a job against their costs, and anyone preparing a price list or a simple business plan. It works in any currency, and nothing you type leaves your browser.
Why use it
- Shows profit, margin and markup together, so you never mistake one for the other.
- Updates live while you type, ideal for testing several price points quickly.
- Makes losses visible: a selling price below cost produces negative figures.
- Works with any currency and any product, from handmade goods to digital services.
- Private by design, with every calculation done on your device.
How to use
Enter the product cost
Type the full cost of one unit: purchase price plus shipping, packaging and payment fees if you want a realistic figure.
Enter the selling price
Type the price the customer pays for one unit, before any tax you collect on behalf of the government.
Read the three results
Profit appears with two decimals, followed by profit margin and markup as percentages with one decimal.
Adjust the price
Raise or lower the selling price until the margin reaches your target.
Examples
The default example
Cost 50, price 80: profit 30.00, margin 37.5%, markup 60.0%. The same 30 is 37.5% of the price but 60% of the cost.
Online store item
A phone case costs $6.40 including shipping and sells for $19.99. Profit is $13.59, margin 68.0% and markup 212.3%.
Thin-margin electronics
A tablet bought for 420 and sold for 465 earns 45.00, a margin of only 9.7% and a markup of 10.7%.
Selling below cost
Clearance stock that cost 30 sells for 24. Profit is -6.00, margin -25.0% and markup -20.0%, showing the loss per unit.
| Selling price | Profit | Margin | Markup |
|---|---|---|---|
| 110 | 10 | 9.1% | 10.0% |
| 125 | 25 | 20.0% | 25.0% |
| 150 | 50 | 33.3% | 50.0% |
| 200 | 100 | 50.0% | 100.0% |
| 400 | 300 | 75.0% | 300.0% |
Tips
- Include every cost tied to one unit, such as shipping, packaging and payment fees. Leaving them out inflates the margin.
- Margin can never reach 100%, but markup can be any size. A 100% markup equals a 50% margin.
- To hit a target margin, use price = cost ÷ (1 − margin). For a 40% margin on a cost of 60, price = 60 ÷ 0.6 = 100.
- Gross margin per unit does not cover rent, salaries or advertising. Check that total profit covers those fixed costs.
- Treat the figures as estimates for planning, and talk to an accountant for tax and official reporting.
All calculations happen in your browser; the costs and prices you enter are not sent to a server or stored.
Frequently asked questions
What is the formula for profit margin?
Profit margin = (selling price − cost) ÷ selling price × 100. It tells you what share of every sale you keep as gross profit.
What is markup and how is it calculated?
Markup = (selling price − cost) ÷ cost × 100. It tells you how much you added on top of the cost, as a percentage of that cost.
What is the difference between margin and markup?
Both use the same profit, but margin divides it by the price and markup divides it by the cost. That is why markup is always the larger number when you make a profit.
Why can't margin reach 100%?
Margin is profit as a share of price. Profit can only equal the whole price if the product cost nothing, so any real cost keeps the margin below 100%.
What does a negative margin mean?
It means you are selling below cost and losing money on every unit. The calculator shows the profit, margin and markup as negative values.
What is a good profit margin?
There is no universal number. Grocery and electronics retail often run on single-digit margins, while digital products and services can exceed 70%. Compare with your industry and your fixed costs.
Should the price include VAT or sales tax?
Usually no. Use the price excluding tax, because the tax is passed on to the authorities and is not your revenue.
What if I enter a cost of zero?
Markup cannot be calculated when the cost is zero, so the calculator asks you for a cost greater than zero instead of showing a misleading figure.
Is this gross margin or net margin?
Gross margin per unit, based only on the cost and price you enter. Net margin would also subtract overheads such as rent, wages and marketing.
Which currency should I use?
Any currency, as long as cost and price use the same one. The percentages are the same in every currency.
Can I calculate the price from a target margin?
The tool works from cost and price. To find a price for a target margin, use price = cost ÷ (1 − target margin), then enter it to confirm.
Are my numbers saved?
No. Nothing is stored or uploaded, and the fields reset when you reload the page.
Last updated: