Profit Margin Calculator

💰 Profit Margin & Markup Calculator

Work out your profit, profit margin and markup from cost and selling price, or find the selling price you need for a target margin or markup. Everything runs in your browser - nothing is uploaded.

Margin can never reach 100%: margin is profit divided by the selling price, so a 100% margin would mean the cost was zero.

What this calculator does

A Profit Margin & Markup Calculator shows how much a sale really makes. Enter the cost and the selling price, and it works out the profit, the profit margin — profit as a percentage of the selling price — and the markup — profit as a percentage of the cost. It also works backwards: give it the margin or markup you want, and it finds the selling price. It offers three modes and six currencies, and runs entirely in your browser.

How to use it

Pick a mode first, then fill in the fields that appear.

  1. Choose the Mode: “Cost + selling price”, “Cost + target margin” or “Cost + target markup”.
  2. Choose the Currency: USD ($) is the default, or switch to PKR (Rs), GBP (£), EUR (€), INR (₹) or AED.
  3. Type the Cost, then the second number for your mode: the Selling price in mode 1, the Target margin % in mode 2, or the Target markup % in mode 3.
  4. Click Calculate. Mode 1 shows Profit, Profit margin and Markup; modes 2 and 3 show the Selling price and the Profit. Money and percentages are shown to 2 decimal places.

Empty or non-numeric fields get a plain-words message instead of a wrong answer. A target margin of 100% or more is refused: margin is profit divided by the selling price, so 100% would mean the cost was zero.

Worked examples

Example 1 — cost and selling price, in dollars. A product costs $40 and sells for $60. Profit is $60 − $40 = $20.00, margin is $20.00 ÷ $60 × 100 = 33.33%, and markup is $20.00 ÷ $40 × 100 = 50.00%.

Example 2 — cost and selling price, in rupees. A product costs Rs 500 and sells for Rs 750. Profit is Rs 250.00, margin is 33.33% and markup is 50.00%. Use Currency PKR, Cost 500 and Selling price 750. The percentages match Example 1, because the cost-to-price ratio is the same.

Example 3 — pricing from a target margin. A product costs $40 and you want a 40% margin. Selling price is $40 ÷ (1 − 40 ÷ 100) = $66.67, and profit is $66.67 − $40 = $26.67.

Example 4 — pricing from a target markup. A product costs Rs 500 and you want a 25% markup. Selling price is Rs 500 × (1 + 25 ÷ 100) = Rs 625.00, and profit is Rs 625.00 − Rs 500 = Rs 125.00.

Common mistakes

  • Mixing up margin and markup. Margin is profit divided by the selling price; markup is profit divided by the cost. For the same sale they differ: in Example 1 the margin is 33.33% but the markup is 50.00%.
  • Working the margin out on the cost. Adding 40% to a $40 cost gives $56 — only a 28.57% margin. Use the “Cost + target margin” mode instead.
  • Forgetting the other costs. Include delivery, packaging and payment fees in Cost, not just the purchase price, or the margin will overstate the real profit.

Frequently asked questions

What is the difference between profit margin and markup?

Profit margin is profit divided by the selling price, times 100. Markup is profit divided by the cost, times 100. For a $40 item sold for $60, the profit is $20, the margin is 33.33% and the markup is 50.00%.

How do I find the selling price for a 40% profit margin?

Choose “Cost + target margin”, enter the cost and 40 in Target margin %. Selling price = cost ÷ (1 − margin ÷ 100), so a $40 cost gives $40 ÷ 0.60 = $66.67, with a profit of $26.67.

Can profit margin be 100%?

No. Margin is profit divided by the selling price, so 100% would mean the cost was zero. The tool refuses any target margin of 100% or more.

Which currencies does the calculator support?

USD ($), PKR (Rs), GBP (£), EUR (€), INR (₹) and AED. The currency only changes the symbol shown with money amounts.

Related tools

For more money tools, try the Percentage Calculator for working out percentages of any amount, and the VAT/GST Calculator for adding or removing tax from a price.

Scroll to Top