ToolJovia
Calculators

Profit Margin Calculator

Calculate gross profit and gross margin from revenue and cost, including loss-making sales.

✓ Browser-local processing

Loading tool…

How to use Profit Margin Calculator

See how much of your revenue remains after the cost you enter. Gross margin uses revenue as its denominator, making it useful for comparing sales with different selling prices.

  1. Enter positive revenue or a selling price.
  2. Enter the associated nonnegative cost in the same currency.
  3. Calculate gross profit and profit as a percentage of revenue.

Good to know

  • A zero revenue has no defined profit margin and is rejected. Costs above revenue produce a negative margin.
  • Only the costs entered are included; this is not necessarily net profit.
  • Numbers use JavaScript floating-point arithmetic. Inputs are limited to 1,000 characters and a magnitude of 1 quadrillion. Results are rounded for display.
  • These are arithmetic estimates, not financial or tax advice. No currency conversion, fees, or legally applicable tax rules are included.

Follow one item from margin to break-even

Compare two prices for the same fictional item, using one currency throughout. Base cost is 80 per item. For break-even, a stated extra 10 per item brings total variable cost to 90, including that original 80. Fixed costs are 1,001 for the same period. Do not add 80 to 90 again.

Type numbers without commas or percent signs: enter 1001 for fixed costs, and 25 or 20 in a percentage field. Follow each scenario separately and transfer values manually using the links below.

A · Selling at 100

  1. In this tool, enter Revenue / selling price = 100 and Cost = 80. Gross profit is 20 and gross margin is 20%: 20 ÷ 100. The same profit is a 25% markup on cost: 20 ÷ 80.
  2. In Markup Calculator, enter Cost = 80 and Markup on cost (%) = 25. The selling price is 100. For a 20% margin with a base cost of 80, the worked formula is 80 ÷ (1 − 0.20) = 100; this tool does not add a target-margin input.
  3. In Break-even Calculator, enter Fixed costs for the period = 1001, Selling price per unit = 100 and Variable cost per unit = 90. Contribution is 10. Theoretical break-even is 100.1 units, so the whole-unit target is 101.

At 101 units, revenue is 10,100 and total modeled cost is 90 × 101 + 1,001 = 10,091, leaving estimated profit of 9. At 100 units, revenue of 10,000 is below modeled cost of 10,001: a loss of 1.

B · Using a 20% markup

  1. In Markup Calculator, enter Cost = 80 and Markup on cost (%) = 20. The selling price is 96, profit is 16 and gross margin is about 16.6667%: 16 ÷ 96. A 20% markup is not a 20% margin.
  2. Keep Variable cost per unit = 90 and Fixed costs for the period = 1001, but set Selling price per unit = 96. Contribution is now 6. Theoretical break-even is 1,001 ÷ 6, about 166.8333 units, so the whole-unit target is 167. Do not carry the price of 100 from scenario A into this calculation.

At 167 units, revenue is 16,032 and total modeled cost is 90 × 167 + 1,001 = 16,031, leaving estimated profit of 1. At 166 units, revenue of 15,936 is below modeled cost of 15,941: a loss of 5.

Keep the cost scopes with the result

The margin result includes base cost 80 only; the break-even model includes variable cost 90 per unit plus fixed costs 1,001 for one period. These are two declared cost scopes, not a complete net-profit calculation. The extra 10 is fictional, not a platform fee or tax rate. In your own cost notes, mark refunds, acquisition, labor, taxes and other costs as included, excluded or unknown. An unknown cost is not zero: keep the estimate provisional until those notes are complete.

Use the existing links and enter the values manually. Keep your cost notes beside any results you copy or download; the tools do not transfer or combine them automatically. These calculations do not establish demand, achieved sales, money received or future profit.

Try these values in this tool · Open Markup Calculator · Open Break-even Calculator

Common questions

How is margin different from markup?

Margin divides profit by revenue. Markup divides profit by cost. A cost of 60 and a price of 100 give a 40% margin but about a 66.67% markup.

Can the result be negative?

Yes. A cost greater than revenue indicates a loss and produces a negative gross margin.

Keep going with related tools

All calculators →