Profit Margin & Markup Calculator

Profit margin is profit as a share of the selling price: margin = (price − cost) ÷ price × 100. Markup is profit as a share of the cost: markup = (price − cost) ÷ cost × 100. A $50 product that costs $20 has a 60% margin and a 150% markup.

Profit margin
60%
Gross profit
$30
Markup
150%

The formula

Margin = (price − cost) ÷ price × 100

How to read the result

  • Margin can never reach 100%; markup can be any size. Don’t mix them up when pricing.
  • For software, cost usually means hosting, payment fees and third-party APIs per sale.
  • Include payment processing fees in cost; they often take 3–5% of small transactions.
  • Your margin sets your break-even ad spend: break-even ROAS = 1 ÷ margin.

Frequently asked questions

What is the difference between margin and markup?

Margin divides profit by price; markup divides profit by cost. Same profit, different base, so markup is always the bigger number.

How do I set a price from a target margin?

Price = cost ÷ (1 − target margin). For a $20 cost and a 60% margin: $20 ÷ 0.4 = $50.

What is a good profit margin?

Software products often run 70–90% gross margins; physical products are usually much lower. Compare against your own costs and goals.

More free tools

See which tweet, post or ad made you money.

WhoPaid links every Stripe or Dodo payment to the source that brought the buyer.