About the Profit Margin Calculator
Profit margin is the clearest measure of how much money a sale actually makes. This calculator takes your cost and selling price and returns three things: the gross profit in money terms, the profit margin as a percentage, and the markup as a percentage. Understanding all three — and especially the difference between margin and markup — is essential for pricing products correctly and not quietly losing money.
Margin versus markup: the crucial distinction
Both describe the same profit, but measured against different bases, and mixing them up is the single most common pricing error in retail and small business.
| Measure | Formula | Example (cost ₹80, sell ₹100) |
|---|---|---|
| Gross profit | Price − Cost | ₹20 |
| Margin | (Profit ÷ Price) × 100 | 20% |
| Markup | (Profit ÷ Cost) × 100 | 25% |
Notice that the very same sale is a 20% margin but a 25% markup. Markup is always the larger number, because cost is smaller than price. A shop owner who wants a “30% profit” and adds 30% to cost (a markup) is actually earning only a 23% margin — a gap that compounds across thousands of sales.
Pricing for a target margin
To hit a specific margin, do not add the percentage to your cost — divide instead: Price = Cost ÷ (1 − desired margin). For a 40% margin on a ₹60 item, charge 60 ÷ 0.60 = ₹100. Adding 40% to ₹60 would give ₹84 and only a 28.6% margin. This one habit protects your profitability more than almost any other pricing rule.
Gross versus net margin
This tool computes gross margin — revenue minus the direct cost of the goods. Your net margin is what remains after every other expense (rent, wages, marketing, tax) is subtracted, and it is always lower. A healthy gross margin can still produce a thin or negative net margin if overheads are high, so use gross margin to price individual products and net margin to judge the whole business.
What counts as a good margin
There is no universal answer: margins are shaped by industry, competition and volume. High-volume groceries survive on low-single-digit margins, while software or luxury goods may exceed 70–80%. The useful comparison is against typical margins in your own sector. To analyse returns on money invested rather than on sales, see the ROI Calculator. Everything here runs privately in your browser.
Frequently Asked Questions
How is profit margin calculated?
Margin = (Selling price − Cost) ÷ Selling price × 100. It expresses profit as a percentage of the price you sell at. If you buy for ₹80 and sell for ₹100, the ₹20 profit is a 20% margin.
What is the difference between margin and markup?
They use the same profit but a different base. Margin divides profit by the selling price; markup divides it by the cost. The same ₹80 cost and ₹100 price is a 20% margin but a 25% markup. Confusing the two is one of the most common and costly pricing mistakes.
How do I set a price for a target margin?
Price = Cost ÷ (1 − desired margin). To earn a 40% margin on an item that costs ₹60, charge 60 ÷ (1 − 0.40) = ₹100. Do not simply add 40% to the cost — that gives a markup, leaving you with only a 28.6% margin.
What is the difference between gross and net margin?
Gross margin counts only the direct cost of the product. Net margin also subtracts all other expenses — rent, salaries, marketing, tax — so it reflects the actual profit the business keeps. This tool calculates gross margin.
Can margin be more than 100%?
No. Because margin is profit divided by the selling price, it can approach but never reach 100% (that would mean zero cost). Markup, however, has no upper limit — a ₹10 item sold for ₹40 is a 75% margin but a 300% markup.
What is a good profit margin?
It varies enormously by industry — grocery retail runs on low single-digit margins while software can exceed 80%. Compare against typical figures for your sector rather than a universal target.
Does this include taxes?
No. The calculation uses the raw cost and selling price you enter. For a true bottom line, account for sales tax, overheads and other expenses separately.