Skip to content

Profit Margin Calculator

Work out gross profit margin from cost and price — or the price you need to hit a target margin.

  • Free, no sign-up
  • Runs in your browser
  • Reviewed Nov 6, 2026

How to use the Profit Margin Calculator

  1. Choose whether you want the margin from a known price, or the price for a target margin.
  2. Enter your unit cost (what the product or service costs you).
  3. Enter the selling price, or the margin percentage you want to achieve.
  4. Read the margin, profit and equivalent markup instantly. Copy the results if you need them.

How it works

Gross margin = (Price − Cost) ÷ Price × 100.

Price for a target margin = Cost ÷ (1 − Margin ÷ 100).

Markup is shown alongside: (Price − Cost) ÷ Cost × 100. Margin is measured against the selling price, markup against the cost — which is why a 50% markup is only a 33.3% margin.

Worked examples

Retail product

A mug costs 6 to make and sells for 15. Profit is 9, margin is 9 ÷ 15 = 60%, markup is 9 ÷ 6 = 150%.

Pricing for 40% margin

A service costs 300 to deliver. To earn a 40% margin, charge 300 ÷ 0.60 = 500.

Limitations and assumptions

  • This is gross margin per unit. It ignores overheads like rent and salaries — use the break-even calculator for those.
  • A margin of 100% or more is impossible unless cost is zero, so targets must be below 100%.

Frequently asked questions

What is a good profit margin?

It depends heavily on the industry. Grocery retail often runs on low single-digit net margins while software can exceed 70% gross margin. Compare against businesses like yours rather than a universal number.

Is margin the same as markup?

No. Margin divides profit by the selling price; markup divides profit by the cost. The same sale always has a higher markup percentage than margin percentage.

G

Built and reviewed by Guru G

Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.