Skip to main content

Pricing & profitability

Profit Margin Calculator

Calculate profit margin, a selling price for a target margin, or allowable cost. Compare margin and markup, including losses and zero-cost cases.

Formula version
1.0.0
Reviewed
Updated

Calculator

Changing currency resets inputs. No exchange conversion is performed.

Inputs

Enable JavaScript to calculate. The explanation remains available below.

Results

Enter inputs, then calculate.

How to use

  1. Choose margin, selling price or allowable cost, depending on which value is unknown.
  2. Enter the two known values using the same currency and matching unit or accounting period. Enter 30 for a 30% target margin.
  3. Include each applicable cost once, then select Calculate. Review profit or loss and distinguish margin on revenue from markup on cost.

Formula

M = (R − C)/R × 100; R = C/(1 − M/100); C = R × (1 − M/100)

Revenue is the denominator for margin; cost is the denominator for markup. Zero cost makes markup undefined.

Examples

A 30% margin

Inputs
Revenue 10,000; total applicable cost 7,000.
Result
Profit 3,000; margin 30%; markup approximately 42.86%.

Price for a target margin

Inputs
Selling price mode; cost 80; target margin 20%.
Result
Selling price 100; profit 20; markup 25%.

Divide cost by 0.8. Adding a 20% markup to cost would instead produce price 96 and margin approximately 16.67%.

Find allowable cost

Inputs
Allowable cost mode; revenue 100; target margin -25%.
Result
Allowable cost 125; loss 25; markup -20%.

Limitations

  • The meaning of profit depends on which costs you include. This calculator does not automatically deduct business-wide expenses, interest or taxes.
  • Revenue must be positive and applicable cost cannot be negative. Zero cost gives a 100% margin but leaves markup undefined; an undefined markup is not 0%.
  • Negative margins are valid. Deriving selling price from positive cost requires a margin below 100%; 100% allowable margin means zero allowable cost.
  • Keep all entered amounts on one basis. Changing currency resets the inputs; it does not perform exchange-rate conversion. A displayed currency amount may be rounded, so recheck the margin if you use that rounded amount as a charged price.

Frequently asked questions

How is margin different from markup?

Margin divides profit by selling price or revenue. Markup divides profit by cost, so the percentages generally differ.

Does this calculate period-wide net profit?

Only if the cost you enter includes every expense you intend to deduct. Use the separate Net Profit Margin worksheet when you need itemized period revenue and expense categories.

Sources