A product costs you 80 and sells for 100. You will hear two answers for how profitable that is: 20 percent and 25 percent. Both come from the same 20 of profit, and the difference is not rounding or opinion. It is the denominator. One calculation divides the profit by the selling price, the other divides it by the cost, and only the first one is the profit margin.

This guide explains the formula, works it fully on that cost of 80 and price of 100, and shows how the same figures look across 250 units. Every number below can be checked in the free Profit Margin Calculator on Ovatly, which shows margin and markup side by side so the two never get confused.

Contents

  • Quick answer
  • The formula, in plain terms
  • Margin and markup: same profit, two answers
  • How to calculate margin, step by step
  • Worked example: cost 80, price 100
  • Scaling up: the totals view on 250 units
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Profit margin is profit divided by the selling price, expressed as a percentage. Profit itself is the selling price minus the cost. So on a cost of 80 and a selling price of 100, profit is 20, and the margin is 20 divided by 100, which is 20.00 percent. If you divide the same 20 by the cost of 80 instead, you get 25.00 percent, and that figure is the markup, not the margin. Open the Profit Margin Calculator, enter the cost per unit and the selling price per unit, and it shows both figures at once.

The formula, in plain terms

The formula has three ingredients, all per unit:

  • Cost: what one unit costs you, in whatever completeness you choose to enter it.
  • Selling price: what one unit sells for.
  • Profit: the selling price minus the cost.

Margin takes that profit and divides it by the selling price:

margin = profit / selling price

Written out in full: margin = (selling price - cost) / selling price. The result is a share of the price: how much of every sale is profit, after that unit's cost is taken out. That is why margin matches how profit appears in accounts, where profit is reported as a share of the selling price (the revenue), never as a share of the cost.

The calculator displays percentages to 2 decimal places, and the underlying figures are not rounded before display, so the percentage is worked out from the full numbers and rounded only when it is shown.

Margin and markup: same profit, two answers

Markup uses the same profit and a different denominator:

markup = profit / cost

Because the cost is usually smaller than the price, dividing by it produces a bigger percentage from the identical profit. On the running example, profit of 20 divided by the price of 100 gives a margin of 20.00 percent, while 20 divided by the cost of 80 gives a markup of 25.00 percent. Neither is wrong; they answer different questions. Margin asks: what share of the selling price is profit? Markup asks: by what percentage was the cost increased to reach the price?

The two are linked, and one pairing is worth memorising: a 25 percent markup always equals a 20 percent margin. Most retailers and accountants quote margin because it matches how profit appears in accounts. Markup is handy when building prices up from cost. The trouble only starts when the two are swapped without noticing, which is why the calculator shows both on the same screen.

How to calculate margin, step by step

  1. Open the Profit Margin Calculator and enter the cost per unit.
  2. Enter the selling price per unit. The calculator shows the profit per unit, the margin and the markup, all from those two figures.
  3. Optionally, enter the number of units sold to see the totals view: total revenue, total cost and total profit across that volume.
  4. Read the margin as the share of the price that is profit, and the markup as the percentage added on top of the cost.

Worked example: cost 80, price 100

Take the entry example exactly as it stands: a cost per unit of 80 and a selling price per unit of 100.

  • Profit per unit: 100 minus 80 = 20.
  • Margin: 20 divided by the selling price of 100 = 20.00 percent. In the entry's words, that is 20 out of the 100 selling price.
  • Markup: 20 divided by the cost of 80 = 25.00 percent. That is 20 on top of the 80 cost.

Check the pairing from the other direction: a 25 percent markup on a cost of 80 adds 20 and lands on a price of 100, and the margin on that price is 20 out of 100, which is 20 percent. The two percentages describe the same transaction from two sides.

Scaling up: the totals view on 250 units

Margin is a ratio, so it does not change with volume. The totals view shows what does change. Enter 250 units sold alongside the same cost of 80 and price of 100, and the calculator shows:

  • Revenue: 250 units at 100 = 25,000.
  • Total cost: 250 units at 80 = 20,000.
  • Total profit: 5,000, which is also 250 times the per-unit profit of 20.

The margin on those totals is still 20.00 percent, because 5,000 out of 25,000 of revenue is the same share as 20 out of 100. Volume scales the money; it does not move the percentage. If the margin itself needs to change, either the price or the cost has to change.

Limitations and honest tradeoffs

The margin is only as honest as the cost behind it. Cost here means whatever you put in it: if you leave out overheads, packaging or platform fees, the margin shown will flatter the product. A margin on a partial cost will not match the profit in your accounts, where those costs do appear.

Two boundaries are worth knowing. A margin can never reach 100 percent unless the cost is zero, because some of the price is always the cost itself. And a price lower than the cost still works in the calculator: it shows negative profit, margin and markup, which is the honest picture of selling at a loss, not an error to be fixed.

Common mistakes

  • Dividing by the cost and calling it margin. That is markup. Margin divides by the selling price, and the two figures differ whenever profit is not zero.
  • Adding a markup percentage and expecting that margin. Cost plus 25 percent is a 25 percent markup, which is a 20 percent margin. The percentages do not carry across.
  • Entering an incomplete cost. Leaving out packaging, fees or overheads inflates the margin and hides the shortfall until the accounts are done.
  • Expecting the margin to grow with volume. Selling more units grows revenue and profit in money terms; the margin percentage stays where the price and cost put it.
  • Treating 100 percent margin as a target. With any real cost, it is arithmetically out of reach. A margin that high in a spreadsheet means the cost was left at zero.

FAQs

What is the profit margin formula? Margin is profit divided by the selling price, shown as a percentage. Profit is the selling price minus the cost, so on a cost of 80 and a price of 100, profit is 20 and the margin is 20 divided by 100, which is 20.00 percent.

What is the difference between margin and markup? Margin divides profit by the selling price; markup divides profit by the cost. The same 20 of profit on a cost of 80 and a price of 100 is a 20.00 percent margin and a 25.00 percent markup. A 25 percent markup always equals a 20 percent margin.

Why do retailers and accountants quote margin instead of markup? Margin matches how profit appears in accounts, as a share of the selling price, so it lines up with the figures in a set of books. Markup is handy when building prices up from cost. The calculator shows both so the two never get confused.

What happens if the price is lower than the cost? The calculator still works and shows negative profit, margin and markup. That is the honest picture of selling at a loss, not an error.

Can a profit margin reach 100 percent? Only if the cost is zero. Margin is profit as a share of the price, and as long as some of the price is cost, the profit share stays below 100 percent.

Conclusion

The whole formula is one division done the right way round: profit divided by the selling price. Divide by the cost instead and you have markup, a useful number that answers a different question. Keep the two separate, enter a complete cost, and the margin the Profit Margin Calculator shows will match the profit in your accounts. Once the formula is clear, the natural next step is working backwards from a margin you want to the price that delivers it, which is covered in How to Set a Price From a Target Margin. For more guides in this series, see our Business and Finance guides.