Margin Calculator

The selling price that hits your target profit margin.

What does this calculator do?

Margin measures profit as a share of the selling price. This calculator answers the pricing question “what must I charge so that X% of the price is profit?” — dividing the cost by the remaining share, not just adding a percent.

Formula

If the margin is m% of the price, the cost is the other (100 − m)% — so divide:

selling price = cost ÷ (1 − margin ÷ 100)

How to use it

Enter the unit cost and the margin you want (below 100%). The price and per-unit profit appear instantly.

Worked example

Cost is 60 and you want a 25% margin: 60 ÷ (1 − 0.25) = 60 ÷ 0.75 = 80. Profit is 20, which is 25% of 80.

Formula version1.0.0
Formulaselling price = cost ÷ (1 − margin ÷ 100)
Precision2 decimals

Frequently asked questions

Why divide instead of multiplying by 1.25?

Multiplying by 1.25 applies a 25% markup on cost, giving 75 — but 15 profit on a 75 price is only a 20% margin. Hitting a margin target needs the division.

Can the margin be 100% or more?

No — a 100% margin would mean the product cost nothing. The calculator requires a margin below 100%.

Is this gross or net margin?

Gross, per unit — it ignores overheads, taxes and fees. Add those to the cost if you want the price to cover them too.

Sources

Related calculators

Last updated: 2026-07-29 · v1.0.0 · Report an error