Skip to main content
Calculator WorldProFree online calculators

Margin Calculator

Price products to hit a target margin, or check the margin on something you already sell. This avoids the common mistake of adding a margin percentage to cost, which gives a lower margin than intended.

Calculate

Results update automatically as you type.

Result

Price for a 40% margin

$100.00

Profit per unit
$40.00
Equivalent markup
66.67%
Show calculation steps
  1. Price = cost ÷ (1 − margin) = $60.00 ÷ 0.6 = $100.00

A common mistake is to add the margin percentage to cost. That gives markup, which produces a lower margin than intended.

How to use the Margin Calculator

  1. Choose a target-price or margin-check calculation.
  2. Enter the cost per unit.
  3. Enter the margin you want, or the selling price.

Formula

Price = cost ÷ (1 − margin%)
Margin% = (price − cost) ÷ price × 100

Margin is profit as a share of the selling price. Dividing cost by (1 − margin) ensures the profit is the correct share of the final price.

Worked example: Cost $60, target margin 40%

  1. Price = 60 ÷ (1 − 0.40) = 60 ÷ 0.6 = $100
  2. Profit = $40, which is 40% of $100
  3. Equivalent markup = 40 ÷ 60 = 66.7%

Price at $100.00 to earn a 40% margin.

Margins and discounts

Discounts eat into margin quickly: on a 40% margin product, a 20% discount cuts the margin to 25%. Model price cuts with the Discount Calculator, and see the volume needed to cover costs with the Break-even Calculator.

Assumptions & limitations

  • Margins must be below 100%.
  • This is gross margin on direct cost. Overheads aren't included.

Frequently asked questions

Why isn't cost + 40% a 40% margin?

$60 + 40% = $84, and the $24 profit is only 28.6% of $84. Margin is calculated on price, so you divide by (1 − margin) instead.

What's a typical gross margin?

It varies by industry. Grocery often runs at 20–30%, apparel 50–60%, and software can exceed 80%.

How is this different from the Profit Margin Calculator?

This tool works on a single product price. The Profit Margin Calculator analyses whole-business totals, including operating and net margins.