Skip to content
DEVELOGCALC

Percentage Difference Calculator

Compare two values when neither one is the reference, such as two store prices or two lab measurements.

Try:

Result

Percentage difference: 40%

Percentage difference

Absolute difference
20
Average of the two
50
Calculation steps
  1. |40 − 60| = 20
  2. Average of |values|: (40 + 60) ÷ 2 = 50
  3. 20 ÷ 50 × 100 = 40%

Calculations run in your browser. Your inputs are not sent to our server.

Formula

  • Percentage difference = |A − B| ÷ ((|A| + |B|) ÷ 2) × 100
A, B
the two values being compared
|x|
absolute value

How it works

Percentage difference divides the gap between two values by their average. Because the average does not favor either value, swapping A and B gives the same answer — unlike percentage change, where the starting value is the reference.

Worked examples

Two quotes for the same job

Two contractors quote $4,200 and $4,800. The gap of $600 is divided by the average quote of $4,500.

Value A
4200
Value B
4800
Percentage difference
13.3333%

Two thermometer readings

Comparing readings from two devices where neither is known to be correct.

Value A
98.2
Value B
98.9
Percentage difference
0.7103%

Difference vs. change vs. error

  • Percentage difference: two peers, no reference value (this page).
  • Percentage change: a before and after, measured from the before value.
  • Percent error: a measured value compared with a known true value.

Limits of the formula

The result can exceed 100% when the values are far apart; its maximum is 200%, reached when one value is zero. This calculator averages absolute values so a pair with opposite signs does not divide by zero, but percentage difference is rarely meaningful across a sign change — report the absolute difference instead.

Last reviewed: