How to use the profit margin calculator in 6 steps
- Pick a mode:
- Margin from price: you know your price.
- Price for a margin: you know the margin you want.
- Markup ↔ margin: convert one into the other.
- Enter your cost per item. Include what it costs to get the product to you: buying or making it, inbound shipping, packaging.
- Enter your selling price, or your target margin.
- Add payment fees if you sell online. Card processors and marketplaces usually take a percentage of the sale plus a fixed amount; use your own provider's rates.
- If your shelf price includes VAT or sales tax, enter the rate. The calculator removes it before working out margins.
- Optional: open Overheads & income tax and enter monthly units, overheads and your tax rate. You'll see operating margin, net margin and how many sales cover your overheads.

What makes this calculator different
- Fees are built in. A "60% margin" that ignores card fees is not your real margin. Fees are a percentage of the customer's payment, so they grow with your price. The target-price solver accounts for that exactly.
- VAT-inclusive prices are handled correctly. Margins are worked out on revenue excluding tax, as accountants do.
- One page from a single sale to the whole month: gross margin, margin after fees, break-even price, operating margin, net margin, and units needed to cover overheads.
- A margin vs markup table, priced for your own cost.
Use cases
| Question | Answer |
|---|---|
| An $18 item sold for $45 | Gross margin 60%, markup 150%. After a 2.9% + $0.30 card fee, profit is $25.40 a sale, a 56.4% margin |
| What must it sell for to keep 40% after fees? | $32.05 |
| What's the break-even price? | $18.85: below that, every sale loses money once fees are paid |
| A £60 price including 20% VAT | Revenue excluding VAT is £50; the other £10 belongs to HMRC |
| 300 sales a month, $4,000 overheads, 21% income tax | Operating profit $3,619 (26.8%), net profit $2,859 (21.2%). 158 sales cover the overheads |
A common mistake is to add a 40% markup and believe you're making a 40% margin. You're actually making 28.6%, before fees. If your business plan needs a 40% margin, you need a 66.7% markup, or the "Price for a margin" mode, which also accounts for fees.
Margin vs markup at a glance
Markup is always the bigger of the two numbers, because it is measured against the smaller amount: the cost.
| Margin | Markup |
|---|---|
| 20% | 25% |
| 25% | 33.3% |
| 33.3% | 50% |
| 50% | 100% |
| 60% | 150% |
| 75% | 300% |
Specs and limits
| Modes | Margin from price, price for a target margin, markup ↔ margin |
| Per sale | Cost, price, payment fee (% + fixed), VAT or sales tax included in the price |
| Per month | Units sold, overheads, income or corporation tax |
| Outputs | Gross profit and margin, markup, fees, profit and margin after fees, break-even price, operating and net margin, units to cover overheads |
| Currencies | 28, with local formatting |
| Data | Calculated in your browser. Copy link stores your inputs in the page address only |
Methodology
| Measure | Formula |
|---|---|
| Revenue excluding tax | price ÷ (1 + tax rate) |
| Gross margin | (revenue − cost) ÷ revenue |
| Markup | (revenue − cost) ÷ cost |
| Margin after fees | (revenue − cost − fees) ÷ revenue |
| Price for target margin m | (cost + fixed fee) ÷ ((1 − m) − fee% × (1 + tax)) × (1 + tax), rounded up to the cent so the margin is at least m (break-even and table prices too) |
Frequently asked questions
How do I calculate profit margin?
Margin = (revenue − cost) ÷ revenue × 100. Selling for $45 something that costs $18 gives a gross margin of 60%.
What's the difference between margin and markup?
Margin is profit as a share of the price; markup is profit as a share of the cost. The same $27 profit on an $18 item is a 60% margin but a 150% markup. Convert with margin = markup ÷ (1 + markup).
How do I price a product for a 40% margin?
Without fees, price = cost ÷ (1 − 0.40). With card fees and tax the calculator solves it exactly: an $18 item needs to sell for $32.05 to keep 40% after a 2.9% + $0.30 fee.
What's the difference between gross, operating and net margin?
Gross margin subtracts only the cost of the product. Operating margin also subtracts running costs (overheads). Net margin subtracts income tax as well.
Should VAT be included in the margin?
No. VAT and sales tax are collected for the government, so margins are calculated on revenue excluding tax. Enter the VAT rate if your price includes it and the calculator removes it first.