Profit Margin Calculator – Margin vs Markup
Enter cost price and selling price to get your profit, margin and markup instantly. This free profit margin calculator also clears up the margin-vs-markup confusion that trips up even experienced shopkeepers.
Calculate Margin & Markup
| Profit margin | – |
| Markup | – |
How to Use the Profit Margin Calculator
Enter what the item cost you (purchase price, including any delivery or packaging cost per unit if you want a true figure) and what you sell it for. Press Calculate and you get three numbers: profit per unit in dollars, profit margin as a percentage, and markup as a percentage.
If the selling price is below cost, the tool shows a negative profit and labels it a loss — no hiding bad news. If your cost is zero (a free item you resell), the markup is undefined and the tool says so instead of crashing. For a realistic margin, remember to include hidden costs: an $800 item with $50 delivery actually costs $850.
The Formulas
Margin and markup use the same profit but divide it by different bases — and that single difference causes endless confusion:
Margin answers "of every dollar the customer pays me, how much do I keep?" Markup answers "by what percentage did I raise the price above my cost?" Because the selling price is always bigger than the cost, the margin is always the smaller number. Converting between them: markup = margin ÷ (1 − margin), and margin = markup ÷ (1 + markup).
Worked Example
A store owner buys a shirt for $80 and sells it for $100:
| Step | Calculation | Result |
|---|---|---|
| 1. Profit | 100 − 80 | $20 |
| 2. Margin | 20 ÷ 100 × 100 | 20% |
| 3. Markup | 20 ÷ 80 × 100 | 25% |
| 4. Check: margin → markup | 0.20 ÷ (1 − 0.20) | 0.25 = 25% ✓ |
Same $20 profit, two different percentages. The store owner who says "I make 25%" is quoting markup; the one who says "I make 20%" is quoting margin. Both are correct — they just measured differently.
Margin vs Markup: The Store-Owner Example That Ends the Confusion
Here is where store owners lose real money. Suppose you want a 30% margin and you price by adding "30%" to cost: $1,000 cost → $1,300 price. Your actual margin is (1,300 − 1,000) ÷ 1,300 = 23.08% — you are nearly 7 points short of your target, because you applied a markup when you meant a margin.
| You want this margin | Wrong: add as markup | Right: required markup | Correct price on $1,000 cost |
|---|---|---|---|
| 20% | $1,200 (16.7% margin!) | 25% | $1,250 |
| 30% | $1,300 (23.1% margin!) | 42.86% | $1,428.57 |
| 40% | $1,400 (28.6% margin!) | 66.67% | $1,666.67 |
| 50% | $1,500 (33.3% margin!) | 100% | $2,000 |
The pattern: to hit a target margin m, price at cost ÷ (1 − m). For 30%: 1,000 ÷ 0.70 = $1,428.57. Memorize this one formula and you will never underprice again. Also note margin can never exceed 100%, while markup has no ceiling — selling at triple cost is a 200% markup but only a 66.7% margin.
Limitations
This calculator works per unit and ignores everything beyond unit cost and price: rent, salaries, utilities, taxes, wastage, discounts and returns all eat into the real margin. A 30% gross margin can easily become a 5% net margin after expenses — this tool measures the former, not the latter. It also assumes a single cost and price; businesses with volume discounts, variable costs or bundled products need a fuller accounting. Treat the result as a pricing starting point, not a business verdict.
Frequently Asked Questions
What is the difference between profit margin and markup?
How do I calculate profit margin?
How do I calculate markup?
Can profit margin be more than 100%?
What is a good profit margin for a small retail business in the US?
If I want a 30% margin, what markup should I use?
Guides for This Tool
Related Tools
Discount Calculator
Sale prices and total savings from any percent-off deal.
Loan Calculator
Calculate monthly loan payments and total interest with an amortization schedule.
Compound Interest Calculator
See how savings and investments grow with compounding over time.
Percentage Calculator
Percentages, increases, decreases and ratios in a single click.
Client Profitability Tracker
Track client profitability free: log revenue and hours per client, see true effective hourly rate ranked best to worst…
Freelance Contract Generator — Free, Signable PDF
Generate a freelance service agreement or NDA in minutes, then sign it right here. Free PDF download — no Bonsai…