💹 Profit Margin Calculator
A profit margin calculator for gross margin, markup, net profit and breakeven — plus the price that hits a target margin, which is not a markup.
📊 Financial & Breakeven Breakdown
What Profit Margin Calculator Does
Margin and markup describe the same profit and almost never produce the same number, because they divide by different things. Margin divides profit by the selling price; markup divides it by the cost. Buy something for $40 and sell it for $75 and you have made $35 either way — but that is a 46.7% margin and an 87.5% markup.
Mixing them up is the most expensive arithmetic error in small-business pricing, and it always errs in the same direction. Told to hit a 50% margin, a lot of people mark the cost up by 50%: a $40 item becomes $60, and the margin turns out to be 33.3%. To actually reach 50% you have to double the cost. The higher the target, the worse the gap — a 75% margin needs a 300% markup.
The second thing worth separating is gross from net. Gross margin counts only what the goods cost you. Net margin also carries rent, wages, software and everything else that gets paid whether or not you sell anything. A business can have a comfortable gross margin and still lose money, which is why the breakeven volume — how many units it takes before the overheads are covered — is often the more useful number.
This calculator shows all of those at once, and works backwards as well: give it a target margin and it returns the price you would need to charge, alongside what marking up by that same percentage would actually have given you.
How to Use Profit Margin Calculator
- Enter what the item costs you and what you sell it for
- Read the gross margin and the markup side by side — they are different numbers for the same profit
- Set a target margin to see the price you would need to charge, and what marking up by that percentage would actually give you
- Add units and fixed overheads for net profit and the breakeven volume
Formula Used by Profit Margin Calculator
Margin and markup — same profit, different base
margin % = (price − cost) ÷ price × 100 · markup % = (price − cost) ÷ cost × 100
- Margin
- Profit as a share of what the customer paid. Capped at 100%
- Markup
- Profit as a share of what you paid. Has no upper limit
Worked example
Cost $40, selling price $75
- Profit: 75 − 40 = 35
- Margin: 35 ÷ 75 = 46.7%
- Markup: 35 ÷ 40 = 87.5%
Result: One $35 profit, two correct percentages that differ by more than 40 points
Pricing from a target margin
price = cost ÷ (1 − margin ÷ 100)
- Divide
- The margin is a share of the price, which is the unknown — so it cannot be a multiplication
- The trap
- Multiplying the cost by (1 + margin) gives a markup, not a margin
Worked example
A 50% target margin on a $40 cost
- Correct: 40 ÷ (1 − 0.50) = 80
- The common error: 40 × 1.50 = 60
- Margin on $60: (60 − 40) ÷ 60 = 33.3%
Result: $80 is right. The shortcut leaves you 16.7 points short of target
Converting between the two
markup = margin ÷ (100 − margin) × 100 · margin = markup ÷ (100 + markup) × 100
- Always
- Markup is larger than margin for any profitable price
Worked example
Working out the markup for a 30% margin
- 30 ÷ (100 − 30)
- 30 ÷ 70 = 0.4286
Result: 42.9% markup — noticeably more than the 30% people expect
Net profit and breakeven
net = (price − cost) × units − fixed costs · breakeven units = fixed ÷ (price − cost)
- Contribution
- price − cost, the amount each unit puts toward the overheads
- Breakeven
- Where the overheads are exactly covered and profit turns positive
Worked example
Cost $40, price $75, 100 units, $500 of fixed costs
- Contribution: $35 per unit
- Breakeven: 500 ÷ 35 = 14.3, so 15 units
- Net: 35 × 100 − 500 = 3,000
Result: $3,000 net on $7,500 of revenue — a 40% net margin
Margin against markup, side by side
Same profit, two bases. Note how the two diverge as profitability rises — at low margins they are close, at high margins markup runs away.
| Cost | Price | Profit | Margin | Markup |
|---|---|---|---|---|
| $90 | $100 | $10 | 10.0% | 11.1% |
| $80 | $100 | $20 | 20.0% | 25.0% |
| $75 | $100 | $25 | 25.0% | 33.3% |
| $60 | $100 | $40 | 40.0% | 66.7% |
| $50 | $100 | $50 | 50.0% | 100.0% |
| $40 | $75 | $35 | 46.7% | 87.5% |
| $25 | $100 | $75 | 75.0% | 300.0% |
The markup you need for the margin you want
Use this before setting a price. Applying the margin figure as a markup is the standard mistake and always lands you short.
| Target margin | Required markup | Price on a $40 cost | Price if you mark up by the margin figure instead |
|---|---|---|---|
| 10% | 11.1% | $44.44 | $44.00 |
| 20% | 25.0% | $50.00 | $48.00 |
| 25% | 33.3% | $53.33 | $50.00 |
| 30% | 42.9% | $57.14 | $52.00 |
| 40% | 66.7% | $66.67 | $56.00 |
| 50% | 100.0% | $80.00 | $60.00 |
| 60% | 150.0% | $100.00 | $64.00 |
| 75% | 300.0% | $160.00 | $70.00 |
Gross, net and breakeven on one product
Cost $40, price $75, $500 of fixed overheads. Gross margin never changes with volume; net margin does, because the overheads are spread over more units.
| Units sold | Revenue | Gross profit | Net profit | Net margin |
|---|---|---|---|---|
| 10 | $750 | $350 | −$150 | Loss |
| 15 (breakeven) | $1,125 | $525 | $25 | 2.2% |
| 25 | $1,875 | $875 | $375 | 20.0% |
| 50 | $3,750 | $1,750 | $1,250 | 33.3% |
| 100 | $7,500 | $3,500 | $3,000 | 40.0% |
| 200 | $15,000 | $7,000 | $6,500 | 43.3% |
How to Read Your Result
Margin is capped, markup is not
This is the quickest way to keep the two straight. Margin is a share of the selling price, so it can approach 100% but never reach it — you would have to sell at a price where the cost is zero. Markup is a share of the cost and has no ceiling at all: a $25 item sold for $100 carries a 300% markup and a 75% margin. If someone quotes you a percentage above 100, they are talking about markup whether they know it or not.
Pricing from a target margin is a division
The margin is defined as a fraction of the price, and the price is the thing you are solving for, so it cannot be reached by multiplying the cost. Dividing by (1 − margin) is the correct move and it produces a bigger number than most people expect. On a $40 cost, a 50% margin means an $80 price, not $60. Retailers who set prices by "adding our margin" to cost are systematically underpricing, and the shortfall compounds across an entire catalogue.
Discounting eats margin far faster than price
A 10% discount does not cost you 10% of your profit — it costs 10% of your revenue, all of which comes out of the margin. On a $75 item costing $40, a 10% discount takes $7.50 off the price and drops the profit from $35 to $27.50, a 21% cut in profit. At thinner margins it is brutal: on a 20% margin, a 10% discount halves the profit. This is why a discount calculator and a margin calculator belong next to each other.
Gross margin is a product question, net margin is a business question
Gross margin tells you whether the product itself makes sense — whether what you charge meaningfully exceeds what it costs to provide. Net margin tells you whether the business does, once rent and wages and software are paid. They can point in opposite directions: a strong gross margin on low volume still loses money, and a thin gross margin at high volume can be very profitable, which is exactly the grocery model. Use gross to decide what to sell and at what price, and net to decide whether the whole operation works.
Breakeven is the number to know before you commit
Dividing fixed costs by the contribution per unit tells you how many you must sell before the overheads are covered. It is the most decision-relevant figure here because it converts an abstract margin into a concrete target: fifteen units, not "a good margin". It also makes the effect of pricing obvious — raising the price lifts the contribution and pulls breakeven closer, while a discount pushes it further away, often by more units than the discount seems to warrant.
"Good margin" is not a number you can borrow
Benchmarks travel badly. Supermarkets operate on low single-digit net margins and are not in trouble; a software business at the same figure would be. Margins reflect the cost structure of an industry — how much capital is tied up, how much of the cost is fixed against variable, how much competition there is. Compare against your own sector and against your own previous periods. A margin that is improving is more informative than a margin that matches somebody else's average.
Limitations & Accuracy Notes
- Cost is treated as a single figure per unit. Real cost of goods often includes freight, duty, payment processing and returns, all of which reduce the true margin if they are left out.
- Fixed costs are assumed genuinely fixed over the volume range. In practice they step up — another shift, a bigger unit, a higher software tier — so breakeven can move as you scale.
- Only one product is modeled. A business selling several products at different margins needs a weighted blended margin, which is not the same as averaging the percentages.
- Taxes are excluded. Sales tax is collected on behalf of the authority and is not revenue, and income or corporation tax applies after the net profit shown here.
- Nothing here is accounting advice, and these definitions are the common commercial ones rather than a specific accounting standard. Your accountant may define cost of goods sold differently for reporting purposes.
Frequently Asked Questions
What is the difference between margin and markup?
How do I price for a target margin?
What markup gives a 30% margin?
What is the difference between gross and net margin?
How many units do I need to sell to break even?
What is a good profit margin?
References & Further Reading
- US Small Business Administration — Calculate your startup costs — US government guidance on separating fixed from variable costs, which is the distinction behind the gross/net and breakeven figures here
- Internal Revenue Service — Publication 334, Tax Guide for Small Business — The US definition of cost of goods sold and gross profit for tax reporting, which can differ from the commercial usage on this page
- Omni Calculator — Margin Calculator — The clearest competing treatment of the margin formula and its relationship to markup