Difference Calculator
Calculate absolute difference and percentage difference between two values instantly. Perfect for comparing prices, scores, measurements, analytics, or performance metrics.
Calculate absolute difference and percentage difference between two values instantly. Perfect for comparing prices, scores, measurements, analytics, or performance metrics.
The Difference Calculator computes both the absolute difference and the percentage difference between two numbers. Use it to compare prices, measurements, scores, or any two values and understand both the raw gap and the relative variation.
Absolute Difference = |Value₂ − Value₁| Percentage Difference = (|Value₂ − Value₁| ÷ ((Value₁ + Value₂) ÷ 2)) × 100
The percentage difference formula uses the average of both values as the denominator — making it symmetric (the result is the same regardless of which value is entered first).
These are closely related but serve different purposes:
Example: comparing 100 and 120 gives a percentage difference of 18.18% but a percentage change of 20%.
Following the full working makes the symmetric formula easy to reproduce by hand:
Example 1 — Comparing two prices: $45 vs $55 Absolute difference = |55 − 45| = 10 Average = (45 + 55) ÷ 2 = 50 Percentage difference = (10 ÷ 50) × 100 = 20% Example 2 — Two lab readings: 6 and 8 Absolute difference = |8 − 6| = 2 Average = (6 + 8) ÷ 2 = 7 Percentage difference = (2 ÷ 7) × 100 ≈ 28.57% Example 3 — Order doesn't matter: 200 vs 180 Absolute difference = |180 − 200| = 20 Average = (200 + 180) ÷ 2 = 190 Percentage difference = (20 ÷ 190) × 100 ≈ 10.53%
In Example 3, swapping the inputs to 180 and 200 produces exactly the same numbers — proof that the result is symmetric.
A few worked pairs showing both outputs side by side:
| Value 1 | Value 2 | Absolute Diff. | Percentage Diff. |
|---|---|---|---|
| 100 | 120 | 20 | 18.18% |
| 40 | 60 | 20 | 40% |
| 25 | 75 | 50 | 100% |
| 10 | 90 | 80 | 160% |
| 150 | 150 | 0 | 0% |
Notice how the percentage can climb above 100% (as with 10 vs 90) when the gap is large relative to the midpoint of the two numbers.
For related math tools, see the Percentage Calculator to find what percent one value is of another, or the Average Calculator to find the mean across a data set.
Subtract one value from the other. The absolute difference always gives a positive result: |Value₂ − Value₁|. For example, |120 − 100| = 20, and |100 − 120| = 20 — order doesn't matter.
Percentage Difference = (|Value₂ − Value₁| ÷ ((Value₁ + Value₂) ÷ 2)) × 100. This uses the average of both values as the denominator, so the result is symmetric regardless of which value comes first.
Percentage difference is symmetric — it uses the average of both values and doesn't assume one is the 'original.' Percentage change is directional — it divides by the original (old) value to measure growth or decline. For 100 vs 120: percentage change = 20%, but percentage difference = 18.18%.
Yes. If two values are far apart relative to their average, percentage difference can exceed 100%. For example, 10 and 90 have an average of 50 and an absolute difference of 80, producing a percentage difference of 160%. Note that −50 and 50 do not give a finite percentage at all — their average is 0, so the percentage difference is undefined.
Use absolute difference when the raw unit matters (e.g., '$20 cheaper'). Use percentage difference when comparing values of different magnitudes, or when you want a unit-free relative comparison (e.g., '18% different').
If both values are 0, the denominator becomes 0 and percentage difference is undefined. The calculator handles this gracefully without crashing.
Yes. Negative values and decimals are fully supported. The absolute value in the formula ensures the result is always positive regardless of sign.
No. Both the absolute difference and the percentage difference are symmetric. Entering 100 and 120 gives the same results as entering 120 and 100, because the formula uses an absolute value on top and the average of both numbers on the bottom.
It means the two values are identical. For example, 150 and 150 have an absolute difference of 0 and a percentage difference of 0%. Any non-zero result tells you how far apart the two values are relative to their midpoint.
Find the absolute difference (subtract and drop the sign), divide it by the average of the two numbers, then multiply by 100. For 6 and 8: the difference is 2, the average is 7, so 2 ÷ 7 × 100 = 28.57%.
Dividing by the average treats both numbers as equal partners, so neither is assumed to be the 'correct' or 'original' value. That makes the comparison fair and symmetric — ideal when comparing two independent readings, prices, or measurements where there is no obvious baseline.
A difference subtracts (8 − 6 = 2, an absolute gap), while a ratio divides (8 ÷ 6 ≈ 1.33, meaning one value is about 1.33 times the other). Use a difference for 'how much bigger' and a ratio for 'how many times bigger.'