Profit and Loss Percentage Formula: Margin vs Markup Explained
How to calculate profit %, loss % and margin with worked rupee examples, a margin-to-markup table, and how to price for a target margin without mistakes.
The short answer
Profit percentage = profit ÷ cost price × 100. Loss percentage = loss ÷ cost price × 100. Margin uses the selling price instead: profit ÷ selling price × 100. So an item bought for ₹800 and sold for ₹1,000 has a 25% profit (markup) but a 20% margin. You can check any of these with the "% change from X to Y" and "X is what % of Y" modes of the percentage calculator.
The formulas you need
Every profit and loss question uses three numbers: the cost price (CP), the selling price (SP) and the difference between them.
| What you want | Formula | Divide by |
|---|---|---|
| Profit amount | SP − CP | — |
| Loss amount | CP − SP | — |
| Profit % (markup %) | (SP − CP) ÷ CP × 100 | Cost price |
| Loss % | (CP − SP) ÷ CP × 100 | Cost price |
| Margin % (gross margin) | (SP − CP) ÷ SP × 100 | Selling price |
The only real decision is what you divide by. School textbooks and most shopkeepers in India calculate profit % on the cost price. Accountants and business reports usually quote margin on the selling price. Both are correct; they answer different questions.
Worked example: profit percentage
You buy a pressure cooker for ₹800 and sell it for ₹1,000.
In the calculator: choose % change from X to Y, enter 800 as the "From value" and 1,000 as the "To value". The result reads "Change from 800 to 1000 = 25.00%". A percentage change from cost to selling price is exactly the profit percentage.
Worked example: loss percentage
You bought a phone for ₹1,200 and sell it for ₹900.
In the calculator, "% change from 1200 to 900" shows −25.00%. The minus sign tells you it is a loss.
A common mistake is dividing by the selling price here: 300 ÷ 900 = 33.33%. That overstates the loss. Loss percentage is always measured against what you paid.
Worked example: margin
Take the cooker again. The profit is ₹200 and the selling price is ₹1,000.
- Margin = 200 ÷ 1,000 × 100 = 20%.
In the calculator: choose X is what % of Y, enter 200 as "Value X" and 1,000 as "Total Y". The result is "200 is 20.00% of 1000".
So the same sale is a 25% markup and a 20% margin. Neither number is wrong. Problems start when someone says "I make 25%" and the listener hears margin.
Margin vs markup: the conversion table
Margin is always smaller than markup for the same sale, because the selling price is bigger than the cost price. Use these formulas to switch between them:
- Markup = margin ÷ (1 − margin)
- Margin = markup ÷ (1 + markup)
(Use decimals in the formulas: 20% = 0.20.)
| Margin on selling price | Equivalent markup on cost |
|---|---|
| 10% | 11.11% |
| 15% | 17.65% |
| 20% | 25% |
| 25% | 33.33% |
| 30% | 42.86% |
| 40% | 66.67% |
| 50% | 100% |
Read the last row carefully: doubling your cost (100% markup) gives you a 50% margin, not 100%. A margin can never reach 100% unless the item cost nothing.
How to set a selling price
For a target markup
If you want a 25% markup on an item that costs ₹600, add 25% to the cost:
- SP = 600 × 1.25 = ₹750.
In the calculator, choose Add X% to Y, enter 25 and 600. The result is "600 + 25% = 750.00".
For a target margin
If you want a 25% margin on the same ₹600 item, you cannot just add 25%. That gives ₹750, and the margin on ₹750 is only 150 ÷ 750 = 20%.
Divide the cost by (1 − margin) instead:
- SP = 600 ÷ (1 − 0.25) = 600 ÷ 0.75 = ₹800.
- Check: profit = 200, and 200 ÷ 800 = 25%. Correct.
This is the most common pricing error small sellers make: they want a 25% margin, add 25% to cost, and end up at 20%.
Profit after a discount
Discounts are taken off the marked price (MRP or list price), but profit is still measured against the cost.
Example: a shirt is marked ₹1,000, sold at 10% off, and cost the shop ₹750.
If you are working out how several discounts combine, see stacked discounts explained. To find the discount percentage from two prices, the discount calculator does it directly.
Finding the cost price from profit %
Exam questions often give the selling price and the profit % and ask for the cost price. Divide the selling price by (1 + profit %):
- An item sold for ₹1,150 at a 15% profit cost 1,150 ÷ 1.15 = ₹1,000.
- An item sold for ₹900 at a 10% loss cost 900 ÷ 0.90 = ₹1,000.
This is the same idea as finding an original number before a percentage change. The reverse percentage guide covers it in more detail.
Common mistakes
Quick reference
- Profit % = profit ÷ CP × 100 (calculator: % change from CP to SP).
- Loss % = loss ÷ CP × 100 (the change shows as negative).
- Margin % = profit ÷ SP × 100 (calculator: X is what % of Y).
- Price for a target markup: CP × (1 + markup).
- Price for a target margin: CP ÷ (1 − margin).
- For other everyday percentage questions, see percentage formulas explained.
Frequently asked questions
How do you calculate profit percentage?
Subtract the cost price from the selling price to get the profit, divide the profit by the cost price and multiply by 100. Bought for ₹800 and sold for ₹1,000: profit ₹200, and 200 ÷ 800 × 100 = 25%.
What is the difference between margin and markup?
Markup is profit as a percentage of the cost price. Margin is profit as a percentage of the selling price. The same ₹800 to ₹1,000 sale is a 25% markup but a 20% margin.
Is loss percentage calculated on cost price or selling price?
On the cost price. An item bought for ₹1,200 and sold for ₹900 has a ₹300 loss, which is 300 ÷ 1,200 = 25%, not 300 ÷ 900.
How do I set a price for a 25% margin?
Divide the cost by (1 − 0.25). A ₹600 item needs a selling price of 600 ÷ 0.75 = ₹800. Adding 25% to the cost gives ₹750, which is only a 20% margin.
How do I convert margin to markup?
Markup = margin ÷ (1 − margin), using decimals. A 30% margin needs a markup of 0.30 ÷ 0.70 = 42.86%.
Put this guide into practice with our free online tool — no signup required.
Open tool