Skip to main content

Profit Margin & Markup Calculator

Work out your profit margin and markup, or the price you need to charge. Enter your cost and selling price to see both percentages, or enter a target margin or markup to get the selling price.

Margin and markup describe the same profit two ways: margin as a share of the price, markup as a share of the cost. Mixing them up is one of the most common pricing mistakes, so the calculator shows both every time.

Calculator

Profit margin

33.33%


Selling price
$60.00
Profit per unit
$20.00
Gross profit margin
33.33%
Markup on cost
50%

Margin is profit as a share of the price; markup is profit as a share of the cost. The same $20.00 is a 33.33% margin but a 50% markup.

Profit marginEquivalent markupPrice on $40.00 cost
10%11.11%$44.44
15%17.65%$47.06
20%25%$50.00
25%33.33%$53.33
30%42.86%$57.14
40%66.67%$66.67
50%100%$80.00
60%150%$100.00

Gross margin only — doesn’t include overhead, shipping, payment processing, or taxes. Margin = (price − cost) ÷ price; markup = (price − cost) ÷ cost.

Was this calculator helpful?

Standards & Sources

Last verified: October 2026

  • Standard accounting definitions

    Gross profit margin and markup on cost as used in retail and small-business pricing.

  • Gross vs. net

    Net margin also subtracts operating expenses; use this as a per-unit pricing tool.

How to Use This Calculator

  1. Choose whether you know the price or want to find it from a target margin or markup.
  2. Enter your cost per unit.
  3. Enter the selling price, or your target margin or markup.
  4. Read the margin, markup, profit per unit, and price.

Frequently Asked Questions

How do you calculate profit margin?

Profit margin = (price − cost) ÷ price × 100. An item that costs $40 and sells for $60 has a $20 profit and a 33.3% margin.

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. The $20 profit on a $40 item sold for $60 is a 33.3% margin but a 50% markup.

How do I price for a target margin?

Divide the cost by (1 − target margin). For a 40% margin on a $40 cost, the price is $40 ÷ 0.60 = $66.67. Adding 40% to cost ($56) would give only a 28.6% margin.

What is a good profit margin?

It varies widely by industry — grocery stores often run single-digit net margins, while software and services can exceed 20%. Gross margin, before overhead, is always higher than net margin.

Guides to go with this calculator

Related calculators

All Everyday Math calculatorsFree everyday money calculators — percentages, discounts, tips, and profit margins, with the formulas shown so you can check the math.