Profit Margin Calculator
Work out a selling price from your cost price and a target margin, or check the margin and markup you're actually getting on a price you've already set. Nothing you type here leaves your browser.
Selling price
₹125
Profit
₹25
Markup
25%
Margin vs. markup — they're not the same
Both measure profit, but against a different base — margin divides by selling price, markup divides by cost price. That's why a 25% markup is only a 20% margin, not the same number.
| Formula | Example (CP ₹100, SP ₹125) | |
|---|---|---|
| Margin | (SP − CP) / SP × 100 | (125 − 100) / 125 × 100 = 20% |
| Markup | (SP − CP) / CP × 100 | (125 − 100) / 100 × 100 = 25% |
Bulk pricing
Paste a list of cost prices — one per line, or comma-separated, straight out of a spreadsheet — and price your whole catalog at one target margin.
Paste some cost prices to see results here.
FAQ
What's the difference between margin and markup?
Margin is profit as a percentage of the selling price: (SP − CP) / SP × 100. Markup is profit as a percentage of the cost price: (SP − CP) / CP × 100. They use the same profit amount but divide by a different number, so markup is always a bigger percentage than margin for the same sale.
How do I calculate selling price from cost price and margin?
Selling price = cost price / (1 − margin / 100). This isn't the same as cost price × (1 + margin/100) — that formula gives markup, not margin — which is the most common pricing mistake this calculator helps catch.
Can margin or markup be negative?
Yes — a negative value means you're selling below cost, which happens with clearance sales or loss leaders. The calculator shows it as a negative percentage rather than blocking the input.
Is my pricing data stored or uploaded anywhere?
No. All calculations, including bulk mode, run entirely in your browser — nothing is sent to a server.