Percent Difference Calculator

Compare two values as a percentage of their average without treating either as a reference.

Math and PercentUpdated 2026-11-192 min read
Percent Difference Calculator
Any finite number.
Any finite number. The average must not be zero.
Percent difference
...
Absolute difference...
Average of the two values...

What it does

Percent difference compares two values that are on equal footing. It takes the absolute gap between them and divides by their average, so neither value is treated as the original or the reference.

This tool returns the percent difference, the absolute difference and the average used in the denominator. The page opens with 80 and 60, whose difference is 20 and average is 70, giving about 28.57 percent.

The formula is symmetric, which is why it is used when comparing two measurements of the same quantity by different methods. A percent change would instead divide by a starting value and would not be symmetric.

If one value is a theoretical or accepted standard, percent error is the appropriate measure because it divides by that known value.

The result can be large when the average is close to zero, and the tool reports an error if the average is exactly zero.

How to use

  1. Enter the first value.
  2. Enter the second value.
  3. Read the percent difference as the main result.
  4. Check the absolute difference for the raw gap.
  5. Use the average to verify the denominator.
  6. Choose percent error instead when one value is a known standard.

Formula

Percent difference = |a - b| / ((a + b) / 2) times 100 percent
a, b
The two values being compared.
absolute difference
The nonnegative gap between the values.
average
The arithmetic mean of the two values.

Because the numerator is an absolute value, the result is always nonnegative and symmetric. A zero average makes the denominator undefined, so that case is rejected rather than returning an infinite result.

Worked example

Example: 80 and 60

The page opens with a = 80 and b = 60.

  1. Find the absolute difference: 80 minus 60 is 20.
  2. Find the average: 80 plus 60 is 140, and half of that is 70.
  3. Divide 20 by 70, about 0.2857.
  4. Multiply by 100 to get 28.57 percent.
  5. Swapping the values gives the same result.
  6. The tool reports percent_difference 28.57 % and average 70.0000.

Reference table

Percent difference for sample pairs
First valueSecond valueAveragePercent difference
80607028.57 %
57633.33 %

Limits

  • The average of the two values must not be zero.
  • Inputs are limited to plus or minus 10 to the 12th power.
  • The result is symmetric and always nonnegative.
  • This is not the same as percent change or percent error.

Common mistakes

  • Dividing by one value instead of the average.
  • Forgetting the absolute value in the numerator.
  • Using percent difference when one value is a known standard.
  • Expecting a negative result when the first value is smaller.
  • Applying the formula when the average is zero.

Try it yourself

Quick checks. Answers sit tucked under each question.

Percent difference between 5 and 7?

33.33 percent, from 2 divided by 6.

Does swapping the values change the answer?

No. The formula is symmetric.

When should I use percent error instead?

When one value is an accepted or theoretical standard.

Questions

What is percent difference?

A symmetric comparison of two values relative to their average.

What is the formula?

Absolute difference divided by the average, times 100 percent.

Is it the same as percent change?

No. Percent change divides by a starting value and is not symmetric.

Is it the same as percent error?

No. Percent error divides by a known accepted value.

Can it be negative?

No. The numerator is an absolute value.

Why is it used in laboratories?

It compares two measurements when neither is known to be the standard.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.