Skip to content
KazamTools

Profit Margin Calculator

Margin, markup and profit from cost and price, or the price you need for a target margin.

$

What the item costs you: product, packaging, delivery to you.

$

Before sales tax or VAT.

Profit margin

40%

Cost
$60.00
Selling price
$100.00
Profit
$40.00
Margin
40%
profit ÷ price
Markup
66.67%
profit ÷ cost

How this was calculated

Profit = $100.00 − $60.00 = $40.00

Margin = $40.00 ÷ $100.00 × 100 = 40%

How to use the Profit Margin Calculator

  1. 1Pick what you want: your margin, the price for a target margin, or the most you can pay.
  2. 2Enter your cost and selling price, or a target margin.
  3. 3Read the margin, markup and profit, with the working shown.

The profit margin formula

Profit margin tells you how much of each sale you keep after paying for the item itself. It is a share of the selling price.

Profit = Selling price − Cost
Margin % = Profit ÷ Selling price × 100

“Cost” here means everything it takes to get one item into the customer’s hands: the product, packaging, inbound shipping and, if you want a truer number, payment and marketplace fees. Leave out sales tax or VAT you collect for the government. It is not your revenue.

Worked example 1: margin from cost and price

You buy phone cases for $6 and sell them for $15.

  • Profit: $15 − $6 = $9
  • Margin: $9 ÷ $15 × 100 = 60%
  • Markup: $9 ÷ $6 × 100 = 150%

The same $9 profit is a 60% margin but a 150% markup. That is why the two numbers should never be mixed up.

Worked example 2: price for a target margin

Your candles cost £8 each to make, and you want a 45% margin. Work backwards from the margin:

Price = Cost ÷ (1 − Margin)

£8 ÷ (1 − 0.45) = £8 ÷ 0.55 = £14.55. Check: profit is £6.55, and £6.55 ÷ £14.55 = 45%.

A common mistake is to add 45% to the cost: £8 × 1.45 = £11.60. That is a 45% markup, and the margin is only 31%.

Worked example 3: the most you can pay

A shop wants to sell a jacket at €80 and keep a 25% margin. The most it can pay the supplier is:

Max cost = Price × (1 − Margin)

€80 × 0.75 = €60. Any supplier price above €60 eats into the 25% target.

Margin and markup side by side

Markup on cost Margin on price
25% 20%
50% 33.3%
100% 50%
150% 60%
200% 66.7%
300% 75%

To convert yourself, use margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin). The markup calculator does this both ways.

Gross margin vs net margin

The calculator above gives your gross margin per item. Your net margin also takes off running costs that do not belong to a single sale:

Net margin % = (Revenue − Cost of goods − Operating expenses) ÷ Revenue × 100

Say a small online shop sells $200,000 in a year. Its goods cost $120,000 and rent, software, wages and ads cost $50,000. Net margin is ($200,000 − $120,000 − $50,000) ÷ $200,000 = 15%, even though gross margin is 40%.

Tips for using margin well

  • Include fees in cost. Marketplace and payment fees often take 5–15% of the price. Find yours with the Etsy fee calculator or PayPal fee calculator, then add them to cost per item.
  • Discounts hit margin hard. A 20% discount on an item with a 40% margin cuts your profit in half. On a $100 item that cost $60, the $40 profit drops to $20.
  • Margin can be negative. If the cost is above the price, you are selling at a loss. The calculator shows this as a negative margin.
  • Margin cannot reach 100%. That would need a cost of zero. Markup has no ceiling.
  • Know your break-even. Margin per item is only half the story. The break-even calculator shows how many sales cover your fixed costs.
Cite this calculator

Using this calculator in an essay, report or article? Copy a ready-made reference. Check your teacher's or publisher's style guide for small differences.

APA
KazamTools. (2026, October 22). Profit margin calculator. Retrieved October 30, 2026, from https://kazamtools.com/business/profit-margin-calculator/
MLA
"Profit Margin Calculator." KazamTools, 22 Oct. 2026, https://kazamtools.com/business/profit-margin-calculator/. Accessed 30 Oct. 2026.
Chicago
KazamTools. "Profit Margin Calculator." Last modified October 22, 2026. Accessed October 30, 2026. https://kazamtools.com/business/profit-margin-calculator/.
Plain link
Profit Margin Calculator (KazamTools): https://kazamtools.com/business/profit-margin-calculator/
HTML link
<a href="https://kazamtools.com/business/profit-margin-calculator/">Profit margin calculator</a> by KazamTools

Frequently asked questions

How do I calculate profit margin?

Subtract the cost from the selling price to get profit, then divide the profit by the selling price and multiply by 100. An item that costs $60 and sells for $100 has a 40% margin.

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. The same $40 profit on a $60 cost and $100 price is a 40% margin but a 66.7% markup.

How do I find the selling price for a target margin?

Divide the cost by one minus the margin as a decimal. For a 40% margin on a $60 cost: 60 ÷ (1 − 0.40) = $100.

What is a good profit margin?

It depends on the industry. Grocery shops often run gross margins of 20–30%, while software and handmade goods can be far higher. Compare against businesses like yours, and remember that fees, ads and overheads come out of gross margin.

Can a profit margin be more than 100%?

No. Margin is a share of the price, so it can only reach 100% if the cost is zero. Markup has no upper limit.

Guides

Was this tool helpful?

Add this profit margin calculator to your website (free)

Copy this code into any web page. The tool stays free, has no ads inside it, and works on phones. Please keep the credit link under it.

Want a live preview or light and dark colours? Open this widget in the widget builder, where you can also browse every free calculator widget.