The percentage difference formula
Percentage difference divides the absolute difference between two values by the average of those values, then multiplies by 100. Because it uses the mean as the denominator, the result is the same regardless of which value is listed first.
For example, comparing a price of 80 and a price of 100: the absolute difference is 20, the average is 90, and the percentage difference is 20 / 90 x 100, which is approximately 22.2%.
Percentage difference = (|A - B| / ((A + B) / 2)) x 100
The absolute difference divided by the mean of the two values, expressed as a percentage.