Profit Margin Calculator
Margin, markup and the price a target margin needs.
About
Profit Margin Calculator
Margin and markup describe the same profit and produce different numbers, and confusing them is the most expensive arithmetic error in small business pricing. This calculates both, and works backwards to the price a target margin requires.
Margin and markup
margin = (price - cost) ÷ price × 100
markup = (price - cost) ÷ cost × 100
Margin divides the profit by what the customer pays. Markup divides it by what you paid. Buy at $60, sell at $100:
- Profit: $40
- Margin: $40 ÷ $100 = 40%
- Markup: $40 ÷ $60 = 66.7%
Same $40. Two numbers. Margin is always the smaller of the two, and it can never reach 100% because the profit cannot exceed the price. Markup has no ceiling.
The table worth memorising
| Margin | Markup | Price on a $60 cost |
|---|---|---|
| 10% | 11.1% | $66.67 |
| 20% | 25.0% | $75.00 |
| 25% | 33.3% | $80.00 |
| 30% | 42.9% | $85.71 |
| 40% | 66.7% | $100.00 |
| 50% | 100.0% | $120.00 |
| 60% | 150.0% | $150.00 |
| 70% | 233.3% | $200.00 |
The two track closely at the bottom and separate sharply above 50%, where the markup runs away. Doubling the cost is a 100% markup and a 50% margin, which is the pair most people know and the source of most of the confusion.
The mistake this causes
A shop wants a 50% margin and applies a 50% markup. The item costs $60, so they price it at $90. The actual margin is $30 ÷ $90 = 33.3%, a third short of the target. To reach a 50% margin the price needed to be $120.
On a business turning over $500,000 of goods, that gap is tens of thousands of dollars of profit that never appeared. The error is invisible in the moment because $90 looks like a healthy price and the money only goes missing at the year end.
Pricing to a target margin
price = cost ÷ (1 - margin)
A $60 cost at a 40% target gives $60 ÷ 0.60 = $100. At 25%, $60 ÷ 0.75 = $80. Note the division: multiplying the cost by 1.4 gives $84, which is a 28.6% margin rather than 40%.
The three margins
Gross margin is only the first of three, and a business can look strong at the top and lose money at the bottom.
| Line | Amount | Margin |
|---|---|---|
| Revenue | $500,000 | |
| Cost of goods sold | $300,000 | |
| Gross profit | $200,000 | 40.0% |
| Operating expenses | $140,000 | |
| Operating profit | $60,000 | 12.0% |
| Interest and tax | $18,000 | |
| Net profit | $42,000 | 8.4% |
Gross margin says whether the product itself makes money. Operating margin says whether the business does. Net margin says what the owners actually keep. A 40% gross margin business with heavy overheads can end at 2%, and a 20% gross margin business run lean can end at 12%.
What a discount really costs
Discounts come off the price, but they come out of the profit, and the profit is the smaller number.
| Discount | Price | Profit | New margin | Profit lost |
|---|---|---|---|---|
| 0% | $100 | $40 | 40.0% | - |
| 5% | $95 | $35 | 36.8% | 12.5% |
| 10% | $90 | $30 | 33.3% | 25.0% |
| 20% | $80 | $20 | 25.0% | 50.0% |
A 20% discount on a 40% margin item halves the profit. To make the same money you would need to sell twice as many units, and a 10% discount needs 33% more volume. That is the calculation a sale should be judged on.
Margin on services
Services have a cost too, and it is the loaded cost of the person doing the work rather than their salary alone. An agency billing $95 an hour where the consultant costs $38 an hour fully loaded, counting salary, employer contributions, holiday and a share of the software, runs a 60% margin and a 150% markup.
The number that ruins service margins is unbilled time. A consultant billing 60% of their working hours has an effective cost per billed hour of $38 ÷ 0.6 = $63.33, which cuts the margin to 33.3%. Utilisation is usually a bigger lever on a service business than the rate card is.
The costs that get left out
A margin calculated from the wholesale price alone is optimistic. Add the costs that travel with the sale:
On a $100 sale with a $60 cost, a 2.9% card fee plus 30 cents takes the profit to $36.80 and the margin to 36.8%. Add a 5% return rate, where the returned item cannot be resold, and the effective cost per completed sale rises to $63.16, leaving a margin near 33.8%.
The headline said 40%. The real figure is closer to a third, and on a business doing $500,000 of revenue that difference is $31,000. Card fees, shipping, returns, breakage and warehouse pick costs all belong in the cost side.
Blended margin
A business with a range sells at several margins at once, and the blended figure is weighted by revenue rather than by unit count. If 40% of revenue comes from items at a 55% margin and 60% from items at 25%, the blended margin is (0.4 × 55) + (0.6 × 25) = 37%.
Watching that blend matters as much as watching the individual margins. Growth concentrated in the low-margin half drags the whole business down while revenue rises, which is how a company posts record sales and a smaller profit in the same year.
Contribution margin and gross margin
The two get used interchangeably and are not the same. Gross margin subtracts the cost of goods sold, which under standard accounting includes some fixed production costs such as factory rent. Contribution margin subtracts only genuinely variable costs.
Use gross margin for reporting and comparison against other companies. Use contribution margin for decisions about whether to take one more order, since only the variable costs actually change when you do.
Markup through a supply chain
Each stage between the factory and the shelf applies its own markup to the price it paid, which is why the final price is so far above the manufacturing cost.
| Stage | Pays | Markup | Sells at | Margin |
|---|---|---|---|---|
| Manufacturer | $30 | 50% | $45.00 | 33.3% |
| Distributor | $45.00 | 25% | $56.25 | 20.0% |
| Retailer | $56.25 | 100% | $112.50 | 50.0% |
A $30 item reaches the customer at $112.50, 3.75 times the cost of making it, and no single stage took an outrageous cut. Markups multiply rather than add, so three modest ones compound into a large gap.
This is the arithmetic behind selling direct. Removing one stage does not just save that stage's profit, it removes every downstream markup applied on top of it.
Margin as a diagnostic
A margin that moves is more informative than a margin that is high or low. Gross margin falling while revenue rises usually means the mix shifted toward cheaper items or that discounting has crept in. Gross margin holding while net margin falls points at overheads rather than pricing.
Tracking the figure monthly catches both early. By the time a yearly account shows the drop, three or four quarters of it have already happened, and the discount or the cost increase that caused it is harder to trace back.
Common mistakes
Applying a markup when you meant a margin. The single most costly pricing error there is.
Leaving costs out of cost. Inbound shipping, card fees, returns and breakage belong in the cost of the item. A 40% margin that ignores a 3% card fee and a 5% return rate is not 40%.
Judging a business on gross margin alone. It says nothing about overheads, and net margin is what pays anyone.
Comparing margins across industries. A supermarket at 3% net and a software company at 25% are both normal for what they are.
Common questions
Frequently asked questions
Margin is profit as a share of the selling price; markup is profit as a share of the cost. The same $40 profit on a $60 item sold for $100 is a 40% margin and a 66.7% markup. Margin is always the lower figure and can never reach 100%.
Divide the markup by 100 plus the markup. A 50% markup becomes 50 divided by 150, which is 33.3%. Going the other way, divide the margin by 100 minus the margin: a 40% margin needs a markup of 40 divided by 60, or 66.7%.
It varies so much by industry that the number alone means little. Grocery retail runs on very thin net margins and high volume; software runs on high margins and low volume. The comparison worth making is against similar businesses and against your own figure last year.
No. Profit cannot exceed the selling price, so the ratio caps at 100%, which would mean the item cost nothing. Markup has no such limit and can run to several hundred percent on items with a low cost base.
Divide the cost by 0.5, which doubles it. A $60 cost prices at $120. Applying a 50% markup instead gives $90 and a margin of only 33.3%, which is the classic version of this mistake.
Gross margin subtracts only the direct cost of the goods, so it measures the product. Net margin subtracts everything, including overheads, interest and tax, so it measures the business. A healthy gross margin with a poor net margin points at the overheads.
Divide the original profit per unit by the discounted profit per unit. On a 40% margin item, a 10% discount cuts profit from $40 to $30, so you need $40 divided by $30, or 33% more units, just to make the same money.
No. Sales tax and VAT are collected for the government and are not your revenue, so strip them out before calculating margin. Including them inflates the price side of the ratio and makes the margin look better than it is.