Percent difference calculator
Percent difference compares two values that have no before and after. This calculator shows it beside the percent change in each direction and the percent error, so you can see which one your question needs.
- Order does not matter: swap the values and the answer stays
- Every common denominator, with its result
- Percent error for measured against accepted
Percent difference vs percent change
Percent change has a direction: it measures from an old value to a new one, and dividing by the old value makes the order matter. Percent difference has none: it measures the gap between two values against their average, so swapping them changes nothing.
With 10 and 6, the percent difference is 50.00%. The percent change is -40.00% from 10 to 6, but +66.67% from 6 to 10. Three honest numbers, three different questions:
- Percent change when one value came first: last year and this year, the price before and after.
- Percent difference when the two are peers: two lab measurements, two shops' prices, two estimates.
- Percent error when one value is accepted as correct: your measurement against a reference value.
The formula
The standard formula is |a - b| / ((a + b) / 2) x 100: the absolute difference divided by the average. Clemson University's physics lab tutorial describes it the same way, as the absolute difference of the two measured values divided by their average, for when there is no accepted value to compare against.
For 10 and 6: the difference is 4, the average is 8, and 4 / 8 x 100 = 50.00%. In a spreadsheet: =ABS(A2-B2)/AVERAGE(A2,B2) (decimal comma locales: =ABS(A2-B2)/AVERAGE(A2;B2)).
Other denominators you will meet
Not every website divides by the average, and that is why two calculators can disagree on the same numbers. The result panel lists the common versions for your inputs. For 10 and 6:
| Divide by | Result | When it appears |
|---|---|---|
| Average (standard) | 50.00% | Science teaching and most textbooks |
| Average of the sizes | 50.00% | When either value can be negative |
| Larger value | 40.00% | Some business tools |
| Sum, not halved | 25.00% | A slip that halves the answer |
None is wrong if it is labeled. The trouble starts when a figure is quoted without saying which it is.
Percent error
When one value is the accepted or true value, use percent error: |measured - accepted| / |accepted| x 100. A student who measures gravity as 9.79 against a reference of 9.81 has a percent error of 0.20%. Two students who measure 9.79 and 9.83 and want to know how well they agree have a percent difference of 0.41%. The calculator shows percent error treating your second value as accepted.
When the average is zero, or the signs differ
If the two values cancel out, such as 5 and -5, their average is zero and the standard formula has no answer. Dividing by the average of their sizes instead gives 200.00%, and the calculator offers that version with a label. With one negative and one positive value, a percent difference rarely means much; the absolute gap, 10 here, is often the better thing to report. The guide to negative numbers and zero covers the same problem for percent change.
Questions people ask
Is percent difference always positive?
Yes. It uses the absolute difference, so it is zero or more. A sign belongs to percent change, which has a direction.
Why do two calculators give different percent differences?
They divide by different things: the average, the larger value or the sum. Check which denominator each one uses; this page shows them side by side.