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

  1. Find the absolute gap: |80 - 100| = 20.
  2. Find the average: (80 + 100) / 2 = 90.
  3. 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.

FirstSecondPercentage difference
8010022.222%
508046.154%
121840%
455520%
10020066.667%
40400%

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.

QuestionBaseResult
Change from 80 to 10080+25%
Change from 100 to 80100-20%
Difference between 80 and 10090 (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-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.

Open percentage change

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.

Open percentage error

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.