Profit Margin Calculator

Calculate gross profit, profit margin and markup from cost and revenue, and see why margin and markup are different numbers.

$
$
Profit margin 40 %
margin = (price − cost) ÷ price; markup = (price − cost) ÷ cost
Markup on cost 66.6667 %
Profit per unit 40
Total profit 40
Total revenue 100
Cost as a share of price 60 %

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Profit Margin Calculator does

The profit margin calculator on this page will calculate gross profit, profit margin and markup from cost and revenue, and see why margin and markup are different numbers. Fill in all 3 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for setting a selling price to hit a target margin. If you want to cross-check the result, there is another profit margin calculator on FreeToolsWorld.org.

How to use it

  1. Enter your cost and your selling price.
  2. Margin is profit as a share of the selling price.
  3. Markup is the same profit as a share of the cost — always the larger number.
  4. Add units sold for totals.

How it works

Margin and markup describe the same profit against different bases, and confusing them is one of the most common and most expensive pricing errors. Buy at 60, sell at 100: the margin is 40 per cent of the selling price, while the markup is 66.7 per cent of the cost.

The practical consequence: if you want a 40 per cent margin and you apply a 40 per cent markup to cost, you will land at a 28.6 per cent margin and systematically undercharge. To hit a target margin, divide the cost by (1 − margin), do not multiply by (1 + margin).

When to use it

  • Setting a selling price to hit a target margin.
  • Comparing margins across products with different cost bases.
  • Checking that a supplier quote leaves enough room.

Common mistakes to avoid

  • Applying a markup percentage when a margin percentage was intended, which undercharges every time.
  • Using the cost of goods alone as "cost", ignoring shipping, payment fees and returns.

Frequently asked questions

What is the difference between margin and markup?

The base. Margin divides profit by the selling price; markup divides the same profit by the cost. Markup is always the larger percentage, and the gap widens as profitability rises.

How do I price for a 40% margin?

Divide your cost by 0.6. A cost of 60 gives a price of 100. Multiplying cost by 1.4 instead gives 84, which is only a 28.6 per cent margin.

Related tools

See all finance calculators →