Skip to content
SimpleTools24

Profit Margin Calculator

Three quick calculators for pricing: find the margin and markup of a product, the selling price you need to hit a target margin, and the price that results from a given markup.

Use net amounts (without VAT or sales tax) for cost and price.

Margin from cost and price

USD
USD
Gross margin
40%
Markup
66.67%
Profit
$40.00

Price for a target margin

USD
%
Selling price
$100.00
Markup
66.67%
Profit
$40.00

Price from a markup

USD
%
Selling price
$90.00
Gross margin
33.33%
Profit
$30.00

How to calculate profit margin

Profit margin tells you how much of every sale you keep after paying for the product itself. You need two numbers: the cost of the item and its selling price, both without sales tax or VAT.

  • Profit = selling price − cost
  • Gross margin (%) = profit ÷ selling price × 100
  • Markup (%) = profit ÷ cost × 100

Example: you buy a product for $60 and sell it for $100. Profit is $40. The margin is 40 ÷ 100 = 40%, and the markup is 40 ÷ 60 = 66.67%. Same product, same profit, two very different percentages. That is why it matters which one you mean.

Margin vs markup: the difference that costs money

Margin is calculated on the selling price; markup is calculated on the cost. Margin can never reach 100%, while markup can be any size. Mixing them up is one of the most common pricing mistakes in small businesses. If you want a 40% margin but add a 40% markup to the cost, you end up with a margin of only 28.6%.

MarkupEquivalent margin
20%16.67%
25%20%
50%33.33%
66.67%40%
100%50%
150%60%
200%66.67%

To convert between the two:

  • Margin = markup ÷ (100 + markup) × 100
  • Markup = margin ÷ (100 − margin) × 100

Selling price for a target margin

If you know the margin you want, the second calculator gives you the price. The formula is:

Selling price = cost ÷ (1 − target margin)

For a product that costs $60 and a target margin of 40%, the price is 60 ÷ 0.60 = $100. A common shortcut, adding 40% to the cost, would give $84 and a margin of only 28.6%.

Selling price from a markup

Many wholesalers, restaurants and trades work with a fixed markup instead. The third calculator uses:

Selling price = cost × (1 + markup)

A 50% markup on a $60 cost gives a price of $90 and a margin of 33.33%. A markup of 100%, often called keystone pricing in retail, doubles the cost and gives a 50% margin.

Gross margin, operating margin and net margin

This calculator works out gross margin at product level: price minus the direct cost of the item. Businesses also track:

  • Operating margin: profit after operating expenses such as rent, salaries and marketing, divided by revenue
  • Net profit margin: what remains after all expenses, interest and taxes, divided by revenue

A healthy gross margin needs to be high enough to pay for all those overheads and still leave a profit. What counts as healthy varies widely by industry: software and services often have high gross margins, while groceries and fuel run on thin ones.

Example: pricing a new product

Say you import a desk lamp. The supplier charges $18, shipping and duties add $4 per unit, packaging costs $1 and the marketplace takes a fee of about $3 per sale. Your real cost is $26, not $18. If you want a 45% gross margin, the second calculator gives a selling price of 26 ÷ 0.55 = $47.27, which you might round to $47.99. Check the result in the first calculator: at $47.99 the margin is 45.8% and the markup 84.6%. Compare that price with competitors before you settle on it; if the market price is much lower, you need a cheaper supplier or a different product.

How discounts eat into your margin

A discount comes straight out of your profit, not out of your cost. Take a product that costs $60 and sells for $100, a 40% margin and $40 profit per unit. A 10% discount cuts the price to $90 and the profit to $30, so you need to sell 33% more units just to make the same total profit. A 20% discount halves the profit to $20 per unit, and you need to double your sales to stand still. Run the numbers before you plan a sale.

Break-even point

Margin also tells you how many units you need to sell to cover your fixed costs, such as rent, software and salaries. The formula is:

Break-even units = fixed costs ÷ (selling price − cost per unit)

With fixed costs of $3,000 a month and $40 profit per unit, you break even at 75 units a month. Every unit after that adds $40 of profit. Raising the margin lowers the break-even point; cutting the price raises it.

Include all direct costs

For an accurate margin, the cost should include everything it takes to get the product ready for sale: purchase price, shipping to you, import duties, packaging and payment or marketplace fees per unit. Leaving these out makes the margin look better than it is.

Prices with and without sales tax

Always calculate margin with net prices, excluding VAT or sales tax, because the tax is passed on to the government and is not part of your profit. If you need a price including VAT, add the tax after you have set the net price, for example net price × 1.20 for 20% VAT. When you are ready to bill a customer, our invoice generator shows net amounts, tax and totals separately.

Frequently asked questions

How do I calculate profit margin?

Subtract the cost from the selling price, divide the result by the selling price and multiply by 100. Cost $60 and price $100 give a margin of 40%.

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. A 50% markup equals a 33.33% margin.

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

Divide the cost by 0.70. A product costing $35 needs a price of $50 for a 30% margin.

Can a profit margin be more than 100%?

No. Margin is a share of the selling price, so it is always below 100%. Markup, however, can be more than 100%.

Should I include VAT or sales tax?

No. Use net prices without tax for both cost and selling price.