Profit and Loss Calculator — Margin & Markup
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Price for a target
For a 25% margin sell at ₹1,067; for a 25% markup sell at ₹1,000.
Markup is profit as a share of cost; margin is profit as a share of the selling price. A 25% markup is only a 20% margin — mixing them up is the most common pricing mistake.
Disclaimer: Estimates for general information only, using the rules and rates shown on this page. This is not financial, tax or investment advice. Rates and rules change, so confirm figures with a qualified adviser, your employer or the official source before acting on them.
About this tool
Enter the cost price and selling price to get the profit or loss in rupees and as a percentage, shown both as markup (on cost) and margin (on selling price).
Set a target percentage to find the selling price you need — for a margin or for a markup. A 25% markup is only a 20% margin, and confusing the two is a common pricing mistake.
Useful for shopkeepers, resellers, freelancers and students preparing for aptitude exams.
A worked example: you buy an item for ₹800 and sell it for ₹1,000. Profit is ₹200. Markup is 200 ÷ 800 × 100 = 25%; margin is 200 ÷ 1,000 × 100 = 20%. For a 25% target, the margin price is 800 ÷ (1 − 0.25) = ₹1,066.67 (shown as ₹1,067, since rupees are rounded to the nearest whole number), while the markup price is 800 × 1.25 = ₹1,000.
When the selling price is below cost, the first two boxes switch to Loss and Loss % on cost. If you buy at ₹500 and sell at ₹400, the loss is ₹100, which is 20% of cost; the margin box shows −25% because it is measured against the ₹400 selling price. Exam questions usually mean the percentage on cost price, so read that figure.
Only the two prices you type are used. GST, discounts, shipping, rent, staff and marketplace fees are not added, so enter your true landed cost if you want a realistic result. All figures are calculated in your browser.
Frequently asked questions
What is the difference between markup and margin?
Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price. Buying at ₹80 and selling at ₹100 is a 25% markup and a 20% margin.
How do I calculate selling price from margin?
Selling price = cost ÷ (1 − margin). For a 20% margin on ₹80 cost: 80 ÷ 0.8 = ₹100.
Should I price using margin or markup?
Use markup if you think “add X% to what I paid”. Use margin if you need profit to be a fixed share of what the customer pays, as in budgets and most company accounts. The same ₹ profit gives a smaller margin than markup, so a 30% markup does not deliver a 30% margin.
Why is there no 100% margin option?
The formula divides by (1 − margin), which is zero at 100%. The target box stops at 99%, and a margin of 100% or more has no valid selling price, so the result shows a dash.
How is loss percentage calculated?
As loss ÷ cost price × 100, the usual convention for school and competitive-exam problems. Cost ₹500, selling ₹400 gives a 20% loss.
What if my cost price is zero?
A percentage on a zero cost cannot be calculated, so the markup shows a dash. Enter the cost you actually paid, including freight or packing, to get meaningful figures.