Percentage Difference Calculator
Difference % = |A − B| ÷ ((A + B) ÷ 2) × 100Free online tool
Find the percentage difference when neither value is considered the original baseline.
Instant calculation
Compare two non-negative values without choosing a baseline.
Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.
Tool and explanation maintained by Leslie. Report an incorrect result.
Input steps
Type the two non-negative values you want to compare.
The calculator uses the average as a neutral reference value.
Calculate to see the percentage and absolute difference.
The formula
Divide the absolute difference by the average of the two values, then multiply by 100.
Difference % = |A − B| ÷ ((A + B) ÷ 2) × 100Check the method
Each example follows the same formula used by the calculator.
20 ÷ 50 × 100 = 40%40%20 ÷ 100 × 100 = 20%20%Comparing 40 and 60 without selecting a starting value gives a gap of 20 divided by their average of 50: 40%. This differs from change from 40 to 60, which is 50%.
Two devices report 98 and 102 units. Their gap is 4 and their mean is 100, so the percentage difference is 4%. Swapping the devices gives the same answer. For quotations of 80 and 120, the gap is 40 and the mean is 100, giving 40%; the increase from the cheaper quote to the dearer one would instead be 50%.
When one measurement is a trusted reference, percentage error is more informative than dividing by the mean. When the measurements are sequential, use percentage change. Both inputs here must be non-negative; zero and a positive value give 200% difference under this formula. Two zero values do not provide a nonzero mean for the ratio. Large relative gaps near zero should be accompanied by the absolute difference.
These references explain the underlying concepts. They do not endorse this website or verify an individual result.
Method notes updated by Leslie.
Common questions
Use positive comparable measurements with the same units. A mean near zero makes the percentage unstable. For before-and-after data, percentage change normally answers the clearer question.
Divide the absolute difference between the values by their average, then multiply by 100.
Use it when comparing two values and neither one is the original or reference value.
No. The formula uses an absolute difference and the same average, so switching the values gives the same result.
Continue calculating