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

Your profit per unit
–
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 = (Sell − Cost) ÷ Sell × 100   •   Markup = (Sell − Cost) ÷ Cost × 100

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:

StepCalculationResult
1. Profit100 − 80$20
2. Margin20 ÷ 100 × 10020%
3. Markup20 ÷ 80 × 10025%
4. Check: margin → markup0.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 marginWrong: add as markupRight: required markupCorrect 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?
Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost price. On an $80 cost sold for $100, the margin is 20% (20/100) but the markup is 25% (20/80). Markup is always the higher number.
How do I calculate profit margin?
Subtract cost price from selling price, divide by the selling price, and multiply by 100. For example, (100 − 80) ÷ 100 × 100 = 20% margin.
How do I calculate markup?
Subtract cost price from selling price, divide by the cost price, and multiply by 100. For example, (100 − 80) ÷ 80 × 100 = 25% markup.
Can profit margin be more than 100%?
No. Margin is profit divided by selling price, so it can never exceed 100% (that would mean the cost was negative). Markup, however, can exceed 100% — selling at triple the cost is a 200% markup.
What is a good profit margin for a small retail business in the US?
It varies widely: grocery and general stores often run 10–20% margins, clothing and electronics 25–40%, and restaurants 60–70% on food cost. Margin must cover rent, salaries and utilities, so compare against your total costs, not other shops' claims.
If I want a 30% margin, what markup should I use?
A 30% margin needs a 42.86% markup. The conversion is markup = margin ÷ (1 − margin), so 0.30 ÷ 0.70 = 0.4286. On a $1,000 cost, that means a selling price of $1,428.57.

Guides for This Tool

Related Tools