Free online tool

Percentage Difference Calculator

Find the percentage difference when neither value is considered the original baseline.

Instant calculation

Calculate percentage difference

Compare two non-negative values without choosing a baseline.

Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.

Tool and explanation maintained by Leslie. Report an incorrect result.

Input steps

How to use this calculator

  1. 01

    Enter both values

    Type the two non-negative values you want to compare.

  2. 02

    Use their average

    The calculator uses the average as a neutral reference value.

  3. 03

    Read the difference

    Calculate to see the percentage and absolute difference.

The formula

How this calculation works

Divide the absolute difference by the average of the two values, then multiply by 100.

Percentage Difference Calculator

Difference % = |A − B| ÷ ((A + B) ÷ 2) × 100

Check the method

Worked examples

Each example follows the same formula used by the calculator.

What is the difference between 40 and 60?

20 ÷ 50 × 100 = 40%40%

What is the difference between 90 and 110?

20 ÷ 100 × 100 = 20%20%

Use difference for unordered comparisons

Comparing 40 and 60 without selecting a starting value gives a gap of 20 divided by their average of 50: 40%. This differs from change from 40 to 60, which is 50%.

Compare two measurements symmetrically

Two devices report 98 and 102 units. Their gap is 4 and their mean is 100, so the percentage difference is 4%. Swapping the devices gives the same answer. For quotations of 80 and 120, the gap is 40 and the mean is 100, giving 40%; the increase from the cheaper quote to the dearer one would instead be 50%.

Use a reference value when one is known

When one measurement is a trusted reference, percentage error is more informative than dividing by the mean. When the measurements are sequential, use percentage change. Both inputs here must be non-negative; zero and a positive value give 200% difference under this formula. Two zero values do not provide a nonzero mean for the ratio. Large relative gaps near zero should be accompanied by the absolute difference.

Further reading

These references explain the underlying concepts. They do not endorse this website or verify an individual result.

Method notes updated by Leslie.

Common questions

Questions about this calculation

When is percentage difference misleading?

Use positive comparable measurements with the same units. A mean near zero makes the percentage unstable. For before-and-after data, percentage change normally answers the clearer question.

How is percentage difference calculated?

Divide the absolute difference between the values by their average, then multiply by 100.

When should I use percentage difference?

Use it when comparing two values and neither one is the original or reference value.

Does the order of the two values matter?

No. The formula uses an absolute difference and the same average, so switching the values gives the same result.