Percent Difference Calculator

Compare two values that have no “before” and “after” — the percent difference uses their average as the base.

Percent difference40%difference 20 · average 50

Step by step

  1. Difference: |40 − 60| = 20
  2. Average: (40 + 60) ÷ 2 = 50
  3. 20 ÷ 50 × 100 = 40%

Percent difference formula

percent difference = |a − b| ÷ ((a + b) ÷ 2) × 100

Because the base is the average, the answer is the same whichever value you put first. Use it to compare two measurements, two prices from different stores or two lab results. If one value is the “correct” one, use percent error; if one came first, use percent change.

More percentage calculators

Frequently asked questions

What is the percent difference formula?

|a − b| divided by the average of a and b, times 100.

What is the percent difference between 40 and 60?

|40 − 60| ÷ 50 × 100 = 40%.

Why is percent difference different from percent change?

Percent change divides by the old value (40 → 60 is +50%); percent difference divides by the average (40%).

Last reviewed November 2026 · Formulas and steps shown with every result.