Profit Margin Calculator

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

Result

Selling price

$100.00

Profit per unit
$40.00
Gross margin
40.00%
Markup
66.67%

Charts and breakdown below the calculator.

Understand the result

What the sale price is made of

$100.00Selling price
  • Cost$60.0060%
  • Profit per unit$40.0040%

This profit margin calculator gives you gross margin, markup and profit per unit from your cost and selling price. It also works backwards: enter the cost and the margin you want, and it returns the price to charge. It is built for retailers, resellers, freelancers and anyone pricing a product.

Formula

Profit = Price − Cost. Margin = Profit ÷ Price × 100. Markup = Profit ÷ Cost × 100. Price for a target margin m = Cost ÷ (1 − m/100).

How it works

Margin and markup use the same profit but different bases: margin divides it by the selling price, markup by the cost. In "cost and selling price" mode the calculator returns both. In "cost and desired margin" mode it works backwards and gives the price that delivers that margin, which is always higher than adding the same percentage to the cost.

How to calculate profit margin step by step

1) Profit = selling price minus cost. 2) Margin = profit ÷ selling price × 100. 3) Markup = profit ÷ cost × 100. Margin and markup always use the same profit, only the denominator changes, so markup is always the larger number.

To price for a target margin, divide the cost by (1 minus the margin). For a 40% margin on a $60 cost: $60 ÷ 0.60 = $100. Adding 40% to the cost would give only $84, which is a 28.6% margin, a classic pricing mistake.

Worked example: cost $60, price $100

You buy a product for $60 and sell it for $100. Profit is $40. Margin is 40 ÷ 100 = 40%. Markup is 40 ÷ 60 = 66.67%. These are the default values in the calculator.

Switch the mode to "Cost and desired margin", keep the $60 cost and enter 40%: the calculator returns a $100 selling price, the same result in reverse.

Margin to markup conversion table

Markup = margin ÷ (1 minus margin), and margin = markup ÷ (1 + markup). Common pairs: 20% margin = 25% markup; 25% margin = 33.3% markup; 33.3% margin = 50% markup; 40% margin = 66.7% markup; 50% margin = 100% markup; 60% margin = 150% markup.

A margin can never reach 100% (that would mean zero cost), while markup has no upper limit. This calculator measures gross margin on direct cost; net margin also subtracts overhead, taxes and interest, so it is always lower. To see how many units you need to sell to cover overhead, use the break-even calculator.

Common mistakes and tips

The most common mistake is quoting markup as margin, or adding a target margin percentage to cost. Another is leaving out costs that belong in the unit cost: shipping, payment processing fees (often around 3% for cards), marketplace fees and packaging.

Discounts eat margin quickly: on a 40% margin, a 20% discount leaves only a 25% margin. Check promotions with the discount calculator, and use the ROI calculator when you are judging an investment rather than a product price.

Frequently Asked Questions

What is the difference between margin and markup?
Margin is profit as a share of the selling price; markup is profit as a share of the cost. A product that costs $60 and sells for $100 has a 40% margin and a 66.67% markup.
What is a good profit margin?
It varies by industry. Grocery retail often runs on low single-digit net margins, while software and services can exceed 20%. Compare your gross margin with businesses like yours rather than with a universal number.
How do I calculate the selling price from cost and margin?
Price = cost ÷ (1 minus margin). For a $600 cost and a 30% margin, the price is $600 ÷ 0.70 = $857.14.
Is a 50% markup a 50% margin?
No. A 50% markup is a 33.3% margin. A $100 cost marked up 50% sells for $150, and the $50 profit is one third of the price.
What is the difference between gross and net profit margin?
Gross margin only subtracts the direct cost of the product. Net margin subtracts every expense, including rent, salaries, marketing and taxes, so it shows what the business really keeps.