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 resultA 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.
Profit = selling price − cost; margin = profit ÷ selling price × 100For 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.
Percentage of
Percentage · Of number
What percent?
Part (X) · Whole (Y)
Percentage increase
Starting value · Ending value
Percentage decrease
Starting value · Ending value
Increase by percentage
Original value · Increase (%)
Decrease by percentage
Original value · Decrease (%)
Percentage difference
First value · Second value
Discount calculator
Original price · Discount (%)
Markup calculator
Cost · Markup (%)
Profit margin calculator
Cost · Selling price
Using this tool with confidence
How to use it
Identify the base amount before choosing a percentage tool. A percentage of an amount, a percentage change and a profit margin use different denominators. Match the question to the formula shown on this page.
Worked example
A price rising from 80 to 100 increases by 25% because (100 - 80) / 80 × 100 = 25. Falling from 100 to 80 is a 20% decrease. The same absolute change does not mean the same percentage.
Interpretation and limits
A rate rising from 5% to 6% gains one percentage point, which is a 20% relative increase. A zero starting value makes the usual relative-change formula undefined. Display rounding should not be mistaken for exact financial settlement.