SMALL CALCULATIONS. CLEAR ANSWERS.

Profit margin calculator

Calculate profit and profit margin from cost and selling price. Understand the difference between margin and markup.

Profit margin calculator

Live result

Use a dot for decimals. Scientific notation (1e6) is welcome. Do not use thousands separators.

Calculated instantly, right in your browser

Try an example
◈   Free, always◎   No sign-up⌁   Your numbers stay here

A LITTLE CONTEXT

How it works

Calculate gross profit on a sale and express it as a percentage of the selling price. Include the costs relevant to your calculation; this tool does not add tax or overhead.

THE FORMULAProfit = selling price − cost; margin = profit ÷ selling price × 100

For example Cost 80, selling price 100: profit 20, margin 20%.

Results display up to 12 significant digits. JavaScript floating-point arithmetic approximates some decimals and large integers. Round monetary results to your currency’s precision.

Good questions. Simple answers.

Can profit margin be negative?

Yes. If cost is 120 and selling price is 100, profit is −20 and margin is −20%.

Why is margin undefined at a selling price of zero?

Margin divides profit by selling price. Division by zero is undefined, even if the cost is also zero.

FIND THE RIGHT TOOL

A percentage for every situation.

From a quick discount to a bigger picture.