Profit Margin Calculator

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

Example
Profit margin40%
Markup66.67%
Profit$20.00

Fill in what you know. Clear any box to calculate it instead.

$
$
%

How to calculate Profit margin

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

Example

An item that costs $30 and sells for $50 makes $20 profit: a 40% margin and a 66.7% markup.

Margin vs. markup

Margin is profit as a share of the selling price; markup is profit as a share of the cost. The same $20 profit on a $30 item is a 40% margin but a 66.7% markup. Confusing the two is a common pricing mistake. Convert between them with the margin vs. markup converter.

Frequently asked questions

What is a good profit margin?

It depends on the industry. Gross margins around 40–60% are common in ecommerce brands, 70–80%+ in software, and 10–25% in retail or reselling.

Can margin be over 100%?

No. Margin can approach but never reach 100% (that would mean zero cost). Markup has no upper limit.