📊 Percent Difference Calculator
By ToolNimba Math Team · Updated 2026-06-19
Percent difference = |a - b| ÷ ((a + b) ÷ 2) × 100. Order does not matter, so swapping a and b gives the same result.
Percent difference tells you how far apart two values are, measured against their average. Unlike percent change, neither value is the "starting point", so the two are treated as equals and the order does not matter. Enter your two numbers and this calculator returns the percent difference along with the raw difference and the average it is measured against.
What is the Percent Difference Calculator?
Percent difference is a way to compare two values when neither one is more correct or more original than the other. You take the size of the gap between them, |a - b|, and express it as a percentage of their average, (a + b) ÷ 2. Because the average sits exactly between the two numbers, the result is symmetric: comparing 40 with 60 gives the same percent difference as comparing 60 with 40. That symmetry is the whole point of the measure.
This is different from percent change, which is what most people first reach for. Percent change uses one value as a fixed baseline and divides the gap by that baseline alone, so it answers "how much did this grow or shrink relative to where it started". Going from 40 to 60 is a 50% increase, but going from 60 to 40 is a 33.3% decrease, even though it is the same pair of numbers. Percent difference avoids that asymmetry by dividing by the average instead of by one endpoint, which is why it always lands between the two percent-change figures (here, 40%).
Use percent difference when the two values have equal standing: two independent lab measurements of the same quantity, two suppliers quoting a price, this year and last year treated as peers rather than before-and-after. Use percent change when there is a clear before and after and you care about direction. One edge case to watch: if the two values are equal and opposite (such as 5 and -5) their average is 0, and dividing by zero leaves the percent difference undefined.
When to use it
- Comparing two independent measurements of the same quantity in a lab or quality-check setting.
- Seeing how far two price quotes, bids, or estimates sit from each other without treating one as the baseline.
- Checking the spread between two readings, sensors, or instruments that should agree.
- Reporting the gap between two figures when neither is the official "before" value.
How to use the Percent Difference Calculator
- Enter your first value (a) in the first field.
- Enter your second value (b) in the second field.
- Read off the percent difference, the absolute difference, and the average.
- Use Swap to confirm the result is unchanged, since order does not matter.
Formula & method
Worked examples
You compare the values 40 and 60.
- Absolute difference = |40 - 60| = 20
- Average = (40 + 60) ÷ 2 = 50
- Percent difference = 20 ÷ 50 × 100
- Percent difference = 0.4 × 100 = 40%
Result: Percent difference = 40% (compared with a 50% increase or 33.3% decrease as percent change)
Two lab measurements read 9.74 and 9.80.
- Absolute difference = |9.74 - 9.80| = 0.06
- Average = (9.74 + 9.80) ÷ 2 = 9.77
- Percent difference = 0.06 ÷ 9.77 × 100
- Percent difference = 0.006141 × 100 = 0.6141%
Result: Percent difference ≈ 0.61%, showing the two readings agree closely
Percent difference for sample value pairs
| Value a | Value b | |a - b| | Average | Percent difference |
|---|---|---|---|---|
| 40 | 60 | 20 | 50 | 40% |
| 8 | 10 | 2 | 9 | 22.22% |
| 50 | 60 | 10 | 55 | 18.18% |
| 90 | 100 | 10 | 95 | 10.53% |
| 100 | 200 | 100 | 150 | 66.67% |
Percent difference vs percent change for the same pair
| From | To | Percent difference | Percent change |
|---|---|---|---|
| 40 | 60 | 40% | +50% |
| 60 | 40 | 40% | -33.33% |
| 100 | 120 | 18.18% | +20% |
| 120 | 100 | 18.18% | -16.67% |
Common mistakes to avoid
- Confusing percent difference with percent change. Percent change divides by one fixed baseline and depends on direction, so 40 to 60 is +50% but 60 to 40 is -33.3%. Percent difference divides by the average and is symmetric, giving 40% either way. Pick the one that matches your question.
- Dividing by one of the values instead of the average. The denominator in percent difference is the average of the two values, (a + b) ÷ 2, not a or b on its own. Dividing by a single value turns it into percent change and breaks the symmetry.
- Expecting a sign or direction. Percent difference uses the absolute gap, so it is always zero or positive and never tells you which value is larger. If you need direction (up or down), use a percent change calculator instead.
- Overlooking the undefined case. When the two values are equal and opposite, such as 5 and -5, their average is 0 and the percent difference is undefined because you cannot divide by zero. The plain difference still applies.
Glossary
- Percent difference
- The absolute gap between two values expressed as a percentage of their average, used when neither value is a baseline.
- Percent change
- The gap between two values expressed as a percentage of a fixed starting value, which depends on direction and on which value is the baseline.
- Absolute difference
- The size of the gap between two values, |a - b|, ignoring which one is larger.
- Average (mean)
- The midpoint of the two values, (a + b) ÷ 2, used as the denominator so the result is symmetric.
- Symmetric
- A measure that returns the same answer whichever value you list first, because it does not single out a baseline.
Frequently asked questions
What is the formula for percent difference?
Percent difference = |a - b| ÷ ((a + b) ÷ 2) × 100. You take the absolute gap between the two values and divide it by their average, then multiply by 100. Because the denominator is the average, the answer is the same whichever value you put first.
How is percent difference different from percent change?
Percent change divides by one value treated as the starting baseline, so it depends on direction: 40 to 60 is a 50% increase but 60 to 40 is a 33.3% decrease. Percent difference divides by the average of the two values, so it is symmetric and gives 40% either way. Use percent difference when neither value is the baseline.
Can percent difference be negative?
No. The formula uses the absolute difference |a - b|, which is never negative, so the result is always zero or positive. It tells you how far apart the values are but not which one is larger. If you need the direction, use percent change instead.
Why divide by the average instead of one value?
Dividing by the average treats the two values as equals and keeps the result symmetric, so swapping a and b does not change the answer. If you divided by just one value, the result would change depending on which value you chose, which is the behaviour of percent change rather than percent difference.
What happens when the two values are the same?
If a and b are equal, the absolute difference is 0, so the percent difference is 0%. Two identical readings have no difference between them, which the formula reflects directly.
When is percent difference undefined?
It is undefined when the average of the two values is 0, which happens only when they are equal and opposite (for example 5 and -5). Dividing by zero has no value, so the calculator shows a dash for the percentage while still reporting the absolute difference.