Everyday Calculator Kit
Seller & business calculators

Profit Margin Calculator — Margin, Markup & Selling Price

Calculate profit margin and markup from cost and price, or find the selling price for a target margin. Includes a price table for 20% to 60% margins and the margin vs markup difference.

Jump to calculator ↓

Enter your details

What this calculator does

Margin and markup use the same profit but different bases: margin divides by the selling price, markup divides by the cost. Mixing them up is one of the most common pricing mistakes.

Formula, assumptions and sources

Gross profit = price − cost. Margin = profit ÷ price × 100. Markup = profit ÷ cost × 100. Price for a target margin = cost ÷ (1 − margin ÷ 100). Excludes tax and selling fees unless included in cost.

Worked example

This example uses the initial values shown in the form. It is illustrative and is not a saved personal result.

Example inputs
Currency
USD
Cost per item
12
Selling price per item
20
Target margin (%) for a suggested price
50
Units sold (optional, for total profit)
0

Example result

Gross profit per item$8
Profit margin40%
Markup66.67%
Price for a 50% margin$24
Target marginPriceMarkup
20%$1525%
30%$17.1442.9%
40%$2066.7%
50%$24100%
60%$30150%
Where the price goes

Cost plus profit equals the selling price.

View chart data
Where the price goes (USD)
ItemValue
Cost12
Profit8

Margin is a share of the selling price; markup is a share of cost.

When to use it

Use this to understand what you really make on each sale. Margin tells you what share of the selling price is profit; markup tells you how much you added on top of cost.

Businesses usually report margin, while many sellers set prices with markup. Knowing both avoids underpricing.

Common uses:

  • Setting retail prices from wholesale cost
  • Checking a supplier's quoted margin
  • Comparing products by profitability

Step by step: Cost $12, price $20

  1. Profit: 20 − 12 = $8.
  2. Margin: 8 ÷ 20 = 40%.
  3. Markup: 8 ÷ 12 = 66.7%.

Answer: $8 profit: a 40% margin, or a 66.7% markup.

Margin and markup equivalents

MarginMarkup
10%11.1%
20%25%
25%33.3%
33.3%50%
40%66.7%
50%100%
60%150%

Markup = margin ÷ (1 − margin).

Common mistakes to avoid

  • Adding a margin percentage to cost (that is markup).
  • Leaving shipping, packaging and fees out of cost.
  • Comparing margins across products with very different volumes.

Frequently asked questions

Is a 50% markup a 50% margin?

No. A 50% markup gives a 33.3% margin. A 50% margin needs a 100% markup.

Should fees be part of cost?

If you sell on a marketplace, add per-sale fees to cost or use the Etsy or marketplace calculators for a full picture.

What is the difference between gross and net margin?

Gross margin uses product cost only. Net margin also subtracts overheads, fees and tax.

Can margin be over 100%?

No. Margin is at most 100%; markup can be any size.