Percentage Difference Calculator
Percentage difference compares two numbers when neither one is the starting value. It divides the gap between them by their average, so 80 and 100 differ by 22.222%. Swapping the two numbers does not change the result. Enter both numbers below.
How to calculate percentage difference
Take the absolute difference of the two values, divide by their average, then multiply by 100.
|A - B| / ((A + B) / 2) × 100
- Find the absolute gap: |80 - 100| = 20.
- Find the average: (80 + 100) / 2 = 90.
- Divide the gap by the average and multiply by 100: 20 / 90 × 100 = 22.222%.
Absolute value removes the sign, so the order of A and B does not matter.
Why the average is the base
Percentage change needs a starting value, and percentage difference has none. When you compare two prices from two stores, or two measurements of the same thing, neither number is the original.
The average of the two numbers sits halfway between them, so it treats both fairly. That gives one answer no matter which number you list first.
Percentage difference: worked examples
Each row divides the absolute gap by the average of the pair.
| First | Second | Percentage difference |
|---|---|---|
| 80 | 100 | 22.222% |
| 50 | 80 | 46.154% |
| 12 | 18 | 40% |
| 45 | 55 | 20% |
| 100 | 200 | 66.667% |
| 40 | 40 | 0% |
Percentage difference vs percentage change for 80 and 100
The same two numbers give different percents depending on the method. Difference gives one answer. Change gives a different answer for each direction.
| Question | Base | Result |
|---|---|---|
| Change from 80 to 100 | 80 | +25% |
| Change from 100 to 80 | 100 | -20% |
| Difference between 80 and 100 | 90 (the average) | 22.222% |
How large the result can get
For two positive numbers, percentage difference stays below 200%. The result nears that ceiling when one number is tiny next to the other. For 1 and 100, the gap is 99 and the average is 50.5, so the difference is 196.04%.
Equal numbers give 0%. Two numbers that sum to zero have an average of zero, so the formula has no answer.
Not the same as
Difference has no starting value and no sign. These tools do.
- Percentage change Change divides by a starting value and reports an increase or decrease. Use it for prices, scores, or amounts that moved from A to B. Open percentage change
- X is what percent of Y? That is part over whole. 80 is 80% of 100, which is not the 22.222% difference between them. Open what-percent
- Percentage error Error divides by an accepted or true value, not by the average. Use it when one number is the standard. Open percentage error
Related tools
Percentage-difference questions
22.222%. The gap is 20 and the average is 90, so 20 / 90 × 100 = 22.222%.
25% is the percentage change from 80 to 100. Difference uses the average as the base, which is 90, not 80.
No. Absolute value makes 80 vs 100 the same as 100 vs 80.
Yes. Both names describe the same formula: the absolute gap divided by the average, times 100.
Use it when one number is the accepted or true value. Error divides by that accepted value, not by the average.
46.154%. The gap is 30, the average is 65, and 30 / 65 × 100 = 46.154%.
Not usefully. The average would be zero, and the formula would divide by zero.