๐ Percentage Difference Calculator: Compare Two Values
By Shihab Mia ยท Updated 2026-07-03
Enter two values to compare. The percentage difference is symmetric, so the order of A and B does not change it.
This percentage difference calculator measures how far apart two values are as a share of their average, using the symmetric formula |A - B| divided by ((|A| + |B|) / 2), times 100. Because it divides by the average rather than by one starting value, the answer stays the same whichever number you call A and whichever you call B. Enter any two numbers and you instantly get the percentage difference, the absolute difference, and, for reference, the one directional percentage change from A to B.
What is the Percentage Difference Calculator?
Percentage difference tells you how big the gap between two numbers is relative to their typical size. This percent difference calculator on this page uses the standard symmetric method, and the percentage difference formula is the same one taught in science classes: take the absolute difference between the two values, divide it by their average, and multiply by 100. Written out, that is |A - B| / ((|A| + |B|) / 2) x 100. The division by the average is the key idea. It treats both numbers as equal partners, so neither one is privileged as the baseline, and that is exactly what makes the result symmetric.
This is the single biggest thing people get wrong, so it is worth being explicit, and it is the heart of the percent difference vs percentage change question. Percentage difference is not the same as percentage change. Percentage change has a clear before and after: it measures growth or shrinkage from a starting value, so (B - A) / A x 100. If a price rises from 40 to 60, that is a +50% change relative to the 40 you started with. But the percentage difference between 40 and 60 uses their average of 50 as the reference, giving 20 / 50 x 100 = 40%. Same two numbers, two different questions, two different answers. Use percentage change when one value is a known starting point and the other is where it ended up. Use the percentage difference calculator when neither value is a baseline and you simply want to know how far apart two measurements are.
The symmetry is not just a mathematical nicety, it is what the tool is for. Suppose two lab instruments read a sample as 9.5 and 10.5. It would be arbitrary to call either reading the true one, so you should not divide by either in particular. Dividing by the average of 10 gives a percentage difference of 1 / 10 x 100 = 10%, and you get that same 10% no matter which instrument you list first. This is why scientists call it relative percent difference and use it to check agreement between duplicate measurements, and why it appears in quality control, chemistry and metrology far more often than plain percentage change.
There is one edge case the formula has to handle: what happens when both values are zero. Then |A| + |B| is zero, the average is zero, and dividing by it is undefined. Mathematically the two numbers are identical, so the honest answer is that there is no difference at all. This percentage difference calculator reports 0% in that situation and shows a short note explaining why, rather than printing an error or a meaningless infinity. If only one value is zero the calculation still works normally, because the average is still positive.
Reading the four results together gives you the full picture. The percentage difference is the headline symmetric figure. The absolute difference, |A - B|, is the raw gap in the original units, which matters when the scale itself is meaningful. The average of A and B is shown so you can see exactly what the percentage was measured against. And the percentage change from A to B is included for reference, because in many real problems you actually wanted change and reached for difference by mistake, or you want to compare the two side by side. Seeing them next to each other makes the distinction concrete.
One caution about interpretation: because percentage difference divides by an average, it can behave in surprising ways when the two numbers have opposite signs or when one is very small. If A is +10 and B is -10, the absolute difference is 20 but the average of the magnitudes is also 10, giving a 200% percentage difference, which is correct but can look large at a glance. For values close to zero the percentage can swing widely for tiny absolute changes. When you know one number is a genuine reference point, percentage change is usually the clearer measure; when the two are peers, the symmetric percentage difference is the right tool, and this calculator gives you both so you never have to guess. If you ever need to know how to calculate percentage difference by hand, the three steps above are all there is to it, and finding the percentage difference between two values is something you can now do in seconds either on paper or with the tool.
When to use it
- Checking how closely two lab or sensor readings agree, where neither is the official reference value (relative percent difference).
- Comparing two prices, salaries or quotes when you just want the gap between them, not growth from one to the other.
- Science and chemistry homework that asks for the percentage difference between an experimental and a theoretical value.
- Quality control, comparing a duplicate sample against its pair to see whether the two results are within tolerance.
- Comparing two measurements of the same thing (two scales, two rulers, two estimates) to judge how consistent they are.
- Quickly seeing both the symmetric percentage difference and the one directional percentage change so you pick the right one.
How to use the Percentage Difference Calculator
- Type your first number into the Value A box.
- Type your second number into the Value B box.
- Read the percentage difference in the first result card, calculated symmetrically as |A - B| divided by the average.
- Check the absolute difference and the percentage change from A to B in the other cards if you need them.
- Use the Swap button to confirm the percentage difference does not change when A and B trade places.
- Press Copy result to put all three figures on your clipboard for a report or spreadsheet.
Formula & method
Worked examples
Find the percentage difference between 40 and 60.
- Absolute difference: |40 - 60| = 20.
- Average of the values: (40 + 60) / 2 = 50.
- Divide and multiply by 100: 20 / 50 x 100 = 40%.
- Note that the percentage change from 40 to 60 is (60 - 40) / 40 x 100 = 50%, which is different.
Result: Percentage difference = 40% (percentage change from 40 to 60 = 50%)
Two instruments read a sample as 9.5 and 10.5. How well do they agree?
- Absolute difference: |9.5 - 10.5| = 1.
- Average: (9.5 + 10.5) / 2 = 10.
- Percentage difference: 1 / 10 x 100 = 10%.
- Swapping the readings gives the same 10%, which is why this is used to compare duplicate measurements.
Result: Relative percent difference = 10%
Compare 120 and 150.
- Absolute difference: |120 - 150| = 30.
- Average: (120 + 150) / 2 = 135.
- Percentage difference: 30 / 135 x 100 = 22.22%.
Result: Percentage difference = 22.22%
Percentage difference vs percentage change for the same pairs of values
| Value A | Value B | Percentage difference (symmetric) | Percentage change A to B |
|---|---|---|---|
| 40 | 60 | 40% | +50% |
| 60 | 40 | 40% | -33.33% |
| 100 | 110 | 9.52% | +10% |
| 9.5 | 10.5 | 10% | +10.53% |
| 120 | 150 | 22.22% | +25% |
| 200 | 100 | 66.67% | -50% |
How to choose between the two measures
| Situation | Use this measure | Why |
|---|---|---|
| One value is a known starting point | Percentage change | You want growth or drop relative to the baseline. |
| Neither value is a baseline | Percentage difference | Both numbers are equal peers, so divide by their average. |
| Comparing two lab or sensor readings | Percentage difference | Symmetric, so order of the readings does not matter. |
| Tracking a price over time | Percentage change | The earlier price is the natural reference. |
Common mistakes to avoid
- Confusing percentage difference with percentage change. Percentage change divides by the starting value A; percentage difference divides by the average of A and B. For 40 and 60 that is 50% versus 40%. Decide first whether one value is a baseline.
- Dividing by A instead of the average. If you divide the absolute difference by just one of the two values, the answer changes when you swap them. The whole point of percentage difference is that it is symmetric, so you must divide by the average.
- Forgetting the absolute value in the numerator. Percentage difference is always reported as a positive number because it measures a gap, not a direction. Take |A - B|, so the sign does not flip based on order.
- Panicking at the both zero case. If A and B are both 0, the average is 0 and you cannot divide by it. The numbers are identical, so the difference is 0%. This tool returns 0% rather than an error.
- Ignoring what happens near zero or with opposite signs. When a value is close to zero, a tiny absolute change can produce a huge percentage difference. With opposite signs the figure can exceed 100%. Both are mathematically correct but worth reading carefully.
- Rounding too early. Rounding A, B or the average before the final step introduces error. Do the division first and round only the final percentage.
Glossary
- Percentage difference
- A symmetric measure of the gap between two values, equal to the absolute difference divided by their average, times 100.
- Percentage change
- The change from a starting value A to a later value B relative to A: (B - A) / A x 100. Not symmetric.
- Absolute difference
- The size of the gap between two numbers ignoring sign, written |A - B|.
- Average (mean)
- The reference value for percentage difference: (|A| + |B|) / 2, the midpoint of the two magnitudes.
- Symmetric
- A calculation whose result does not change when you swap the two inputs. Percentage difference is symmetric; percentage change is not.
- Relative percent difference
- The name scientists give to percentage difference when comparing two measurements of the same quantity.
- Baseline
- A reference value that a change is measured against. Percentage change needs one; percentage difference does not.
- Absolute value
- The non-negative size of a number, written with vertical bars, so |-5| = 5.
Frequently asked questions
What is the formula for percentage difference?
Percentage difference = |A - B| / ((|A| + |B|) / 2) x 100. You take the absolute difference between the two values, divide by their average, and multiply by 100. This percentage difference calculator does all three steps and shows them.
Is percentage difference the same as percentage change?
No. Percentage change measures growth from a starting value A using (B - A) / A x 100, so it depends on which value is first. Percentage difference divides by the average of both values, so it is symmetric and the same either way. This tool shows both.
Why does the percentage difference calculator divide by the average?
Dividing by the average treats both numbers as equal peers, with neither one privileged as a baseline. That is what makes the result symmetric, so swapping A and B gives the same answer. It is the standard method for comparing two measurements.
What is the percentage difference between 40 and 60?
The absolute difference is 20, the average is 50, so the percentage difference is 20 / 50 x 100 = 40%. By contrast the percentage change from 40 to 60 is 50%, which is a different question.
Can the percentage difference be more than 100%?
Yes. When the two values have opposite signs the figure can exceed 100%. For example +10 and -10 have an absolute difference of 20 and an average magnitude of 10, giving 200%. It is unusual but mathematically correct.
What happens if both values are zero?
If A and B are both zero, their average is zero and dividing by it is undefined. Since the two numbers are identical, the percentage difference is 0%. The calculator reports 0% and explains why instead of showing an error.
Which should I use, percentage difference or percentage change?
Use percentage change when one value is a clear starting point, such as an old price. Use percentage difference when neither value is a baseline and you simply want the gap between two peers, such as two lab readings.
Does the order of A and B matter?
For the percentage difference, no, because it is symmetric. Use the Swap button to confirm the result stays the same. For the percentage change shown for reference, the order does matter because it is measured relative to A.
How do I calculate percentage difference between two numbers by hand?
Subtract the two numbers and take the absolute value, add the two numbers and divide by 2 to get the average, then divide the absolute difference by the average and multiply by 100. This calculator automates those exact steps.
Is this percentage difference calculator free to use?
Yes, it runs entirely in your browser at no cost, with nothing to install and no sign up. Your numbers never leave your device.