Gross profit, price minus cost calculator

Type price and cost. The calculator subtracts and leaves cash per unit. 100 and 80 give 20. Those same 20 at a 25% markup on 80 make 100, and the margin on that 100 is only 20%.

Percent of price: margin. Percent of cost: markup. Unit threshold: break-even.

Inputs

Optional extras

Result

Enter a value. The result shows up here.

How it works

Gross profit per unit is price minus cost. 100 and 80 give 20. 150 and 90 give 60. 100 and 70 give 30. 80 and 80 give 0. If cost is higher, the result is negative: 50 and 70 is a 20 loss per unit, not a form error.

What remains is money: price minus cost. The same 20 at a 100 price is 20% margin. At a cost of 80 it is 25% markup. That is the “25% on 80” mix-up: markup makes a 100 price and 20 in your pocket, while a 25% margin at 80 already needs about 26.67 per unit and a 106.67 price. Here you stay with the cash amount.

Both amounts must be non-negative. Zero price at cost 80 is an 80 loss. Zero cost at 100 is 100 profit. Quantity scales revenue, cost, and profit. Ten units at 100 and 80 are 200 in total, still 20 per unit.

Optional tax is a flat percent of profit, or of batch profit when quantity is set. 19% of 20 leaves 16.20. That is not a full corporate-tax table. Empty tax hides that row.

The result uses the currency of the price. 20 stays 20. A comma in 99.90 works. Skip thousand spaces.

Margin and markup take the same pair and divide. Break-even divides fixed costs by these 20 per unit. Price from margin and price from markup set a list price; here you only subtract.

How to use

  1. In selling price, type the amount, for example 100. Profit will use that same currency.
  2. In cost, type the purchase, for example 80. 100 minus 80 gives 20 per unit.
  3. Click Calculate. 150 and 90 give 60. 80 and 80 give 0. 50 and 70 give −20, a loss, not an error.
  4. Leave quantity empty for one unit. 10 at 100 and 80 shows 200 profit in total.
  5. Leave tax empty when you want gross alone. 19 on 20 leaves 16.20 after a flat percent.

Formula

profit = pricecost

Both amounts ≥ 0. Optional tax: profit × (1 − rate/100). This is not margin % and not mark-up %.

Price, cost, and cash per unit

Profit = price − cost. 100 and 80 give 20. That is 20% margin on price and 25% markup on 80.

price
Selling price. 100 at cost 80 leaves 20. 150 and 90 give 60.
cost
Unit cost. Higher than price is a loss: 50 minus 70 is −20. 80 and 80 give 0.
profit
The cash gap, not a percent. 20 / 100 is 20% margin. 20 / 80 is 25% markup.

Real-life examples

Example 1

150 minus 90 -> 60.00 profit.

Example 2

100 minus 70 -> 30.00 per unit.

Example 3

200 minus 100 -> 100.00 profit.

Example 4

80 minus 80 -> 0.00, no profit.

Example 5

50 minus 40 -> 10.00 per unit.

Example 7

120 minus 90 -> 30.00 per unit.

Example 8

250 minus 200 -> 50.00 profit.

Ways to use this calculator

  • You answer “how much cash is left” before someone asks for 25% and you do not know 25% of what.
  • You fold 20 per unit into break-even when you know fixed costs and do not need a percent right now.

Frequently asked questions

How much profit at 100 and 80?

20 per unit. 150 and 90 give 60. 100 and 70 give 30. 80 and 80 give 0.

Is 20 at 100 and 80 a 25% margin?

No. 20 / 100 is 20% margin. 20 / 80 is 25% markup. The cash is the same; the percent depends on the denominator.

How much profit do I need for a 25% margin at cost 80?

About 26.67 per unit and a 106.67 price. The 20 cash at 80 is a 25% markup, not a 25% margin.

What if cost 70 is higher than price 50?

The result is −20. That is a loss per unit. You cannot type negative amounts, but a higher cost will run.

How does quantity 10 enter 100 and 80?

Revenue 1000, cost 800, profit 200. Per unit still 20.

How does 19% tax come off 20?

20 × (1 − 0.19) = 16.20. That is one flat percent, not a corporate-tax table.

Do 100 dollars and 100 euros give a different profit at cost 80?

No, if both amounts are in the same currency. 20 stays 20.

Does a comma in 99.90 work?

Yes. 99.90 minus 80 is 19.90. Skip thousand spaces.

Where do I turn these 20 into a percent of price?

On the margin page. 100 and 80 give 20%. Markup from that pair is 25%.

Is this company net profit?

No. It is price minus unit cost. Fixed costs, VAT, and tax with reliefs sit outside this subtract, except the optional flat percent.

Knowledge sources

Gross profit is (price − cost) × quantity. This is not a company earnings print.

Page updated in 2026.