Percent Difference Calculator
Compare two values as a percentage of their average without treating either as a reference.
What it does
Percent difference compares two values that are on equal footing. It takes the absolute gap between them and divides by their average, so neither value is treated as the original or the reference.
This tool returns the percent difference, the absolute difference and the average used in the denominator. The page opens with 80 and 60, whose difference is 20 and average is 70, giving about 28.57 percent.
The formula is symmetric, which is why it is used when comparing two measurements of the same quantity by different methods. A percent change would instead divide by a starting value and would not be symmetric.
If one value is a theoretical or accepted standard, percent error is the appropriate measure because it divides by that known value.
The result can be large when the average is close to zero, and the tool reports an error if the average is exactly zero.
How to use
- Enter the first value.
- Enter the second value.
- Read the percent difference as the main result.
- Check the absolute difference for the raw gap.
- Use the average to verify the denominator.
- Choose percent error instead when one value is a known standard.
Formula
- a, b
- The two values being compared.
- absolute difference
- The nonnegative gap between the values.
- average
- The arithmetic mean of the two values.
Because the numerator is an absolute value, the result is always nonnegative and symmetric. A zero average makes the denominator undefined, so that case is rejected rather than returning an infinite result.
Worked example
Example: 80 and 60
The page opens with a = 80 and b = 60.
- Find the absolute difference: 80 minus 60 is 20.
- Find the average: 80 plus 60 is 140, and half of that is 70.
- Divide 20 by 70, about 0.2857.
- Multiply by 100 to get 28.57 percent.
- Swapping the values gives the same result.
- The tool reports percent_difference 28.57 % and average 70.0000.
Reference table
| First value | Second value | Average | Percent difference |
|---|---|---|---|
| 80 | 60 | 70 | 28.57 % |
| 5 | 7 | 6 | 33.33 % |
Limits
- The average of the two values must not be zero.
- Inputs are limited to plus or minus 10 to the 12th power.
- The result is symmetric and always nonnegative.
- This is not the same as percent change or percent error.
Common mistakes
- Dividing by one value instead of the average.
- Forgetting the absolute value in the numerator.
- Using percent difference when one value is a known standard.
- Expecting a negative result when the first value is smaller.
- Applying the formula when the average is zero.
Try it yourself
Quick checks. Answers sit tucked under each question.
Percent difference between 5 and 7?
33.33 percent, from 2 divided by 6.
Does swapping the values change the answer?
No. The formula is symmetric.
When should I use percent error instead?
When one value is an accepted or theoretical standard.
Questions
What is percent difference?
A symmetric comparison of two values relative to their average.
What is the formula?
Absolute difference divided by the average, times 100 percent.
Is it the same as percent change?
No. Percent change divides by a starting value and is not symmetric.
Is it the same as percent error?
No. Percent error divides by a known accepted value.
Can it be negative?
No. The numerator is an absolute value.
Why is it used in laboratories?
It compares two measurements when neither is known to be the standard.
Sources
- Clemson University physics tutorial, percent error and percent difference
- Texas A&M University Corpus Christi, percentages and uncertainties
- New Mexico State University, GEAS percent difference calculation