Percentage Difference Formula vs Percent Change and Error
The percentage difference formula divides the gap between two values by their average. See worked examples and when to use percent change or percent error.
Updated
The percentage difference between two values is the size of the gap between them divided by their average, times 100: |a − b| ÷ ((a + b) ÷ 2) × 100. For 40 and 50 that is 10 ÷ 45 × 100 = 22.22%. Use it when neither number is the starting point. If one value is an earlier figure, use percent change. If one is the accepted true value, use percent error.
The percentage difference formula
- Subtract one value from the other and drop the sign. This is the absolute difference.
- Add the two values and divide by 2 to get their average.
- Divide the difference by the average.
- Multiply by 100.
Worked example: two shops sell the same headphones for 40 and 50 dollars.
- Difference:
50 − 40 = 10. - Average:
(40 + 50) ÷ 2 = 45. - Percentage difference:
10 ÷ 45 × 100 = 22.22%.
Swapping the two prices changes nothing, because the difference is taken as an absolute value and the average is the same either way. That symmetry is the whole point of the formula.
Why divide by the average
With percent change there is an obvious baseline: the old value. With two shop prices, two people's heights or two cities' populations, there is no old value. If you pick one as the base you get two competing answers:
- 50 is 25% more than 40, since
10 ÷ 40 = 0.25. - 40 is 20% less than 50, since
10 ÷ 50 = 0.20.
Both are correct, and each depends on an arbitrary choice. Dividing by the average, 45, gives a single figure that sits between the two and treats both values equally.
Percent difference vs percent change vs percent error
| Measure | Formula | Divides by | Has a sign | Use when |
|---|---|---|---|---|
| Percent difference | abs(a − b) ÷ ((a + b) ÷ 2) × 100 | Average of both | No | Two values of equal standing |
| Percent change | (new − old) ÷ old × 100 | Old value | Yes | A value moved over time |
| Percent error | abs(measured − accepted) ÷ abs(accepted) × 100 | Accepted value | Usually no | A measurement against a known value |
Here abs means the absolute value, the number without its sign.
The same pair of numbers gives three different results depending on the question:
| Values | Question | Answer |
|---|---|---|
| 40 and 50 | Percentage difference between them | 22.22% |
| 40 then 50 | Percent change from 40 to 50 | +25% |
| 50 then 40 | Percent change from 50 to 40 | −20% |
| Measured 40, accepted 50 | Percent error | 20% |
| Measured 50, accepted 40 | Percent error | 25% |
A quick way to choose:
- Is there a before and an after? Percent change. The guide on how to calculate percentage change covers signs, negative values and percentage points.
- Is one value the correct or reference figure? Percent error.
- Are the two values peers? Percent difference.
More percentage difference examples
Two salaries. One offer is 58,000 and another is 64,000. Difference 6,000, average 61,000. 6,000 ÷ 61,000 × 100 = 9.84%.
Two test runs. A page loads in 1.8 seconds on one server and 2.4 on another. Difference 0.6, average 2.1. 0.6 ÷ 2.1 × 100 = 28.57%.
Two populations. Towns of 12,000 and 30,000 people. Difference 18,000, average 21,000. 18,000 ÷ 21,000 × 100 = 85.71%.
Far apart values. 10 and 50. Difference 40, average 30. 40 ÷ 30 × 100 = 133.33%.
For two positive numbers the result can never go past 200%. As one value shrinks toward zero the difference and the average both approach simple multiples of the other value, and at exactly zero the formula gives a ÷ (a ÷ 2) × 100 = 200%.
Percent error
Percent error measures how far a measured or estimated value is from an accepted one. The accepted value is the baseline, so it goes on the bottom:
percent error = |measured − accepted| ÷ |accepted| × 100
A student measures gravitational acceleration as 9.6 m/s² in a lab. The accepted value is 9.81 m/s².
- Difference:
9.81 − 9.6 = 0.21. - Divide by the accepted value:
0.21 ÷ 9.81 = 0.0214. - Percent error: 2.14%.
Most textbooks take the absolute value so the error is always positive. Some fields keep the sign to show whether the measurement was too high or too low. In that convention the example above would be −2.14%, since the measured value is below the accepted one. Check which version your course or lab manual expects.
An estimate works the same way. If you budget 1,200 for a trip and it costs 1,350, the error of your estimate is 150 ÷ 1,350 × 100 = 11.11%, because the actual cost is the reference.
Common mistakes
- Using percent difference for growth. If revenue went from 40 to 50, report a 25% increase, not 22.22%. Time gives you a baseline, so use it.
- Dividing percent error by the measured value instead of the accepted one.
- Forgetting to average. Dividing the difference by the sum of the two values gives exactly half the correct percentage difference.
- Using the formula with a negative value. If the two numbers have opposite signs the average can be near zero and the result explodes. Percentage difference is meant for quantities that are both positive.
- Comparing two percentages with it. For the gap between a 4% rate and a 5% rate, state percentage points.
Using the calculator
The Percentage Calculator has three panels: "What is X% of Y?", "X is what % of Y?" and "Percentage change from X to Y". It does not have a separate percentage difference panel, but the second panel does the final step.
- Work out the absolute difference and the average by hand. For 40 and 50 these are 10 and 45.
- In "X is what % of Y?", enter the difference as X and the average as Y.
- The result, 22.2222%, is the percentage difference.
For percent error, use the change panel: enter the accepted value in From and the measured value in To, then ignore the minus sign if your convention uses absolute error. From 9.81 to 9.6 returns −2.1407%.
For percent change the same panel gives the answer directly, with increases in green and decreases in red.
Related percentage guides
- Parts, wholes and the three basic formulas: how to calculate percentage.
- Raises and price rises: how to calculate percentage increase.
- Discounts and sale prices: how to calculate percent off.
Try it
Open the Percentage Calculator, enter 10 and 45 in the "X is what % of Y?" panel, and confirm that 40 and 50 differ by 22.2222%.