Percentage difference compares two values when neither one is the obvious starting point: two quotes for the same job, two lab measurements of the same sample, or the price of one item at two stores. It divides the gap by the average of the two numbers, so you get the same answer whichever value you type first.
How to use the Percentage Difference calculator
- Enter one measurement in First value and the other in Second value. Order does not matter.
- Both values must be zero or positive, and they cannot both be zero.
- Read the percentage. It is always zero or positive, because the formula uses the size of the gap, not its direction.
- If one value really is the baseline, such as last year's figure, use the Percentage Change Calculator instead.
How the percentage difference calculation works
How the average-based formula works
The calculator takes the absolute gap |a − b|, divides it by the midpoint (a + b) ÷ 2, and multiplies by 100. For 80 and 120, the gap is 40 and the midpoint is 100, so the difference is 40%. Measured against 80 alone, the same gap is 50%; measured against 120, it is about 33.3%. Using the midpoint sits between those two and treats both values equally.
Because the denominator is an average, the result can never exceed 200%. That ceiling is reached when one value is zero and the other is positive: the gap equals the larger value, the average is half of it, and the ratio is 2.
Where you will see this measure
Science classes use it to compare two trial results when neither is the accepted value. If you do have an accepted or theoretical value, the comparison you want is percent error: |measured − accepted| ÷ accepted × 100, which divides by the accepted value instead of the average.
Shoppers and analysts use it to compare quotes, salaries in two cities, or survey results from two groups. Some textbooks and websites use other definitions of ‘percentage difference’, such as dividing by the larger or smaller value. If a homework answer does not match, check which denominator the course expects.
Reading the size of the result
The same absolute gap gives a smaller percentage when the values are large. A $40 gap between $380 and $420 quotes is 10%, but a $40 gap between $60 and $100 is 50%. Report the dollar or unit gap next to the percentage so readers can judge whether the difference matters in practice.
Rounding also matters when values are close. Two readings of 10.04 and 10.06 differ by about 0.2%, but if they are first rounded to 10.0 and 10.1, the difference jumps to about 1%. Run the comparison on the unrounded figures and round only the final percentage.
Worked examples
First value: 380 · Second value: 420
- Gap: |380 − 420| = 40.
- Average: (380 + 420) ÷ 2 = 400.
- Ratio: 40 ÷ 400 = 0.10.
- Multiply by 100: the quotes differ by 10%.
Result: 10 %
First value: 9.8 · Second value: 10.3
- Gap: 10.3 − 9.8 = 0.5 g.
- Average: (9.8 + 10.3) ÷ 2 = 10.05 g.
- Ratio: 0.5 ÷ 10.05 = 0.04975124…
- Multiply by 100: about 4.975124%, or roughly 5%.
Result: 4.975124 %
Assumptions and limits
Symmetric comparison for non-negative quantities; not percentage change.
Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.
Frequently asked questions
What is the formula for percentage difference?
Percentage difference = |a − b| ÷ ((a + b) ÷ 2) × 100. For 50 and 70, the gap is 20 and the average is 60, so the difference is 20 ÷ 60 × 100 ≈ 33.3%.
When should I use percentage difference instead of percentage change?
Use percentage difference when the two values are peers with no before-and-after order, such as two brands or two measurements. Use percentage change when one value is clearly the starting point, such as last month's price. The two methods give different numbers for the same pair.
Why is my percentage difference different from percent error?
Percent error divides by the accepted or true value, while percentage difference divides by the average of the two numbers. A measured 9.5 against an accepted 10 is a 5% error but about a 5.13% difference.
Can percentage difference be negative?
Not with this formula, because it uses the absolute value of the gap. If you need to show which value is higher, state it in words or use percentage change, which keeps the sign.
Why can't I enter negative numbers?
With a negative and a positive value, the average can be close to zero or even zero, which produces huge or undefined percentages that mean little. The calculator limits inputs to non-negative quantities, where the average is a sensible reference.