Profit Margin Calculator

The profit margin calculator gives your gross margin, markup and profit per unit from the cost and selling price — and works backwards to the price you need for a target margin or markup. It also shows how margin and markup convert, which is where most pricing mistakes happen. Everything is calculated in your browser.

Margin vs markup

MarkupMargin
25%20%
33.3%25%
50%33.3%
100%50%
200%66.7%

When to use it

  1. Price a product for a 40% margin.
  2. Check the margin on a supplier's quoted cost.
  3. Convert a markup policy into a margin target.
  4. Spot products that are sold at a loss.

How to Use

  1. Enter the cost and selling price.
  2. Read the margin, markup and profit.
  3. Enter a target margin or markup to get the price.

Features

  1. Gross margin and markup
  2. Profit per unit
  3. Price from target margin
  4. Price from target markup
  5. Margin ↔ markup conversion
  6. 100% client-side

FAQs

How do I calculate profit margin?

Subtract the cost from the price, then divide by the price. A 60 cost and 100 price is a 40% margin.

What's the difference between margin and markup?

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

How do I price for a target margin?

Divide the cost by (1 − margin). For a 35% margin on a cost of 60, the price is about 92.31.

Is a 100% margin possible?

No — that would mean the item cost nothing. Markup can exceed 100%, margin can't.

Is anything saved?

No. It runs in your browser.

Technical Details

Profit per unit is selling price minus cost. Gross margin is that profit as a share of the selling price, and markup is the same profit as a share of the cost, so the two always differ: margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin). A 50% markup is a 33.3% margin, and a 50% margin needs a 100% markup. To hit a target margin the price is cost ÷ (1 − margin); for a target markup it's cost × (1 + markup). A margin of 100% or more is impossible because the cost would have to be zero, so it's shown as undefined. Negative profit is highlighted.

From the Blog

  • Percentage Calculator — Free & Accurate

Finance & Tax Tools

Finance & Tax Tools

  • ROI Calculator
  • Dividend Yield Calculator
  • Inflation Calculator
  • NPV & IRR Calculator
  • Credit Card Payoff Calculator
  • Home Loan EMI & Prepayment
  • Term Insurance Calculator
  • Zakat Calculator