Percentage difference between two numbers
The percentage difference compares two values without treating either one as the reference point — useful when neither number is a “before” or “after”, such as comparing two measurements, two prices, or two test results. Because it is symmetric, the order you enter the numbers does not change the answer.
How it works
The calculator divides the absolute difference by the average of the two numbers, then scales to a percentage:
percentage difference = |A − B| ÷ ((A + B) ÷ 2) × 100
Using the average (rather than one of the values) is what makes the result the same whichever way round you enter the numbers, and it is always positive. Use percentage change instead when one value is clearly the original.
Example
Compare A = 40 and B = 60:
- Absolute difference: |40 − 60| = 20
- Average: (40 + 60) ÷ 2 = 50
- Percentage difference: 20 ÷ 50 × 100 = 40%
| A | B | Average | % difference |
|---|---|---|---|
| 40 | 60 | 50 | 40% |
| 90 | 100 | 95 | 10.53% |
| 8 | 8 | 8 | 0% |
Everything here runs in your browser — nothing is uploaded.