HandyBench

Profit Margin Calculator

Profit, gross margin and markup from cost and price.

40
Profit
100
Revenue
40%
Gross margin
66.67%
Markup

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. The two numbers are always different for the same sale — see the FAQ below.

How to use the Profit Margin Calculator

  1. 1 Choose whether you know the revenue, or want to hit a target margin.
  2. 2 Enter the cost, and either the revenue or your target margin percentage.
  3. 3 Read the profit, gross margin and markup.

Margin and markup are not the same number

Both measure the same profit but divide it by different things. This calculator reports both for every sale, so you can see the gap:

  • Profit = revenue − cost.
  • Gross margin = profit ÷ revenue × 100. It is the share of the selling price you keep.
  • Markup = profit ÷ cost × 100. It is how far above cost you priced the item.

Margin can never reach 100% while cost is positive, whereas markup has no upper limit. For any profitable sale, markup is larger than margin.

Two modes

From cost + revenue uses the two amounts you type. From cost + target margin works out the selling price you need: price = cost ÷ (1 − margin / 100). A target margin of 100% or more shows a message, since a 100% margin would need an infinite price, and costs or revenues below 0 are rejected too. If revenue is zero the margin shows 0, and if cost is zero the markup shows 0, as neither is defined.

Worked examples

With a cost of 60 and a price of 100, profit is 40, margin is 40% and markup is 66.67%. To earn a 35% margin on a cost of 60, the price is 60 ÷ 0.65 = 92.31, which is a markup of 53.85%.

CostPriceProfitMarginMarkup
601004040%66.67%
40501020%25%
751002525%33.33%
501005050%100%

The classic mistake

Pricing a 60 item with a 40% markup gives 84, but the profit of 24 is only 28.57% of the 84 selling price, not 40%. A seller who wanted a 40% margin should have charged 60 ÷ 0.6 = 100. The reverse error is also common: a 50% margin is a 100% markup, so a business that doubles its cost has a 50% margin, not 100%.

Limits to keep in mind

  • Gross, not net. The cost field is labelled COGS, so the result is a gross margin. Rent, wages, marketing, payment fees and tax are not subtracted, so net profit is lower.
  • Per unit or in total. The tool works equally on one item or on a whole period's totals, as long as cost and revenue cover the same things.
  • Discounts and refunds. Enter the revenue you actually received. A 20% promotion changes the margin dramatically; the discount calculator shows the resulting price.

For the return on a single investment instead of a product, see the ROI calculator. If a salesperson takes a cut of the revenue, the commission calculator shows what is left.

Examples

  • ▸ Cost 60, revenue 100 → 40 profit, 40% margin, 66.7% markup.
  • ▸ Cost 60, target margin 35% → sell at 92.31.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price (profit ÷ revenue). Markup is profit as a percentage of the cost (profit ÷ cost). They use the same profit figure but different denominators, so they are never equal — markup is always higher than margin for the same sale.

How do I calculate the price needed for a target margin?

Divide the cost by (1 − target margin ÷ 100). For a 35% margin on a 60 cost item, that is 60 ÷ 0.65 = 92.31 — pricing at 60 cost and 40% markup would be a common mistake, since that only gives a 28.6% margin.

Why is my margin lower than my markup?

Because margin divides by the (larger) selling price while markup divides by the (smaller) cost. A 50% markup on a 100 cost item sells for 150, giving a profit of 50 — that’s only a 33.3% margin (50 ÷ 150), not 50%.

What is the difference between gross margin and net margin?

This calculator gives gross margin, which only subtracts the direct cost of the item (COGS). Net margin also subtracts overheads such as rent, wages, marketing and tax, so it is always lower.

Related guides