Part of theU-Suite
uinvoices.ai

Profit margin calculator

Built by , founder of U-Suite · Updated Dec 5, 2026

Gross margin

40%

Selling price
$100.00
Cost
$60.00
Gross profit
$40.00
Gross margin
40%
Markup
66.67%

Margin is profit as a share of the selling price. Markup is profit as a share of cost.

How do you calculate profit margin?

Gross profit margin is profit divided by selling price. Subtract cost from price to get profit, then divide by price and multiply by 100. An item that costs $60 and sells for $100 has $40 profit and a 40% margin. To hit a target margin, price = cost ÷ (1 − margin).

How to use it

  1. Choose Margin from price, or Price from margin.
  2. Enter your cost.
  3. Enter the selling price, or the margin you want.
  4. Read profit, margin and the equivalent markup.

The formula

  • Profit = price − cost.
  • Margin % = profit ÷ price × 100.
  • Price for a target margin = cost ÷ (1 − margin).

Worked example

Cost $60, price $100: profit $40, margin 40%, markup 66.67%

Cost $60, target margin 40%: price = 60 ÷ 0.6 = $100

Margin and the markup that gives it
MarginMarkup needed
10%11.11%
20%25%
25%33.33%
30%42.86%
40%66.67%
50%100%

Questions

What's the difference between margin and markup?

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of cost. A 50% markup gives a 33.33% margin.

What is a good profit margin?

It varies by industry. Service businesses often have higher gross margins than retail. Compare yourself with businesses like yours.

Is this gross or net margin?

Gross margin: it uses the direct cost of what you sell. Net margin also subtracts overheads like rent and software.

Can a margin be over 100%?

No. Margin can't reach 100% unless cost is zero. Markup can be any size.