Profit Margin Calculator
Margin and markup: the most expensive confusion in pricing
Two shopkeepers sell the same product at the same price with the same profit, and one describes it as 20 percent while the other says 25 percent. Both are right, because they are dividing by different things. Margin measures profit as a share of the selling price — the money coming in. Markup measures profit as an addition to the cost — the money going out. Since the price is always larger than the cost (in any business that survives), the same profit is always a smaller percentage of the price than of the cost, so margin is always lower than markup for the same transaction. Neither is more correct than the other; they answer different questions. Margin tells you how much of every sales dollar you keep, which is what accounts, tax and comparisons between businesses are built on. Markup tells you how much you added, which is what quick pricing at a market stall is built on.
The confusion becomes expensive at exactly one moment: when a target margin is set using markup arithmetic. A business decides it needs a 30 percent margin, adds 30 percent to its costs, and unknowingly prices at a 23 percent margin instead — on every product, every day. Across a year's turnover that seven-point gap is frequently the difference between a business that funds its own growth and one that cannot understand why the bank balance never rises despite "healthy margins". The reverse error exists too: a supplier quoting a 50 percent markup may sound greedier than one quoting a 33 percent margin, when the two prices are identical. This calculator keeps the pair side by side in every mode precisely so the translation is never left to memory.
The three calculations
From cost and price: profit = price − cost; margin = profit ÷ price × 100; markup = profit ÷ cost × 100. From a target margin: price = cost ÷ (1 − margin as a decimal) — the division, not an addition, is the step people get wrong, because the margin must be a share of the final price, including the part that is the margin itself. From a markup: price = cost × (1 + markup as a decimal), after which the resulting margin can be read off for reporting. The modes in the tool above run all three, and each result shows both percentages so you can see the pair together whichever direction you came from.
Worked examples
Cost and price: cost 80, price 100 → profit 20, margin 20%, markup 25%. Same product, same profit, two percentages — the margin divides by the 100 price, the markup by the 80 cost.
Pricing to a target margin: a target margin of 30 percent on a cost of 70 requires a price of 70 ÷ 0.70 = 100.00, giving a profit of 30.00. Adding 30 percent to the cost instead would have priced it at 91 and delivered a margin of only about 23 percent.
Pricing from a markup: a markup of 50 percent on a cost of 60 gives a price of 90 and a profit of 30 — which is a margin of 33.33%, not 50 percent. A "half as much again" markup always converts to a one-third margin.
Margin and markup side by side
| If the markup is | The margin is | If the margin is | The markup needed is |
|---|---|---|---|
| 10% | 9.09% | 10% | 11.11% |
| 25% | 20.00% | 20% | 25.00% |
| 50% | 33.33% | 30% | 42.86% |
| 100% | 50.00% | 50% | 100.00% |
Keep this table near any pricing conversation. The two columns converge at small percentages and diverge sharply at large ones, which is why the confusion survives unnoticed in low-margin trades and causes real damage in high-margin ones.
Rules and honest notes
Decide what "cost" includes before comparing margins. A margin calculated on materials alone is a gross margin on materials; one that includes labour, delivery, fees and a share of overheads is a different, lower and much more honest number. Both are legitimate, but mixing them — costing one product one way and the next another — makes the figures useless for deciding what to sell. Also remember that margin is calculated before tax on profit, and that discounts come straight out of it: a 10 percent discount on a product with a 20 percent margin does not leave a 10 percent margin, it halves the profit, because the discount is a share of the price while the margin was too. Test discounts in the discount calculator before offering them.
Frequently asked questions
What is the difference between margin and markup?
They measure the same profit against two different bases. Margin divides profit by the selling price; markup divides profit by the cost. A product costing 80 and selling for 100 makes 20 of profit: that is a margin of 20 percent (20 out of the 100 price) and a markup of 25 percent (20 on top of the 80 cost). Markup is always the larger number, and confusing the two is how businesses price for a profit they never actually make.
How do I price for a target margin?
Divide the cost by one minus the margin as a decimal. For a 30 percent margin on a cost of 70, divide 70 by 0.70, giving a price of 100.00 and a profit of 30.00. The common shortcut — adding 30 percent to the cost — gives 91, which is only a 23 percent margin, because the added percentage was calculated on cost rather than on the final price.
Can a margin be 100 percent or more?
No. Margin is profit as a share of the price, and profit cannot exceed the price unless the cost is negative, so margin is capped below 100 percent. Markup has no such cap: a product costing 10 and selling for 100 has a markup of 900 percent, but its margin is 90 percent. Whenever someone quotes a figure above 100 percent for profitability, they are talking about markup, whether they know it or not.
How do I convert markup to margin?
Margin equals markup divided by one plus the markup, with both as decimals. A 50 percent markup is 0.50 divided by 1.50, a margin of 33.33 percent — which is why a cost of 60 marked up by 50 percent sells for 90 and keeps 30 as profit, a third of the price. Going the other way, markup equals margin divided by one minus the margin.
What is a good profit margin?
It depends entirely on the industry. Supermarkets operate on margins of 1 to 3 percent and make it work through enormous volume; software and professional services can sustain margins above 20 percent because their variable costs are low. Compare your margin with businesses like yours, not with a universal figure, and remember that a margin is measured before overheads unless you have included them in the cost.
Related tools
Formulas and worked examples last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.