Profit Margin & Markup Calculator

Calculate profit margin and markup from cost and selling price — or work out the price you need for a target margin or markup. Ideal for pricing products, services and freelance work.

Runs in your browser · nothing is uploaded

What the product or service costs you
Margin–
Markup–
Profit–
Selling price–

Margin ↔ markup conversion

MarginMarkupPrice for your cost

Formulas

With profit = price − cost:

Measure Formula $60 cost, $100 price
Profit price − cost $40
Margin profit ÷ price 40%
Markup profit ÷ cost 66.7%
Price for a target margin cost ÷ (1 − margin) 60 ÷ 0.6 = $100
Price for a target markup cost × (1 + markup) 60 × 1.667 = $100

Margin vs markup

The same sale can be described two ways, and mixing them up is one of the most common pricing errors. If you want a 40% margin on an item that costs $25:

  • Correct: $25 ÷ (1 − 0.40) = $41.67 → $16.67 profit, 40% of the price.
  • Wrong: $25 + 40% = $35 → $10 profit, only a 28.6% margin.

Margin to markup conversion table

Margin Markup
10% 11.1%
20% 25%
25% 33.3%
30% 42.9%
40% 66.7%
50% 100%
60% 150%
75% 300%

Retailers often talk about a “keystone” markup — doubling the wholesale price. That’s a 100% markup and a 50% margin.

Using margin for freelance and service pricing

Margin works for services too. Your “cost” might be a subcontractor’s fee, materials passed through to a client, or the cost of your own time at your minimum hourly rate. If a project takes 20 hours and your minimum is $80 an hour, your cost is $1,600; quoting $2,000 gives a 20% margin above that floor.

Our freelance hourly rate calculator helps you find that minimum, and the VAT calculator adds tax on top of the final price.

Pricing tips

  • Know your full cost. Include shipping, payment fees, packaging, platform commissions and returns.
  • Price for margin, not markup when you need a specific share of revenue to cover overheads.
  • Check discounts against margin. A 20% discount on a 40% margin item halves your profit per sale.
  • Compare with your market. Margin tells you what you need; competitors and customers tell you what you can charge.

Limitations

The calculator works on a single item or job. It doesn’t include taxes, volume discounts, or overhead allocation — add those to the cost if you want a net figure.

Last updated:

Frequently asked questions

What is the difference between margin and markup?

Both describe the same profit, measured against different numbers. Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. Buy for $60 and sell for $100 and you make $40 — a 40% margin ($40 ÷ $100) but a 66.7% markup ($40 ÷ $60). Markup is always the bigger number.

How do I calculate profit margin?

Margin = (price − cost) ÷ price × 100. For a $100 price and $60 cost, (100 − 60) ÷ 100 = 40%.

How do I set a price for a target margin?

Divide the cost by (1 − margin). For a 40% margin on a $25 cost, 25 ÷ 0.60 = $41.67. A common mistake is adding 40% to the cost ($35), which only gives a 28.6% margin.

How do I convert margin to markup?

Markup = margin ÷ (1 − margin). A 25% margin is a 33.3% markup; a 50% margin is a 100% markup. To go the other way, margin = markup ÷ (1 + markup).

What is a good profit margin?

It depends heavily on the industry. Grocery retail often runs on gross margins of 20–30%, clothing and specialty retail often 40–60%, and software and digital products can exceed 80%. Compare yourself with businesses like yours, and remember that gross margin must also pay for overheads before you make a net profit.

Is this gross margin or net margin?

If you enter the cost of the product (materials, wholesale price, direct labour), the result is gross margin. If you include every cost — rent, marketing, software, your own time — it's closer to net margin.

The results are estimates for educational purposes only and are not financial, tax or legal advice. Check important decisions with a qualified professional.