Margin & Markup Calculator
Enter cost, fees, shipping and advertising to get profit, margin and markup at once. Set a target margin and it works back to the price you need. Everything is calculated in this browser only.
Costs
Read it from your sales channel and type it in. Use the combined sales and payment fee as a percentage of the selling price. Blank means 0%. Shipping you pay per order. Blank means 0. Advertising spend for selling one item. Blank means 0.
When ticked, the VAT is taken out of the selling price first and what remains counts as revenue.
More settings
A memo. It is not stored and only appears below the result.
Costs
Read it from your sales channel and type it in. Use the combined sales and payment fee as a percentage of the selling price. Blank means 0%. Shipping you pay per order. Blank means 0. Advertising spend for selling one item. Blank means 0.
When ticked, the VAT is taken out of the selling price first and what remains counts as revenue.
More settings
A memo. It is not stored and only appears below the result.
Give each product a name, cost and price. Pasting cells from a spreadsheet fills from the box you pasted into. Fee, shipping and advertising apply to every line, per item sold.
Costs
Read it from your sales channel and type it in. Use the combined sales and payment fee as a percentage of the selling price. Blank means 0%. Shipping you pay per order. Blank means 0. Advertising spend for selling one item. Blank means 0.
When ticked, the VAT is taken out of the selling price first and what remains counts as revenue.
More settings
A memo. It is not stored and only appears below the result.
Estimate for reference only — verify before relying on it. This is not tax or accounting advice; check actual fees and tax rates with your sales channel and the tax authority.
How it works
- Profit
- Enter the cost and the selling price, plus any fee rate, shipping and advertising you know. Profit is the selling price minus the cost and every expense. Margin is profit divided by revenue, and markup is profit divided by cost.
- Price for a target
- Enter the cost and expenses and a target margin (or markup) to get a selling price that reaches it. The table below shows the price needed for margins from 0%, the break-even point, up to 50%.
- Several products
- Give each product a name, cost and price to get a margin per line and an overall total at the bottom. Cells copied from a spreadsheet can be pasted in to fill the lines.
- VAT
- Tick the box when the selling price already contains VAT. With a rate entered, the VAT is taken out of the selling price first and the remainder (the net amount) counts as revenue. Cost, shipping and advertising are used as typed, and whether input VAT can be reclaimed is not considered.
Formulas used
- VAT = selling price × rate ÷ (100% + rate). It is 0 when the box is not ticked.
- Revenue = selling price − VAT
- Fee = selling price as typed × fee rate
- Profit = revenue − cost − fee − shipping − advertising
- Margin = profit ÷ revenue × 100, markup = profit ÷ cost × 100
- A fraction of a unit in the fee or VAT is brought to a whole unit with the chosen rounding, and margin and markup are rounded to two decimals. All arithmetic uses whole numbers, so there is no floating-point error.
- The reverse starts from the formula price = (cost + shipping + advertising) ÷ (1 − fee rate − target margin), which ignores rounding, and then searches in whole units for the price where the exact margin reaches the target and one unit less falls short.
Margin versus markup
The same profit gives different numbers depending on what it is divided by. Margin uses the selling price, so it never passes 100%. Markup uses the cost, so it can. When the cost is the only expense, a 25% markup and a 20% margin describe the same profit. The table shows the link.
| Markup | Margin |
|---|---|
| 10% | 9.09% |
| 20% | 16.67% |
| 25% | 20% |
| 30% | 23.08% |
| 50% | 33.33% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.67% |
Cost multiple for each target margin
Assuming no fees, shipping or advertising, this shows what the cost has to be multiplied by to hit a target margin. Price = cost ÷ (1 − margin). With expenses, use the price tab above.
| Target margin | Multiply cost by |
|---|---|
| 10% | 1.1111 |
| 15% | 1.1765 |
| 20% | 1.2500 |
| 25% | 1.3333 |
| 30% | 1.4286 |
| 35% | 1.5385 |
| 40% | 1.6667 |
| 50% | 2.0000 |
Worked examples
- A cost of 10,000, a price of 20,000, a 5% fee, 3,000 shipping and 2,000 advertising give a fee of 1,000 and a profit of 20,000 − 10,000 − 1,000 − 3,000 − 2,000 = 4,000. Margin is 4,000 ÷ 20,000 = 20% and markup is 4,000 ÷ 10,000 = 40%.
- For a cost of 10,000 and a 10% fee, a 20% margin works out as 10,000 ÷ (1 − 0.1 − 0.2) ≈ 14,285.7. Checking with the fee rounded to whole units, the answer is 14,287; at 14,286 the margin is 19.9986%, just short of the target.
- A price of 11,000 that includes 10% VAT contains 1,000 of VAT, leaving 10,000 of revenue. With a cost of 6,000 and a 3% fee (330 on 11,000), profit is 3,670, margin is 36.7% and markup is 61.17%.
- A cost of 10,000 sold at 12,500 with no other expense leaves 2,500. That is a 20% margin and a 25% markup: the same sale, two different numbers.
Frequently asked questions
- Should I look at margin or markup?
- They divide the same profit by different things. People tend to say markup when talking about what to add to the cost and margin when talking about how much of the revenue is kept. Check which one your partner or sales channel uses.
- Where do I find the fee rate?
- Read it from the fee notice of your sales channel and type it in. This tool holds no default for any channel, and fees can vary by channel, category and date. If you note the date you checked under More settings, it is shown with the result.
- What changes when I tick the VAT box?
- The VAT is taken out of the selling price first and the rest counts as revenue, so profit and margin drop for the same price. The fee is applied to the price as typed, and cost, shipping and advertising are used as typed. Whether VAT applies to a sale or input VAT can be deducted is not judged here.
- It says the target cannot be reached.
- When the fee rate and the target margin add up to 100%, no price is high enough. With VAT taken out it fails at a lower total. Lower the target or recheck the fee rate.
- Why are there decimal places?
- Won are normally whole, so the default is 0. For a currency with cents, switch to 2 under More settings. The currency itself is not considered; only the numbers are calculated.
- Can I use it to set prices or file taxes as is?
- It only does arithmetic on what you type. VAT filing, deductions and channel settlements are not judged. Check tax and accounting questions with a professional or the tax authority.
- Is what I type stored?
- The numbers are not sent anywhere or stored; they are calculated in this browser. Closing or reloading the page clears them.