Profit margin calculator

Enter what an item costs you and what you sell it for to see the profit margin, the gross profit and the markup percentage at once. Margin and markup are easy to mix up, so both are shown side by side.

What the item costs you to buy or make, per unit or in total.

What you charge. Use the same unit as the cost, per unit or in total.

Result

Profit margin
40%
Gross profit
$40.00
Markup
66.67%
Try an example:

How to use this tool

  1. Enter your cost.
  2. Enter the selling price. The margin, profit and markup update instantly.
  3. Check the markup if you set prices as "cost plus a percentage", and the margin if you track profit as a share of sales.
  4. Copy the margin or share the link to keep the numbers.

Good to know

  • Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost.
  • This is gross margin: overheads, shipping, fees and tax are not included unless you add them to the cost.

Frequently asked questions

How do you calculate profit margin?

Subtract the cost from the selling price to get gross profit, then divide that profit by the selling price and multiply by 100. An item that costs $60 and sells for $100 has a profit of $40, so the margin is 40 ÷ 100 = 40%. Margin is always a share of the selling price.

What is the difference between margin and markup?

Both use the same profit, but margin divides it by the selling price while markup divides it by the cost. The $60 item sold for $100 has a 40% margin and a 66.67% markup. A 50% markup gives only a 33.3% margin, which is why setting prices by markup and reading results as margin goes wrong.

Can a profit margin be negative?

Yes. If the cost is higher than the selling price you make a loss and the margin is negative. A $120 cost sold for $100 loses $20, which is a margin of −20% and a markup of −16.67%. The calculator shows these negative values instead of an error so you can see how large the loss is.

Why does markup show a dash when the cost is 0?

Markup divides profit by cost, and dividing by zero has no answer, so the calculator shows a dash. The margin still works: if you sell something that cost nothing for $50, the profit is $50 and the margin is 100%. Enter a cost above 0 to see a markup percentage.

Is this gross margin or net margin?

It is gross margin, based only on the cost you enter. Net margin also subtracts overheads such as rent, wages, shipping, fees and tax. To estimate net margin, add those costs into the cost field or subtract them from the profit yourself before dividing by the selling price.

Results are estimates for general information. Double-check anything important with an official source.