Profit Margin Calculator
See how much you really keep from each sale, or work backwards from the margin you want to the price you should charge.
Updated November 2026
- Selling price
- —
- Profit per item
- —
- Profit margin
- —
- Markup
- —
How to use the Profit Margin Calculator
Choose what to find
Pick margin from a price you already have, or the price that gives a margin you want.
Enter cost and price
Use the full cost per item, including materials, shipping and fees.
Compare margin and markup
See profit per item, margin and markup together.
Margin vs markup
Both describe profit, but they divide by different numbers. Margin is profit as a share of the selling price. Markup is profit as a share of the cost. Mixing them up is one of the most common pricing mistakes.
Margin = (Price − Cost) ÷ Price × 100
Markup = (Price − Cost) ÷ Cost × 100
An item that costs 40 and sells for 65 makes 25 profit. That is a 38.5% margin but a 62.5% markup.
| Markup | Margin | Price for a 100 cost |
|---|---|---|
| 25% | 20.0% | 125 |
| 50% | 33.3% | 150 |
| 66.7% | 40.0% | 166.67 |
| 100% | 50.0% | 200 |
| 150% | 60.0% | 250 |
How to price for a target margin
Price = Cost ÷ (1 − Target margin ÷ 100)
To make a 40% margin on a 40 cost, charge 40 ÷ 0.60 = 66.67. Adding 40% to the cost would give 56, which is only a 28.6% margin.
Frequently asked questions
What is a good profit margin?
It varies a lot by industry. Grocery and fuel often run on a few percent, while software and services can be much higher. Compare your gross margin with businesses like yours.
Is this gross margin or net margin?
It is gross margin per item: price minus the direct cost of that item. Net margin also subtracts overheads like rent, salaries and marketing.
Why is my margin always lower than my markup?
Margin divides profit by the selling price, which is larger than the cost. So for the same profit, margin is always the smaller percentage.
Can margin be 100%?
Only if the item costs nothing. As costs approach zero, margin approaches 100%, which is why the price-from-margin mode needs a target below 100%.
Related guide
More finance & business tools
Smart Calculator
A fast online calculator with percentages, brackets and a history tape.
% of · % changePercentage Calculator
Work out percentages, percentage change and increases in one place.
return on investmentROI Calculator
Find the return on an investment, including the yearly (annualized) rate.
hourly ↔ yearlySalary Calculator
Convert pay between hourly, daily, weekly, monthly and yearly.
add or remove taxSales Tax & VAT Calculator
Add tax to a price or work out the price before VAT or GST.
monthly paymentLoan EMI Calculator
See your monthly loan payment, total interest and yearly schedule.