Skip to main content

Profit Margin Calculator

Enter what a customer pays and what the item or job costs you, and the calculator returns the profit, the profit margin, and the markup — the two percentages businesses most often confuse. Whether the margin is “gross” or “net” depends on which costs you include in the cost figure; the maths is identical.

All arithmetic is exact to the cent and runs in your browser. Nothing is sent anywhere or stored.

What the customer pays, before tax.

What the item or job costs you in total.

Profit margin

20%

Profit: 50.00 on revenue of 250.00.

Markup

25%

The same profit measured against the cost instead of the price.

How it is worked out

  1. Profit = revenue − cost = 250.00 − 200.00 = 50.00.
  2. Margin = profit ÷ revenue × 100 = 50.00 ÷ 250.00 × 100 = 20%. Margin always uses the selling price as its base.
  3. Markup = profit ÷ cost × 100 = 50.00 ÷ 200.00 × 100 = 25%. Markup always uses the cost as its base, which is why it is larger than the margin on the same sale.

Embed this calculator on your website →

Please note: Estimates for planning only — not financial, tax, or legal advice. Check important figures with a qualified professional. Terms of Service

The formula

profit = revenue − cost

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

  • revenue — what the customer pays, excluding sales tax or VAT.
  • cost — what the item or job costs you; which costs you include decides whether the margin is gross or net.

Worked example: price 250, cost 200 → profit 50. Margin = 50 ÷ 250 × 100 = 20%; markup = 50 ÷ 200 × 100 = 25%. Same sale, two bases — which is why margin can never pass 100% while markup can.

How it works

Margin = profit ÷ revenue × 100. The base is the selling price, so a margin can never exceed 100%: the profit is a slice of the price, and a slice cannot be bigger than the whole.

Markup = profit ÷ cost × 100. The base is the cost, so markup can exceed 100% — and on the same sale the markup is always the larger number. A 20% margin and a 25% markup below describe the same sale.

Losses stay negative. If the cost is above the price, both figures come out negative and are shown that way, never tidied to zero. If the cost is exactly 0, the margin is 100% and the markup is honestly reported as undefined — there is no cost base to measure it against.

Examples

  • Price 250, cost 200 → profit 50.00, margin 20%, markup 25%.
  • Price 100, cost 100 → break-even: profit 0.00, margin 0%, markup 0%.
  • Price 80, cost 100 → a loss of 20.00: margin −25%, markup −20%.

Frequently asked questions

What is a good profit margin?

It depends entirely on the industry — grocery retail runs on very small margins and high volume, while software and services often run far higher. There is no universal 'good' figure; compare against businesses like yours, and be careful comparing a gross margin (only direct costs) with a net margin (all costs).

Why is my markup higher than my margin?

Because they divide the same profit by different bases. Markup divides by the smaller number (cost), margin by the larger (price). A profit of 50 on a cost of 200 and price of 250 is 25% markup but 20% margin.

Can a margin be over 100%?

No — not from real revenue and cost figures. If a spreadsheet shows a margin above 100%, it has usually divided by the cost (that is a markup) or excluded part of the revenue.

Should the price include tax or VAT?

For margin maths, use the price excluding sales tax or VAT: the tax is collected for the government and is never your revenue. Including it would flatter the margin.