Key facts
- Percentage difference = |A − B| ÷ ((A + B) ÷ 2) × 100.
- The percentage difference between 40 and 60 is 40%: the gap of 20 divided by the average of 50.
- Unlike percentage change, the answer is the same whichever value you list first.
- From 40 to 60 is a 50% increase, but from 60 to 40 is a 33.3% decrease; the percentage difference sits between them.
- Use percentage difference to compare two measurements, prices or results that have no natural “before” and “after”.
When to use percentage difference
Use it when two values are on an equal footing: two labs measuring the same sample, the price of the same item in two stores, two survey results, or two athletes’ times. If one value is clearly the reference or the earlier value, use percentage change instead. If one value is the accepted true value, use percent error.
How to use the percentage difference calculator
Enter value A and value B. The calculator returns the percentage difference, the absolute difference, the average of the two values, and the percentage change from A to B and from B to A for comparison.
Percentage difference formula
Percentage difference = |A − B| ÷ ((A + B) ÷ 2) × 100| Symbol | Meaning | ||
|---|---|---|---|
| A, B | The two values being compared | ||
| A − B | Absolute difference (always positive) | ||
| (A + B) ÷ 2 | Average of the two values |
Step-by-step examples: percentage difference
Example 1
A = 40, B = 60. Difference = 20, average = 50. Percentage difference = 20 ÷ 50 × 100 = 40%.
Example 2: two store prices
A jacket costs $100 in one store and $120 in another. Difference = $20, average = $110, percentage difference = 18.18%.
Example 3: lab measurements
Two readings of the same sample give 2.48 g and 2.52 g. Difference 0.04, average 2.50, percentage difference = 1.6%.
Percentage difference vs percentage change vs percent error
| Measure | Formula | Use it when | ||||
|---|---|---|---|---|---|---|
| Percentage difference | A − B | ÷ average × 100 | Neither value is the reference | |||
| Percentage change | (new − old) ÷ | old | × 100 | There is a before and after | ||
| Percent error | measured − true | ÷ | true | × 100 | One value is the accepted true value |
For A = 40 and B = 60: percentage difference is 40%, change from 40 to 60 is +50%, and change from 60 to 40 is −33.3%.
Limits of the formula
- When the two values have opposite signs, their average can be zero or tiny, making the percentage difference undefined or huge. Report the absolute difference instead.
- The percentage difference can never exceed 200% for positive values (when one value is zero).
- Some fields use a different denominator, such as the larger value or the smaller value. Say which one you use.
Pitfalls with percentage difference
- Using percentage difference when there is a clear starting value.
- Forgetting the absolute value and getting a negative percentage difference.
- Dividing by one of the values instead of their average.
- Comparing values measured in different units.
When to use percentage difference instead of percent change
Percent change needs a clear "before" and "after". When two values are on equal footing, such as two labs measuring the same sample or two stores’ prices for the same product, there is no natural baseline, so percentage difference divides by their average instead. Statisticians call this a symmetric relative difference, and it gives the same answer whichever value comes first.
The measure is standard in quality control. The US Environmental Protection Agency’s laboratory methods use the relative percent difference (RPD) between duplicate samples to check precision, often requiring it to be below 20% for water analyses. Engineers compare predicted and measured values the same way, and economists compare price levels between countries using purchasing power data from the World Bank’s International Comparison Program. Because it uses the average, percentage difference is always smaller than the larger of the two percent changes and never exceeds 200%. For a change with a clear starting point, use the percentage change calculator; to compare a measurement with an accepted value, the percent error calculator; and for averages in general, the average calculator.
How this calculator works
- Percentage difference = |a − b| ÷ ((a + b) ÷ 2) × 100.
- The absolute difference and the average of the two values are shown.
- Percent change from A to B and from B to A are also given, to show how they differ.
- If the average is zero the difference is undefined.
Frequently asked questions
How do I calculate percentage difference?
Divide the absolute difference by the average of the two values and multiply by 100. For 40 and 60: 20 ÷ 50 × 100 = 40%.
Is percentage difference the same as percentage change?
No. Percentage change divides by the starting value and has a direction. Percentage difference divides by the average and has no direction.
Does the order of the values matter?
No. The percentage difference between A and B is the same as between B and A.
Can percentage difference be over 100%?
Yes, up to 200% for positive numbers. The percentage difference between 1 and 9 is 8 ÷ 5 × 100 = 160%.
What is a good percentage difference for lab results?
It depends on the experiment. In many school labs, under 5% between repeated measurements is considered good agreement.
How do I calculate percentage difference in Excel?
Use =ABS(A1-B1)/AVERAGE(A1,B1) and format as a percentage.
When should I use percent error instead?
When one value is the known or accepted value, such as a textbook constant, and the other is your measurement.
What if both values are zero?
The percentage difference is undefined because the average is zero. Two zeros are simply equal.