Percentage Difference Calculator
Calculate the percentage difference between two numbers using the average-based formula. Also shows the % change each way. Free and instant.
Percentage difference between 40 and 60
40%
The percentage difference between 40 and 60 is 40%.
- Absolute difference20
- Average of the two50
- % change 40 → 6050%
Show the working
- Find the absolute difference: |40 − 60| = 20
- Find the average: (40 + 60) ÷ 2 = 50
- Divide the difference by the average: 20 ÷ 50 = 0.4
- Multiply by 100: 40%
Quick answerPercentage difference = |A − B| ÷ ((A + B) ÷ 2) × 100. It compares two values on equal terms by dividing the gap by their average. For 40 and 60: 20 ÷ 50 × 100 = 40% difference.
Formula
- Percentage difference
% difference = |A − B| ÷ ((A + B) ÷ 2) × 100
Worked examples
- Two quotes for a bathroom: $18,500 and $22,000.3,500 ÷ 20,250 × 100 = 17.28% difference
- Two lab measurements: 9.81 and 9.75.0.06 ÷ 9.78 × 100 = 0.61% difference
When to use percentage difference
Use percentage difference when neither number is the “original” — comparing two products, two suburbs’ median prices, or two experimental results. Because it divides by the average, swapping A and B gives the same answer.
If one value clearly came first, use percentage change. The calculator above shows both so you can choose.
Frequently asked questions
How do you calculate the percentage difference between two numbers?
Subtract one from the other and ignore the sign, divide by the average of the two numbers, then multiply by 100.
Is percentage difference the same as percentage error?
No. Percentage error compares a measured value with a known true value: |measured − true| ÷ true × 100. That’s a percentage change calculation with the true value as the base.