Markup Calculator
Solve cost, price, markup and margin from any two values, with promo and bulk checks.
Triangle
Cost + Markup (% on cost) · solvedMarkup is a percentage of cost; margin is a percentage of the selling price. Two values are editable; clicking a derived value swaps it in.
Results
$ · per unitSelling price per unit
$60.00
Cost
$40.00
Profit per unit
$20.00
Markup on cost
50.00%
Margin of price
33.33%
Formulas
Price = cost × (1 + markup) = $40.00 × (1 + 50.00%) = $60.00
Markup = (price − cost) ÷ cost = ($60.00 − $40.00) ÷ $40.00 = 50.00%
Margin = (price − cost) ÷ price = ($60.00 − $40.00) ÷ $60.00 = 33.33%
Profit per unit = price − cost = $60.00 − $40.00 = $20.00
Markup to margin conversion
| Markup on cost | Margin of price |
|---|---|
| 4.76% | |
| 9.09% | |
| 13.04% | |
| 16.67% | |
| 20.00% | |
| 23.08% | |
| 25.93% | |
| 28.57% | |
| 31.03% | |
| 33.33% | |
| 35.48% | |
| 37.50% | |
| 39.39% | |
| 41.18% | |
| 42.86% | |
| 44.44% | |
| 45.95% | |
| 47.37% | |
| 48.72% | |
| 50.00% |
Bulk totals for 1 unit
Examples
The 50% markup trap
cost $40 · markup 50%price $60.00 · profit $20.00 · markup 50.00% · margin 33.33%A 50% markup is not a 50% margin: the margin divides the same $20 profit by the $60 price.
Price for a target margin
cost $40 · target margin 40%price $66.67 (exact 200/3) · markup 66.67%Dividing cost by (1 − 0.40) gives the exact price; display rounds it to cents.
Promo that stays profitable
price $66.67 (exact 200/3) · cost $40 · promo 20%promo price $53.33 · promo margin 25.00% · break-even 40.00%A 20% discount is below the 40% break-even point, so the promotion keeps a quarter margin.
About this tool
Markup and margin describe the same profit from opposite sides of the transaction. Markup is profit divided by cost, while margin is profit divided by the selling price. A $40 item sold for $60 earns $20: that is a 50% markup on cost, but only a 33.33% margin of price. Confusing the two is one of the most common pricing errors, so this calculator always shows both and writes out the formula that produced each number.
Enter any two of cost, selling price, markup percentage and margin percentage — cost plus markup, cost plus a target margin, cost plus price, price plus markup, or price plus margin — and the other two are solved from exact algebra. The fields you are editing are marked editable; the derived fields are marked derived and can be clicked to swap them into the active pair. A margin of 100% is rejected because it would require an infinite price, and cost and price must be positive.
Below the result you get the full markup-to-margin conversion table from 5% to 100%, with the current row highlighted and each row clickable to apply that markup to your retained cost (or its matching margin when only a price is known). Bulk mode extends the per-unit figures by a quantity. Promo mode applies a discount to the computed price and shows the new margin together with the break-even discount — the point at which the promotion starts selling below cost.
Money is held in integer cents and percentages stay exact until display, so a price of 200/3 (displayed as $66.67) still yields an exact 25% promo margin after a 20% discount. Currency symbols are cosmetic: the tool formats numbers, it does not convert currencies, add tax, or model VAT chains. Every calculation runs locally in your browser tab.
What this tool does not do
- Covers the cost / price / markup / margin triangle only — generic percentage arithmetic, VAT chains and taxes are out of scope.
- Currency symbols change the display only; there is no exchange-rate conversion and no locale-specific symbol placement.
- Bulk totals multiply the rounded per-unit cents by quantity; volume discounts and tiered pricing are not modeled.
How to use this tool
Enter two values
Fill any two of cost, selling price, markup on cost and margin of price. The other two are derived live and labelled as derived.
Swap a derived field
Click a derived field to make it editable. The oldest member of the pair drops out, so exactly two values stay editable and there is always a cost or price anchor.
Use the conversion table or add a promo
Click a table row to apply its markup (or matching margin) to your anchor. Enter a promo discount to see the discounted price, its margin and the break-even discount.
Check bulk totals and copy
Set a quantity for extended cost, price and profit, then copy the summary with the panel copy button or Mod+Shift+Enter.
Use cases
Pricing freelance work
Start with your costs and a target margin to quote a price that leaves the profit you actually want, then check how a client discount changes it.
Retail and marketplace listing
Convert a supplier's markup into the margin you will actually keep, and compare promo prices against the break-even discount before launching a sale.
Bulk quotes
Set a quantity to extend cost, price and profit for a quote while keeping the per-unit economics visible in the same view.
Editable pairs and the identities used
| Pair you enter | What the calculator solves |
|---|---|
| Cost + price | Markup = (price − cost) ÷ cost; margin = (price − cost) ÷ price |
| Cost + markup | Price = cost × (1 + markup) |
| Cost + margin | Price = cost ÷ (1 − margin) |
| Price + markup | Cost = price ÷ (1 + markup) |
| Price + margin | Cost = price × (1 − margin) |
| Markup ↔ margin | Markup = margin ÷ (1 − margin); margin = markup ÷ (1 + markup) |
| Promo | New price = price × (1 − discount); break-even discount = current margin |
Percentages in these identities are fractions: 50% means 0.5. Cost and price must be positive; margin must be below 100% and markup above −100%.
Common mistakes
Mistake:Treating a 50% markup as a 50% margin.
Fix:Markup divides profit by cost; margin divides profit by price. The conversion table shows that 50% markup is 33.33% margin, and 50% margin needs a 100% markup.
Mistake:Applying a promo larger than the margin.
Fix:The break-even discount equals the current margin. Any discount above it sells below cost; the calculator flags this in amber and shows the negative promo margin.
Mistake:Rounding the price before doing the promo math.
Fix:This tool keeps the derived price exact until display, so repeating values such as $66.67 do not drift. Downloaded and copied summaries use the same rounded cents shown on screen.
Frequently asked questions
What is the difference between markup and margin?
Both describe profit, but they divide by different bases. Markup is (selling price − cost) ÷ cost, so a $40 item sold for $60 has a 50% markup. Margin is (selling price − cost) ÷ selling price, so the same sale has a 33.33% margin. Markup answers 'how much above cost did I add?'; margin answers 'what share of the price is profit?'.
How do I convert markup to margin?
Divide the markup fraction by one plus itself: margin = markup ÷ (1 + markup). With percentages, a 50% markup becomes 0.5 ÷ 1.5 = 33.33% margin. Going the other way, markup = margin ÷ (1 − margin), so a 40% margin needs a 66.67% markup. The calculator's conversion table lists these pairs from 5% to 100% markup.
How do I price for a target margin?
Divide cost by (1 − margin as a fraction). If cost is $40 and you want a 40% margin, the price is $40 ÷ 0.6 = $66.67 (exactly 200/3 before rounding). Enter cost and target margin in the calculator and it solves the price and the implied markup for you.
Is markup calculated on cost or on price?
Markup is on cost by convention: it is the amount added to cost, expressed as a percentage of cost. The percentage of the selling price is called margin. Some industries use 'markup' loosely for either, so the calculator labels both explicitly and always shows both values — you can check them against your own definitions.
What is the break-even discount?
It is the largest discount you can offer before the promo price falls below cost, and it equals your current margin. A 40% margin gives a 40% break-even discount: a 20% promotion leaves a 25% margin, while a 50% promotion sells at a loss. Enter a promo discount to see the new price, new margin and a warning when you pass break-even.
What margin should I aim for?
There is no universal target: it depends on your overhead, labour, risk and market. Many small retail and service businesses look for gross margins in the 30–60% range, but the right figure is the one that covers all costs and leaves the profit you need. Use the cost-plus-margin case to work backwards from a target instead of guessing a markup.
References & standards
Related tools
APR Calculator
Reveal the true APR of a loan from its amount, itemized fees, nominal rate and term — compare two offers side by side and see break-even fees.
Auto Loan Calculator
Calculate the monthly car payment, total interest and full payoff schedule from price, down payment, trade-in and dealer fees — with term comparison and extra-payment savings.
Bill Tracker
Track subscriptions, memberships and recurring bills on a private paid/skipped calendar.
Break-Even Calculator
Find your break-even point in units and revenue, with an interactive cost/revenue chart, target-profit scenarios and margin of safety.
CAGR Calculator
Compound annual growth rate from two values over any period, with a year-by-year growth table.
Capital Gains Tax Calculator
Estimate US federal capital gains tax on investment sales: short vs long term, 0/15/20% brackets, and the 3.8% NIIT check.