FREE TOOL · NO SIGNUP

Calculate Your Profit Margin& Markup

Enter your cost and selling price (or a markup %) to see gross profit, profit margin %, and markup % — plus the price you'd need to hit any target margin, instantly.

Margin inputs

%
Margin % = (price − cost) ÷ price × 100. Markup % = (price − cost) ÷ cost × 100. Margin is always lower than markup because it is measured against the higher price.
Example — enter your cost and price (or markup %) above to calculate your own margin.
Excellent margin$40 cost$100 price
Gross profit
$60

per unit

Profit margin
60%

of selling price

Markup
150%

over cost

Where the money goes

Cost $40Profit $60 (60%)

Totals across 250 units

Total revenue
$25,000
Total cost
$10,000
Total gross profit
$15,000

Price for a 50% target margin

$80
suggested selling price
$40
profit / unit(100% markup)

To earn a 50% margin on a $40 cost, price the item at $80.

The Complete Guide

Profit Margin vs. Markup: How to Price Every Product Correctly

5 MIN READ

Understand with AI

Discuss with your preferred AI assistant

50%
Margin from a 100% markup

Doubling your cost (a 100% markup) leaves only a 50% margin — the classic margin-vs-markup trap.

2× cost
Price for a 50% margin

To earn a 50% margin you must price at twice your cost: price = cost ÷ (1 − 0.50).

< 100%
Max achievable margin

Margin can approach but never reach 100% while cost is above zero — profit cannot exceed the price.

Profit margin is the single number that tells you whether a sale is actually worth making. Two businesses can sell the same product at the same price and one quietly goes broke while the other thrives — the difference is almost always margin. This guide explains what profit margin is, how it differs from markup, and how to use those numbers to price every product with confidence.

Our free calculator does the arithmetic instantly, but understanding the formulas behind it is what lets you set prices that protect profit instead of guessing.

What Is Profit Margin?

Profit margin is the percentage of your selling price that is left over as profit after you subtract the cost of the item. If you buy a product for $40 and sell it for $100, your gross profit is $60 and your profit margin is 60% — because that $60 profit is 60% of the $100 price.

The core formulas are short and worth memorising:

  • Gross profit = selling price − cost
  • Profit margin % = (selling price − cost) ÷ selling price × 100
  • Markup % = (selling price − cost) ÷ cost × 100

The key thing to notice is the denominator. Margin divides profit by the price; markup divides the same profit by the cost. That single difference is the source of nearly every pricing mistake in retail and e-commerce.

Margin vs. Markup: Why They Are Not the Same

Because price is always higher than cost, your margin percentage is always lower than your markup percentage for the same sale. A 100% markup (doubling your cost) is only a 50% margin. People who confuse the two routinely underprice — they apply a 30% "markup" believing they have a 30% margin, then wonder why the business is barely breaking even.

Here is how common figures translate:

Markup %Equivalent margin %
25%20%
50%33.3%
100%50%
150%60%
233%70%

Whenever someone quotes a percentage, ask which one they mean. Margin is the more meaningful business metric because it tells you what fraction of every dollar of revenue you actually keep.

How to Calculate Profit Margin Step by Step

1. Pin down your true unit cost

Cost is not just the wholesale price. Include shipping in, packaging, payment-processing fees, and any per-unit handling. Leaving these out inflates your margin on paper and erodes it in reality.

2. Subtract cost from price to get gross profit

This is the raw dollars you earn on each unit before overhead. A $100 price on a $40 cost gives $60 of gross profit per unit.

3. Divide by price for margin, by cost for markup

$60 ÷ $100 = 60% margin. The same $60 ÷ $40 = 150% markup. Both describe the same sale from different angles.

4. Scale to your volume

Multiply per-unit profit by units sold to see the total. A healthy-looking margin on a product that sells two units a month may matter far less than a thinner margin on a bestseller.

Working Backwards: Pricing for a Target Margin

Most pricing questions run in reverse: you know your cost and the margin you want, and you need the price. Rearranging the margin formula gives you the answer:

Selling price = cost ÷ (1 − target margin)

To earn a 50% margin on a $40 cost, divide by (1 − 0.50): $40 ÷ 0.5 = $80. For a 40% margin, $40 ÷ 0.6 = $66.67. Notice you can never reach a 100% margin while cost is above zero — the formula divides by zero — which is why our calculator flags any target of 100% or more as impossible.

What Counts as a Good Profit Margin?

There is no universal "good" margin — it depends entirely on the industry. Grocery and high-volume retail run on razor-thin margins of 1–5%, restaurants typically see 5–15%, while software and digital products routinely clear 70–90% because each extra unit costs almost nothing to produce. Compare your margin to peers in your own sector, not to a generic benchmark.

What matters more than the headline number is the trend. A margin that is stable or rising while you grow is a sign of pricing power; one that drifts down as you scale usually means rising costs or discounting that needs attention.

Common Profit Margin Mistakes

  • Confusing markup with margin and underpricing as a result.
  • Forgetting hidden costs like fees, shipping, and returns when calculating unit cost.
  • Chasing revenue over margin — a bigger top line with a shrinking margin can mean less profit, not more.
  • Setting one margin for everything instead of pricing each product to its own cost and demand.

Expert Tips

Always price from margin, not markup

Decide the margin you need to keep, then work backwards to the price with cost ÷ (1 − margin). Pricing from markup quietly underprices you because markup overstates the profit you actually keep.

Load every cost into the unit cost

Include shipping, packaging, payment fees, and returns in your cost before you calculate. A margin built on an incomplete cost looks healthy on paper and disappears at the bank.

Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price, while markup is the same profit as a percentage of the cost. Because price is higher than cost, the margin percentage is always smaller than the markup percentage for the same sale — a 100% markup equals a 50% margin.

How do I calculate profit margin from cost and price?

Subtract the cost from the selling price to get gross profit, then divide that by the selling price and multiply by 100. For a $40 cost and a $100 price: ($100 − $40) ÷ $100 × 100 = 60% margin.

How do I find the price for a target margin?

Divide your cost by (1 minus the target margin written as a decimal). For a 50% margin on a $40 cost: $40 ÷ (1 − 0.50) = $80. A target of 100% or more is mathematically impossible while cost is above zero.

Is a higher profit margin always better?

Not necessarily. A very high margin on a product almost nobody buys generates less total profit than a moderate margin on a bestseller. The goal is the best balance of margin and volume, which is why this calculator also shows your total profit across all units sold.

Related guides

Related tools