Profit Margin Calculator: Margin, Markup and Price
By HesaplayıcıHow we calculate
The profit margin calculator computes unit profit, profit margin on selling price, and markup on cost from your tax-exclusive cost and price. You can also work backwards to set a selling price for a target margin or markup, derive maximum unit cost from a price and margin, and optionally add VAT or sales tax.
Worked example: A product that costs 30 and sells for 45
Result
33.33%
- Cost
- 30
- Selling price (before VAT)
- 45
- Profit per unit
- 15
- Profit margin
- 33.33%
- Markup (on cost)
- 50.00%
Step by step
Profit per unit
profit = price − cost
profit = 45.00 − 30.00 = 15
Profit margin
margin = profit / price × 100
margin = 15.00 / 45.00 × 100 = 33.33%
Markup (on cost)
markup = profit / cost × 100
markup = 15.00 / 30.00 × 100 = 50.00%
Profit margin vs. markup: why the denominator changes your price
Two pricing metrics are routinely confused because they start from the exact same unit profit (profit = selling price − cost) yet divide it by different bases:
- Profit margin expresses profit as a share of the selling price:
margin = (selling price − cost) / selling price × 100. - Markup expresses profit as a percentage added on top of cost:
markup = (selling price − cost) / cost × 100.
Whenever you sell above cost, the selling price is larger than the cost, so markup is always the larger percentage. In the default example above, an item that costs 30 and sells for 45 earns 15 in profit — a 33.33% profit margin (15 / 45 × 100) alongside a 50% markup (15 / 30 × 100).
Mixing up the two formulas quietly erodes your bottom line. Suppose a product costs 94 and you want a 40% profit margin:
- Adding 40% on top of cost (
94 × 1.40) produces a price of 131.60 and a profit of 37.60, leaving you with only a 28.57% margin. - Pricing correctly for a 40% margin requires dividing by
1 − 0.40:94 / 0.60 = 156.67, which yields 62.67 in profit and a 66.67% markup. Treating margin as markup would underprice every unit by 25.07.
Margin-to-markup conversion table
Use this reference table (shown on a unit cost of 100) to translate common target margins into the markup percentage required on cost:
| Target profit margin | Equivalent markup on cost | Selling price on 100 cost | Unit profit |
|---|---|---|---|
| 20% | 25% | 125.00 | 25.00 |
| 25% | 33.33% | 133.33 | 33.33 |
| 33.33% | 50% | 150.00 | 50.00 |
| 40% | 66.67% | 166.67 | 66.67 |
| 50% | 100% | 200.00 | 100.00 |
Doubling your cost (a 100% markup) yields a 50% margin, and the gap between the two numbers widens rapidly as target margins climb.
Pricing for a target margin and handling VAT
Switch the What to calculate mode depending on which two inputs you already know:
- Margin and markup from cost and price: computes
profit = price − costand displays both percentages side by side. - Price from cost and margin:
price = cost / (1 − margin / 100). - Price from cost and markup:
price = cost × (1 + markup / 100)(for instance, a 25% markup on a cost of 45 yields a selling price of56.25and a20%margin). - Cost from price and margin:
cost = price × (1 − margin / 100)(a selling price of86.25with a 40% margin target allows a maximum unit cost of51.75).
Keep both cost and selling price tax-exclusive and in the same currency. Because value-added tax or sales tax is collected on behalf of the tax authority rather than earned by your business, margin and markup are always computed before tax — see our guide on VAT-inclusive vs. VAT-exclusive pricing for details. When you enter a tax rate under More options, the calculator adds tax strictly on top of the pre-tax selling price (VAT = price × VAT rate / 100):
| Line item | Example (cost 94, 40% margin, 20% VAT) |
|---|---|
| Unit cost (before VAT) | 94.00 |
| Selling price (before VAT) | 156.67 |
| Unit profit | 62.67 |
| Margin / Markup | 40% / 66.67% |
| VAT (20%) | 31.33 |
| Selling price with VAT | 188.00 |
If your supplier quote or retail shelf price already includes VAT, strip the tax out first with the VAT calculator before entering your figures here.
Gross margin scope and practical limits
- Unit gross profit only. Operating overheads such as rent, wages, shipping, packaging, platform commissions, promotional discounts, and income or corporate taxes are not included — build enough cushion into your target gross margin to cover them.
- Valid input bounds. Profit margin must stay strictly below 100% and markup strictly above −100%. Selling below cost produces negative profit, margin, and markup.
- Currency and display precision. Inputs work in any currency as long as cost and price match. Internal calculations are unrounded and displayed on the page to two decimal places.
Frequently Asked Questions
Why can profit margin never reach 100%, while markup has no upper limit?
Profit margin divides profit by the selling price, and as long as your cost is above zero, profit is always smaller than the price — so margin stays strictly below 100%. Markup divides profit by cost instead, so doubling your cost gives a 100% markup and tripling it gives a 200% markup.
How do you convert quickly between profit margin and markup?
Using decimal rates, markup = margin / (1 − margin) and margin = markup / (1 + markup). For example, a 25% margin equals 0.25 / 0.75 = 33.33% markup, whereas a 25% markup equals 0.25 / 1.25 = 20% margin.
Should VAT or sales tax be included in profit margin calculations?
No. Always enter cost and selling price before VAT or sales tax, because tax collected at checkout is passed to the tax authority rather than kept as revenue. If you enter an optional VAT rate, the tool calculates the tax amount and tax-inclusive shelf price separately.
What does a negative profit margin mean?
When the selling price drops below your unit cost, profit turns negative and both margin and markup show negative percentages — meaning each unit is sold at a loss. The calculator supports loss scenarios as long as markup stays above −100%.
How does the gross margin calculated here differ from net profit margin?
This calculator measures unit gross margin based solely on direct purchase or production cost. Net profit margin goes further by deducting operating overheads such as rent, payroll, shipping, marketplace fees, marketing, and corporate or income tax.
Calculation rules
- The profit margin is the profit as a share of the price; the markup is the profit as a share of the cost: margin = profit / price × 100, markup = profit / cost × 100. For one product the markup is always larger than the margin: a 25% margin is a 33.33% markup.
- A margin cannot be 100% or more, because the profit cannot be larger than the price. A markup has no upper limit. When the price is below the cost, the margin and the markup are negative: a loss.
- Enter the cost and the price before VAT. With a VAT rate, the VAT is added on top of the price; the margin and the markup come from the amounts before VAT. The calculator does not round; the page shows amounts to 2 decimals.
- The calculator finds the gross profit of one unit: it leaves out overheads such as rent and wages, and income tax.