💰

Profit Margin & Markup

Calculate gross profit margin, markup percentage, and selling price from cost and revenue. Includes markup vs margin explainer and industry benchmarks.

$
$
$
%
$
%
Margin vs Markup — what's the difference?
Margin % = Profit ÷ Revenue × 100  |  Markup % = Profit ÷ Cost × 100
Example: Cost $60, Price $100, Profit $40 → Margin = 40%, Markup = 66.7%. Same product, different numbers — because margin uses the larger denominator (revenue).
Results
Gross Profit
Revenue − Cost
Profit Margin
Profit ÷ Revenue × 100
Markup %
Profit ÷ Cost × 100
Cost Ratio
Cost ÷ Revenue × 100
Selling Price
Cost ÷ (1 − Margin%)
Gross Profit
Price − Cost
Markup %
Profit ÷ Cost × 100
Cost Ratio
Cost ÷ Price × 100
Selling Price
Cost × (1 + Markup%)
Gross Profit
Price − Cost
Profit Margin %
Profit ÷ Price × 100
Cost Ratio
Cost ÷ Price × 100
Industry Gross Margin Benchmarks
SaaS / Software 60 – 80% margin
Services 30 – 60% margin
Retail 20 – 50% margin
Manufacturing 10 – 30% margin
Advertisement
About this profit margin calculator

This free profit margin and markup calculator turns the relationship between cost, selling price, and profit into clear percentages. Enter any two values and it instantly returns your gross profit, profit margin, markup percentage, and cost ratio — or works backwards from a target margin or markup to give you the selling price you should charge.

It is built for anyone who needs to price confidently or check that a sale actually makes money. People use it to:

Everything runs locally and in-browser — your cost and revenue figures never leave your device, nothing is uploaded or stored, and the tool works the same whether you are online or offline.

How to use
  1. Pick a mode: Rev → Margin to analyse an existing price, Cost + Margin% to price from a target margin, or Cost + Markup% to price from a markup.
  2. Enter your cost (COGS) in the cost field — this is the amount you pay to produce or buy the item.
  3. Enter the second value: revenue in mode one, or the target margin/markup percentage in the cost-based modes.
  4. Read the results instantly — profit, margin, markup, selling price, and cost ratio all update in real time with no submit button.
  5. Check the colour-coded margin card (green >20%, amber 10–20%, red <10%) and compare it against the industry benchmarks shown alongside the results.
FAQ

Margin is profit divided by revenue (the selling price), while markup is profit divided by cost. Because cost is always smaller than revenue, the markup percentage is always higher than the margin percentage for the same product. Example: cost $60, price $100, profit $40 gives a 40% margin but a 66.7% markup.

Gross profit margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100. For example, if you sell for $100 and your COGS is $60, the gross profit is $40 and the gross margin is $40 ÷ $100 × 100 = 40%.

To turn markup into margin: margin = markup ÷ (1 + markup), using decimals. To turn margin into markup: markup = margin ÷ (1 − margin). For example, a 50% markup equals 0.5 ÷ 1.5 = 33.3% margin, and a 40% margin equals 0.4 ÷ 0.6 = 66.7% markup.

It depends heavily on your industry. SaaS and software typically achieve 60–80% gross margins, services around 30–60%, retail roughly 20–50%, and manufacturing usually 10–30%. Compare against your own sector rather than a single universal target.

Gross profit margin = (Revenue − COGS) ÷ Revenue × 100 and only accounts for the direct cost of goods. Net profit margin = Net Income ÷ Revenue × 100 and is calculated after all operating expenses, interest, and taxes. This tool calculates gross margin, so subtract your overhead separately to find net.

Divide the cost by (1 − target margin) expressed as a decimal. For a $60 cost and a 40% target margin, the price is $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100. The Cost + Margin% mode does this automatically.

No. Gross margin is profit as a share of revenue, so it can never exceed 100% — that would require a cost below zero. Markup, however, can easily exceed 100% because it is measured against cost; a $20 item sold for $60 has a 200% markup but only a 66.7% margin.