Profit Margin Calculator

Enter your revenue (selling price) and cost to get the gross profit, the profit margin as a percentage of revenue, and the equivalent markup over cost. See exactly how margin and markup differ.

$
$
Enter revenue and cost, then press Calculate margin.

The profit margin formula

Gross profit is revenue minus cost, and the margin expresses that profit as a percentage of revenue:

profit = revenue cost margin% = profit ÷ revenue × 100

Because margin is divided by revenue (the larger number), it can never exceed 100%.

Worked example

Sell for $200, cost $120:

Profit: 200 − 120 = $80.
Margin: 80 ÷ 200 × 100 = 40%.
Markup: 80 ÷ 120 × 100 ≈ 66.7%.

Margin vs markup — the key difference

They use the same profit but a different denominator. Margin divides profit by the selling price; markup divides it by the cost. Markup is always the larger number for the same sale. Confusing the two is a classic pricing mistake — a "50% markup" is only a 33% margin.

MarkupEquivalent margin
25%20%
50%33.3%
100%50%
200%66.7%
Tip: set prices from the margin you need to cover overhead and profit, not from a markup rule of thumb. To go the other way — cost plus a target markup — use the Markup Calculator.

Frequently asked questions

How do I calculate profit margin?

Subtract cost from revenue to get the gross profit, then divide that profit by revenue and multiply by 100. A $200 sale costing $120 has an $80 profit and a 40% margin.

What is the difference between margin and markup?

Both use the same profit, but margin divides it by the selling price while markup divides it by the cost. For the same sale, markup is always the bigger percentage — a 50% markup equals a 33% margin.

Can profit margin be over 100%?

No. Because margin is profit as a share of revenue, it approaches but never reaches 100% (that would mean zero cost). Markup, divided by cost, can exceed 100%.

Is this gross or net margin?

This is gross margin — revenue minus the direct cost of the item. Net margin also subtracts operating expenses, taxes and interest, so it's lower. Enter your fully-loaded cost for a closer net figure.

MB
Mustafa Bilgic · Editor, Calcool
Gross margin and markup are standard accounting definitions. Net (bottom-line) margin additionally deducts operating costs, interest and taxes. For small-business pricing guidance, see the U.S. Small Business Administration (SBA).

Related calculators