Profit Margin Calculator

Choose what you know: cost and price, cost and target margin, or cost and markup. Get the selling price, profit, margin and markup at once.

  • Runs on your device
  • Keyboard-first
  • Free, no sign-up
I know

Result

—

Selling price
—
Profit
—
Margin
—
Markup
—

Calculated on your device. Nothing you type is sent anywhere.

Cite
APA: Mr. Behairy. (2026). Margin Calculator. Anubis Calc. https://calculatoranubis.com/en/margin-calculator
MLA: Mr. Behairy. "Margin Calculator." Anubis Calc, 2026, https://calculatoranubis.com/en/margin-calculator.
Embed

Copy this snippet to embed this calculator on your site or blog for free:

<iframe src="https://calculatoranubis.com/en/embed/margin-calculator" width="100%" height="520" style="border:0;border-radius:18px" loading="lazy" title="Margin Calculator"></iframe>
<p><a href="https://calculatoranubis.com/en/margin-calculator" rel="noopener">Margin Calculator — Anubis Calc</a></p>

How it works

Margin and markup both describe profit as a percentage, but they divide by different numbers. Margin is profit as a share of the selling price; markup is profit as a share of the cost. Mixing them up is one of the most common pricing mistakes.

profit = price − cost  ·  margin = profit ÷ price × 100  ·  markup = profit ÷ cost × 100 price for a target margin = cost ÷ (1 − margin)  ·  price for a markup = cost × (1 + markup)

Worked examples. Cost 60, price 100 → profit 40, margin 40%, markup 66.67%. Want a 25% margin on a cost of 60? Price = 60 ÷ 0.75 = 80. A 25% markup on the same cost gives only 75 — a 20% margin.

Margin vs markup table

MarkupMargin
25%20%
33.3%25%
50%33.3%
66.7%40%
100%50%

Markup is always the bigger number. A margin can never reach 100% (that would mean zero cost), while a markup can be any size.

Which costs to include

For a gross margin, use the direct cost of the product: purchase price, materials, shipping in. For a net margin, the cost must also cover rent, wages, marketing and fees — so set a price whose gross margin is high enough to pay for them. Online marketplaces often take 10–15% in fees; add them to the cost.

VAT and pricing

Calculate margin on prices before VAT; the VAT you collect is not your income. Find the net price first with the VAT calculator. To compare value between pack sizes use the unit price calculator, and for price changes the percentage change calculator.

Sources & assumptions

Prices before VAT; cost includes whatever you enter; percentages rounded to two decimals.

Reviewed by: Mr. Behairy (Accountant, Financial Auditor & Tax Specialist) · Editorial policy · Formulas reviewed:

Frequently asked questions

How do I calculate profit margin?

Subtract cost from price, divide by price and multiply by 100. (100 − 60) ÷ 100 = 40%.

What is the difference between margin and markup?

Margin divides profit by the selling price; markup divides it by the cost. 40% margin equals 66.7% markup.

How do I find the price for a 30% margin?

Divide the cost by 0.70. A cost of 70 needs a price of 100.

Is 50% markup a 50% margin?

No. A 50% markup gives a 33.3% margin.

What is a good profit margin?

It depends on the industry: grocery can be under 5% net, software well over 20%. Compare with your sector.

Should I include VAT in the margin?

No. Use prices before VAT, because VAT is passed to the tax authority.