Profit Margin Calculator: Profit, Margin % and Markup % from Cost and Selling Price
Enter what an item costs you and what you sell it for to get profit, margin % and markup % side by side. Work backwards to the selling price for a target margin, or find how many units you must sell to break even. Rs, ₹ or $, with every step shown.
- PriceFree, no login or sign-up needed
- Your dataCalculated in your browser; nothing is saved
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published24 November 2026
- Last updated24 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Profit margin calculator [Online tool]. Codanics. Retrieved 24 November 2026, from https://codanics.com/tools/profit-margin-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 24 November 2026.
How to use the profit margin calculator
- Pick your currency (Rs, ₹ or $) and how big numbers are grouped: lakh/crore (1,00,000) or international (100,000).
- On Margin & markup, type the cost price and selling price. Add units sold to see total revenue and profit.
- Use Price for a target to find the selling price for, say, a 25% margin, or Break-even to see how many units cover your fixed costs.
- Read the step-by-step working under each answer, or press Copy result.
Profit margin vs markup: what is the difference?
Profit margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. They use the same profit but divide by different numbers, so markup is always the bigger figure. Mixing them up is the most common pricing mistake in small businesses.
| Measure | Formula | Cost 800, price 1,000 |
|---|---|---|
| Profit | Selling price − cost | 1,000 − 800 = 200 |
| Margin % | Profit ÷ selling price × 100 | 200 ÷ 1,000 = 20% |
| Markup % | Profit ÷ cost × 100 | 200 ÷ 800 = 25% |
| Price for margin m | Cost ÷ (1 − m) | 800 ÷ 0.75 = 1,066.67 for a 25% margin |
| Price for markup k | Cost × (1 + k) | 800 × 1.25 = 1,000 for a 25% markup |
Margin to markup conversion table
Use markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup).
| Margin | Same as markup |
|---|---|
| 10% | 11.1% |
| 20% | 25% |
| 25% | 33.3% |
| 33.3% | 50% |
| 40% | 66.7% |
| 50% | 100% |
How to calculate break-even units
Break-even is the number of units where total revenue equals total cost, so profit is zero. Each unit sold gives a contribution (price − variable cost) towards your fixed costs.
Worked example: a shop pays Rs 50,000 a month in rent and wages. It sells a product for Rs 1,000 that costs Rs 600 to buy. Contribution = 1,000 − 600 = Rs 400. Break-even = 50,000 ÷ 400 = 125 units a month (Rs 1,25,000 of sales). To earn Rs 20,000 profit, it must sell (50,000 + 20,000) ÷ 400 = 175 units.
Common mistakes
- Adding the margin to the cost. Adding 25% to a cost of 800 gives a 25% markup, but only a 20% margin.
- Forgetting hidden costs. Include delivery, packaging, payment fees and GST or sales tax in the cost, or your real margin will be lower.
- Not rounding break-even up. You cannot sell 124.5 units; round up to the next whole unit.
- A margin of 100% or more is impossible unless the cost is zero. Markups can be any size.
All prices and costs are the numbers you enter. This tool does arithmetic only and is not financial or tax advice.
Frequently asked questions
What is the formula for profit margin?
Profit margin % = (selling price − cost) ÷ selling price × 100. If you buy for 800 and sell for 1,000, the margin is 200 ÷ 1,000 × 100 = 20%.
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides profit by the cost. The same 200 profit on a cost of 800 and price of 1,000 is a 20% margin but a 25% markup.
How do I find the selling price for a target margin?
Divide the cost by (1 − margin as a decimal). For a 25% margin on a cost of 800: 800 ÷ 0.75 = 1,066.67. Adding 25% to the cost (1,000) only gives a 20% margin.
What is a good profit margin?
It depends on the industry. Grocery and fuel often run on single-digit net margins, while software and services can be much higher. Compare with businesses like yours, and remember gross margin (after product cost) is higher than net margin (after all expenses).
How do I calculate break-even point in units?
Break-even units = fixed costs ÷ (selling price − variable cost per unit). With fixed costs of 50,000, a price of 1,000 and a variable cost of 600, you need 50,000 ÷ 400 = 125 units.
Does this calculator save my prices?
No. Everything is calculated in your browser and nothing is saved or uploaded. Your numbers disappear when you close the page.
Do I need to log in or create an account to use the profit margin calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Profit margin calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/profit-margin-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel