Percentage Difference Calculator

Compare two values and measure the difference between them as a percentage.

The first value to compare, like 40.

The second value to compare, like 60.

Try

Result

You entered∣40−60∣\left|40 - 60\right|

40%\displaystyle 40\%

Percent

40%\displaystyle 40\%

Decimal

0.4\displaystyle 0.4

Fraction

25\displaystyle \frac{2}{5}
Show the work
  1. Absolute difference

    The difference dd is the distance between the two values, so take the absolute value. Here a=40a = 40 and b=60b = 60.

    d=∣a−b∣=∣40−60∣=20\begin{aligned} d &= \left|a - b\right| \\ &= \left|40 - 60\right| \\ &= 20 \end{aligned}
  2. Average of two values

    The average mm uses the absolute values so that it is positive; percentage difference compares the gap with this average, not with either value alone.

    m=∣a∣+∣b∣2=(40+60)÷2=50\begin{aligned} m &= \frac{\left|a\right| + \left|b\right|}{2} \\ &= \left(40 + 60\right) \div 2 \\ &= 50 \end{aligned}
  3. Percentage difference

    Divide the difference dd by the average mm and multiply by 100100 to find the percentage PP, because a percent is a number of hundredths.

    P=dm×100%=20÷50×100%=40%\begin{aligned} P &= \frac{d}{m} \times 100\% \\ &= 20 \div 50 \times 100\% \\ &= 40\% \end{aligned}
  4. Result

    So the percentage difference between 4040 and 6060 is 40%40\%.

Worked examples