The quick answer
Markup is (price − cost) ÷ cost. A $45 wholesale item marked up 80% sells for $45 × 1.80 = $81.00 — $36 of profit, an 80% markup but only a 44.44% margin. Mind the classic trap: a 50% markup is merely a 33.33% margin. The calculator returns price, profit, margin, and the reverse conversion — live, in your browser.
Markup vs. margin — the pricing error that costs real money
Markup and margin both express profit as a percentage — on different bases. Markup divides profit by cost; margin divides profit by revenue. The numbers are never equal, and mixing them up is the most common pricing error in small business. A crafter who prices at "cost plus 40%" and tells the accountant they run a 40% margin is actually running a 28.57% margin — and wondering why the overhead never gets covered.
| Metric | Formula | Base | $40 profit on $60 cost, $100 price |
|---|---|---|---|
| Markup | (Price − Cost) ÷ Cost × 100 | Cost | 40 ÷ 60 × 100 = 66.67% |
| Gross Margin | (Price − Cost) ÷ Price × 100 | Revenue (price) | 40 ÷ 100 × 100 = 40.00% |
The same $40 of profit reads as 66.67% from the cost side and 40% from the revenue side. Target a "40% profit" but reach for the markup formula and you operate at a 28.57% margin instead — the gap between the number you meant and the number you get is precisely where underpricing lives.
The formulas — all five directions
| Question | Formula |
|---|---|
| Selling price from cost + markup % | Price = Cost × (1 + Markup ÷ 100) |
| Markup % from cost + price | Markup = (Price − Cost) ÷ Cost × 100 |
| Gross profit | Profit = Price − Cost |
| Convert markup → margin | Margin = Markup ÷ (1 + Markup) [both as decimals] |
| Convert margin → markup | Markup = Margin ÷ (1 − Margin) [both as decimals] |
The bidirectional conversion formulas are derived from substitution: if Margin = Profit ÷ Price and Markup = Profit ÷ Cost, then since Price = Cost × (1 + Markup), substituting gives Margin = Markup ÷ (1 + Markup). These are algebraic identities — not approximations.
Four worked markup scenarios
Input
Cost: $45.00 Markup: 80%
Output
Selling price: $81.00 Gross profit: $36.00 Equivalent margin: 44.44%
$45 × (1 + 0.80) = $81.00. Profit = $81 − $45 = $36. Markup = $36 ÷ $45 = 80% (confirms the input). Margin = $36 ÷ $81 = 44.44%. Conversion check: 0.80 ÷ 1.80 = 0.4444 ✓ — the identity Margin = Markup ÷ (1 + Markup) doing its job.
Input
Food cost: $7.50 Target markup: 300%
Output
Menu price: $30.00 Gross profit: $22.50 Equivalent margin: 75.00%
$7.50 × (1 + 3.00) = $7.50 × 4.00 = $30.00. Restaurants typically target 65–75% food cost margin, which corresponds to a 185–300% markup. A 300% markup yields exactly 75% margin: 3.00 ÷ 4.00 = 0.75 = 75% ✓. This is why restaurant pricing is often described in terms of margin rather than markup — the scale of markup percentages can seem alarming without context.
Input
Cost: $128.00 Selling price: $199.99
Output
Markup: 56.24% Gross profit: $71.99 Equivalent margin: 36.00%
Markup = ($199.99 − $128.00) ÷ $128.00 × 100 = $71.99 ÷ $128.00 × 100 = 56.242…% → 56.24%. Margin = $71.99 ÷ $199.99 × 100 = 35.997…% → 36.00%. Conversion check: 0.5624 ÷ 1.5624 = 0.3600 = 36.00% ✓
Input
Wholesale cost: $35.00 Markup: 100% (keystone)
Output
Retail price: $70.00 Gross profit: $35.00 Equivalent margin: 50.00%
$35 × (1 + 1.00) = $70.00. Keystone markup — doubling the cost — always yields exactly 50% gross margin. This is the algebraic identity: Margin = 100% ÷ (1 + 100%) = 100% ÷ 200% = 50.00%. Traditional retail used keystone as a rule of thumb to cover overhead and achieve a minimum viable margin.
Markup-to-margin conversion reference table
Common business markup levels and their equivalent gross margins:
| Markup % | Equivalent Margin % | Typical industry |
|---|---|---|
| 25% | 20.00% | Grocery, fuel retail |
| 50% | 33.33% | Consumer electronics |
| 66.67% | 40.00% | Clothing, general retail |
| 100% | 50.00% | Traditional retail (keystone) |
| 150% | 60.00% | Software, specialty goods |
| 300% | 75.00% | Restaurants, food service |
| 400% | 80.00% | Cosmetics, luxury goods |
Edge cases the calculator handles
| Condition | Result | Explanation |
|---|---|---|
| Cost = 0 | Markup = undefined | Cannot divide profit by zero cost |
| Markup = 0% | Price = Cost, Profit = $0 | Break-even pricing; no markup applied |
| Markup = 100% | Price = 2× Cost, Margin = 50% | Keystone — always gives exactly 50% margin |
| Target margin = 100% | Markup = undefined | Would require infinite price; not achievable |
| Negative markup | Price < Cost | Selling below cost; generates a loss |
Your costs stay in this browser tab
Frequently asked questions
What is the markup formula?
Markup % = (Selling Price − Cost) ÷ Cost × 100. The denominator is COST — this is what distinguishes markup from margin (which uses revenue as the denominator). A $40 profit on a $60 cost is a 66.67% markup.
What is the difference between markup and margin?
Markup divides profit by COST; margin divides profit by REVENUE (selling price). Same profit, different base. A product costing $60 sold for $100 has a $40 profit. Markup = $40 ÷ $60 × 100 = 66.67%. Margin = $40 ÷ $100 × 100 = 40%. Mixing them up systematically underprices products.
How do I convert markup to margin?
Margin = Markup ÷ (1 + Markup). Example: 66.67% markup → 0.6667 ÷ 1.6667 = 0.40 = 40% margin. Or in reverse: Markup = Margin ÷ (1 − Margin). Example: 40% margin → 0.40 ÷ 0.60 = 0.6667 = 66.67% markup.
How do I calculate selling price from cost and markup?
Selling Price = Cost × (1 + Markup ÷ 100). For a $75 cost at 40% markup: $75 × 1.40 = $105.00 selling price.
What is a 'keystone markup'?
Keystone markup is a traditional retail shorthand for a 100% markup — doubling the cost to set the retail price. A product costing $25 would retail at $50 under keystone markup, giving a 50% gross margin.
Does this calculator store my inputs?
No. All calculations run locally in your browser using JavaScript. No number you enter is transmitted to a server or stored. Open DevTools (F12) → Network tab and verify: no outbound requests appear.
If I want a 30% margin, what markup do I need?
Markup = Margin ÷ (1 − Margin) = 0.30 ÷ 0.70 = 0.4286 = 42.86% markup. Verify: $100 cost × 1.4286 = $142.86 price. Margin = $42.86 ÷ $142.86 × 100 = 30% ✓.
What is a typical markup for retail?
Markups vary significantly by industry. Grocery: 10–25%. Consumer electronics: 50–100%. General retail clothing: 50–100%. Cosmetics/beauty: 200–400%. Restaurants: 200–400% on food cost. Software and digital goods: 200–500%+. The appropriate markup depends on overhead, competition, and the margin needed to sustain the business.
How does markup affect break-even point?
Higher markup means more gross profit per unit sold, which reduces the number of units needed to cover fixed costs and break even. If fixed costs are $10,000/month and gross profit per unit is $20 (at 40% markup on a $50 cost), you need 500 units/month to break even.
Is markup always expressed as a percentage of cost?
By standard accounting and retail convention, yes. Markup is always calculated on cost. Dollar markup (also called 'gross profit dollars') is the absolute difference: Price − Cost. Both are useful but markup percentage always uses cost as the base.
Calculators that pair well with markup work
- Profit Margin Calculator — Calculate gross margin %, net margin, and target price from revenue and cost.
- Discount Calculator — Apply a percentage reduction to a price and find savings and final price.
- Break-Even Calculator — Find the sales volume needed to cover fixed and variable costs at a given price.
- Percentage Calculator — Core percentage math covering all five question types.
Sources and further reading
Markup = (Price − Cost) ÷ Cost × 100 — four scenarios verified by hand, a two-way conversion table, and ten edge cases documented. Nothing uploads while you work. The references below go deeper on retail pricing conventions.
Sources and further reading
- FASB ASC 606 — Revenue from Contracts with Customers(fasb.org)
- Corporate Finance Institute — Markup Definition and Formula(corporatefinanceinstitute.com)
- Investopedia — Markup Definition(investopedia.com)
- National Restaurant Association — Food Cost Guidelines(restaurant.org)
- IEEE 754-2019 — Standard for Floating-Point Arithmetic(standards.ieee.org)
We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.