Margin Calculator
Margin is profit over price. Markup is profit over cost. A 40% margin is a 66.7% markup — and confusing the two is how pricing goes wrong.
Price is below cost — margin and profit are negative.
Gross figures only: this is price minus cost of goods. Overheads, payment fees, shipping and tax are not included. Use the same currency in both fields.
Margin and markup are two different fractions
Both describe the same profit, but they divide it by different things. Gross margin is profit divided by the selling price. Markup is profit divided by the cost. Because the cost is always the smaller of the two denominators, markup is always the larger percentage — and the gap widens fast as prices rise. A 20% margin is a 25% markup, a 50% margin is a 100% markup, and a 75% margin is a 300% markup.
Which one you use depends on who you are talking to. Buyers, wholesalers and pricing sheets usually speak in markup, because they start from a cost and add to it. Accountants, investors and P&L statements speak in margin, because they start from revenue and work down. The calculator above converts between them automatically, so you can quote a supplier in one language and report to your accountant in the other without redoing the arithmetic.
Worked example 1: what am I actually making?
You buy a product for 60 and sell it for 100. Profit is 40. Gross margin is 40 / 100 = 40%. Markup is 40 / 60 = 66.7%. Same 40 of profit, two very different-looking percentages. If a supplier tells you they gave you a 66.7% markup opportunity and your finance team asks about margin, both are describing this identical deal.
Worked example 2: pricing to hit a target
The same product costs 60 and your business needs a 40% gross margin. The correct formula is price = cost / (1 - margin), so 60 / 0.60 = 100. Switch the calculator to "Price from cost and target margin" and it does exactly this. The temptation is to multiply 60 by 1.40 instead, which gives 84 — and 84 is only a 28.6% margin. That single mistake wipes out more than a quarter of the intended profit on every unit sold.
Worked example 3: working backwards from a price point
Your product has to retail at 24.99 to sit under a psychological threshold, and your category needs a 55% gross margin. Maximum cost = price x (1 - margin) = 24.99 x 0.45 = 11.25. That is your ceiling for the landed cost of the item, including freight and duty. If the factory quotes 13.80, you either negotiate, redesign, accept a 44.8% margin, or walk away — but you know before you commit, not after the first shipment lands.
Margin to markup conversion
| Gross margin | Markup | Price multiplier on cost |
|---|---|---|
| 10% | 11.1% | 1.11x |
| 20% | 25.0% | 1.25x |
| 25% | 33.3% | 1.33x |
| 30% | 42.9% | 1.43x |
| 40% | 66.7% | 1.67x |
| 50% | 100% | 2.00x |
| 60% | 150% | 2.50x |
| 75% | 300% | 4.00x |
The most expensive mistake in small-business pricing
A café owner decides every drink needs a 40% margin. Ingredients for a latte cost 1.20, so she prices it at 1.20 x 1.4 = 1.68. She has actually set a 28.6% margin, because multiplying by 1.4 applies the percentage to cost, not to price. Across 200 drinks a day the shortfall is roughly 46 per day, about 16,800 a year, on a single product line. The correct price was 1.20 / 0.6 = 2.00.
The rule that prevents this: if the percentage is stated against the selling price, divide. If it is stated against cost, multiply. Any sentence containing the phrase "gross margin" means divide.
What gross margin does not tell you
This is a gross figure. It subtracts only the direct cost of the goods, so it ignores rent, wages, marketing, software, card processing fees of 2 to 3%, marketplace commissions of 8 to 15%, freight, returns and shrinkage. Net margin — what actually reaches the bottom line — is usually far lower. Grocery chains run 25% gross and 2% net. A healthy online retailer might hold 45% gross and keep 8% net.
Two more limits worth knowing. First, blended margin across a catalogue is not the average of item margins; it is weighted by units sold, so a high-volume, low-margin item drags the blend down much harder than the arithmetic mean suggests. Second, discounting attacks margin non-linearly: a 20% discount on a 40% margin item leaves 25% margin, meaning you need roughly 60% more unit sales to make the same gross profit. Run the numbers before the promotion, not after.
Sources & further reading
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides the same profit by the cost. Buy at 60 and sell at 100 and your profit is 40: that is a 40% margin but a 66.7% markup. Markup is always the bigger number, because the cost it divides by is smaller than the price.
What is a good profit margin?
It depends entirely on the industry. Grocery and fuel retail live on gross margins of 10-25% and net margins near 2%, general retail typically targets 40-50% gross, restaurants aim for 65-70% gross on food, and software sits at 75-85%. Compare yourself to your sector rather than to a universal number, then check the net margin that survives after overheads.
Is this gross margin or net margin?
Gross. It only subtracts the direct cost of the item from the price. Net margin also subtracts rent, salaries, marketing, card fees, returns and tax, so it is always lower — a business with a healthy 45% gross margin can easily end up with 5% net. Use gross margin to price individual products and net margin to judge the business.
What is keystone pricing?
Keystone pricing means doubling the wholesale cost: a 100% markup, which is exactly a 50% margin. It was the traditional retail default because the arithmetic is instant. Many retailers now stretch it to 2.2-2.5 times cost to absorb markdowns, returns and shrinkage while still landing near 50% realised margin.