Skip to content

Profit Margin Calculator

Calculate gross profit, profit margin and markup from cost and selling price, or find the selling price for a target margin or markup. Formulas shown.

Calculators Runs client-side Free to use
Jump to the tool
Share: X WhatsApp
Loading Profit Margin Calculator…

About the Profit Margin Calculator

Profit Margin Calculator works out gross profit or loss, profit margin and markup from a cost price and a selling price. It can also work backwards: enter a cost and a target margin or a target markup, and it calculates the selling price you need.

Margin and markup are often confused. Margin is profit as a share of the selling price; markup is profit as a share of the cost. The tool shows both side by side with the formulas and numbers used, so every result can be checked. It is a calculation aid, not pricing or financial advice.

How to use

  1. Choose a mode: margin from cost and selling price, selling price from a target margin, or selling price from a target markup.
  2. Enter the cost price and either the selling price or your target percentage.
  3. Optionally choose a currency symbol for the display.
  4. Click Calculate to see profit, margin, markup, break-even price and the formulas used.
  5. Copy or download the summary, or click Reset to start again.

Key features

  • Gross profit or loss, profit margin %, markup % and break-even selling price.
  • Reverse modes: selling price from target margin and from target markup.
  • Clear explanation of the difference between margin and markup.
  • Formulas shown with your numbers substituted.
  • Validation for negative values, impossible margins (100% or more) and zero prices.
  • Copy Summary and Download Summary.

Best practices

  • Include every per-unit cost you want covered — purchase price, shipping, packaging and fees — in the cost price.
  • Quote margin when comparing with industry figures; quote markup when pricing from cost.
  • Remember that a high markup can still mean a modest margin (50% markup = 33.33% margin).
  • Check prices against competitors and customer expectations, not just your target margin.
  • Treat GST or other sales taxes separately; enter prices before tax for a true margin.

Benefits

  • Stops the common mistake of mixing up margin and markup.
  • Finds the exact price for a target margin in one step.
  • Transparent formulas you can show to a colleague or client.
  • Runs in your browser with no sign-up.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit ÷ selling price; markup is profit ÷ cost. Buying at 800 and selling at 1,000 gives 200 profit: a 20% margin but a 25% markup.

How do I find the selling price for a target margin?

Selling price = Cost ÷ (1 − margin). For a cost of 800 and a 20% margin: 800 ÷ 0.8 = 1,000.

Why can’t I enter a 100% margin?

A 100% margin would mean the cost is zero share of the price, which needs an infinitely high price for any positive cost. Margins must be below 100%.

What is the break-even selling price?

The price at which profit is zero — equal to the cost you entered. If you have other costs, include them in the cost price.

What happens with a cost or selling price of 0?

The calculation still runs, but markup is not defined when cost is 0 and margin is not defined when the selling price is 0; the result says so instead of showing a misleading number.

Is this financial advice?

No. It is a calculator for your own figures. Pricing decisions should also consider demand, competition, taxes and your full costs.