Percentage Difference Calculator: Formula, Examples and Percent Change
By FindMySum · Last reviewed
A percentage difference calculator answers a specific question: how far apart are two numbers, relative to their size, when neither of them is the starting point or the right answer? It divides the gap between the values by their average, which makes the answer the same whichever value you list first. This article explains the formula, works through the calculator's default example, and sets it against the two measures it is most often confused with: percent change and percent error.
The formula
For two values A and B:
Percentage difference = |A − B| ÷ ((A + B) ÷ 2) × 100
The numerator is the absolute difference, the size of the gap with no sign. The denominator is the average of the two values. Wolfram MathWorld gives the same definition.
With the defaults, A = 10 and B = 20:
- The difference is |10 − 20| = 10.
- The average is (10 + 20) ÷ 2 = 15.
- The percentage difference is 10 ÷ 15 × 100 = 66.67%.
Swap the values and every step gives the same numbers, so the answer is unchanged. That symmetry is the whole point of the measure.
Percentage difference versus percent change
Percent change describes movement from an old value to a new one, so it divides by the old value:
Percent change = (new − old) ÷ |old| × 100
From 10 to 20 is a +100% change, because the value doubled. From 20 back to 10 is a −50% change, because it halved. The two directions give different numbers since each divides by a different starting value. The calculator shows both percent changes next to the percentage difference so you can see the contrast with your own numbers.
Use percent change for anything with a before and after: a price this year compared with last year, a population at two censuses, a stock price at the open and the close. Use percentage difference when the two values sit side by side with no order: the price of the same item at two stores, the readings of two thermometers, the results of two lab groups.
Percentage difference versus percent error
Percent error is the third member of the family. It compares a measured value with an accepted or true value and divides by the accepted value. If one of your numbers is the reference, such as a published constant or a calibrated standard, percent error is the right choice and percentage difference would understate the role of that reference. When both numbers are just measurements, percentage difference is the fairer comparison.
Percentages of percentages
When the two values are themselves percentages, such as interest rates or unemployment rates, there are three different answers and it is worth being clear which one you mean. A rate moving from 4% to 5% has risen by 1 percentage point (a plain subtraction), by 25% as a percent change, and the two rates have a 22.2% percentage difference. Statistics Canada recommends "percentage points" for the plain subtraction so readers don't mistake it for a relative change.
Edge cases
One value is zero. The average is then half the other value, so the percentage difference is exactly 200%. That is the largest possible value when both numbers have the same sign. Percent change from zero, by contrast, is undefined, because you would divide by zero.
The values add up to zero. For 5 and −5 the average is 0 and the percentage difference is undefined. The calculator stops with a message. For data that crosses zero, report the absolute difference instead.
Negative values. The calculator divides by the absolute value of the average, so −10 and −20 give the same 66.67% as 10 and 20. When the values have opposite signs the average shrinks towards zero and the percentage difference can grow very large, which is a sign that a relative measure isn't telling you much; the absolute difference is usually more useful.
Exactness
The calculator works on the digits you type as exact fractions, so 1.5 and 1.6 give a difference of exactly 0.1 and an average of exactly 1.55 before it divides. The result, 6.4516%, is shown to six significant figures. Round it to suit the precision of the values you started with.
More questions
Why does percentage difference use the average rather than one of the values?
Because neither value has a better claim to be the base. Dividing by one of them would make the answer depend on which number you happened to write first. The average sits halfway between them, so the result is the same in both directions and treats the two values as equals.
How do I compare more than two values with a percentage?
There is no single standard. A common choice is to compare each value with the mean of all of them, giving a percent deviation for each. For spread across many values, the coefficient of variation (standard deviation divided by the mean) is the usual summary and is what quality-control and lab reports tend to quote.
Is a 50% difference the same as one value being 50% larger?
No. 3 and 5 have a percentage difference of 50%, but 5 is 66.7% larger than 3 and 3 is 40% smaller than 5. The percentage difference lies between the two percent changes because its base, the average, lies between the two values.
What percentage difference counts as significant?
That depends on how variable the values are, not on the percentage alone. Two lab results 5% apart may be well within their measurement uncertainty, while two bank balances 5% apart are simply different. Compare the difference with the uncertainty or natural variation of what you are measuring.
Do spreadsheets have a percentage difference function?
Not built in. In Excel or Google Sheets, with values in A1 and B1, use =ABS(A1-B1)/AVERAGE(A1,B1) and format the cell as a percentage. For percent change, use =(B1-A1)/ABS(A1).
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.