Overview

Easily find the percentage difference between two positive numbers with our calculator app. Ideal for analyzing data in finance, science, or any other field.

Reach for this tool when you are comparing two numbers side by side and neither one is the obvious baseline, such as prices at two stores, results from two lab trials, or the populations of two towns. Instead of measuring from one value to the other, it measures the gap against the midpoint of the two, so you get the same answer whichever number you enter first. The result tells you how far apart the values are in relative terms: a few percent suggests they are close, while results approaching 200% mean one value is near zero compared with the other.

Formula and example

Difference=∣Value 1−Value 2∣\displaystyle \text{Difference} = |\text{Value 1} - \text{Value 2}|
Average=∣Value 1∣+∣Value 2∣2\displaystyle \text{Average} = \frac{|\text{Value 1}| + |\text{Value 2}|}{2}
Percent difference=DifferenceAverage×100\displaystyle \text{Percent difference} = \frac{\text{Difference}}{\text{Average}} \times 100

Where:

Value 1
— The first value being compared.
Value 2
— The second value being compared; the order of the two values does not matter.
Difference
— The size of the gap between the two values, always zero or positive.
Average
— The average size of the two values, used as the reference point instead of either value alone.
Percent difference
— The gap as a percentage of the average, from 0% for identical values up to 200%.

Worked example

Compare 100 and 120 (the calculator's default inputs).

  1. Difference

    ∣100−120∣=20\displaystyle |100 - 120| = 20
  2. Average

    100+1202=110\displaystyle \frac{100 + 120}{2} = 110
  3. Percent difference

    20110×100≈18.1818%\displaystyle \frac{20}{110} \times 100 \approx 18.1818\%

Result

The Percent Difference is 18.1818%, and swapping the two values gives the same result.

FAQs

How do I calculate the percent difference between two numbers?

Take the absolute difference, divide it by the average of the two numbers, and multiply by 100. For 45 and 60, the difference is 15 and the average is 52.5, so 15 ÷ 52.5 × 100 = 28.5714%.

When should I use percent difference instead of percent change?

Use percent difference when neither value is the starting point, such as comparing two suppliers or two measurements. Use percent change when there is a clear before and after. For 100 and 120, percent change is 20% but percent difference is about 18.1818%.

Does the order of the numbers matter?

No. The formula uses the absolute difference and the average of both values, so 45 and 60 gives the same 28.5714% as 60 and 45. That symmetry is the main reason to use percent difference over percent change.

Why is the percent difference 200% when one value is zero?

If one value is 0, the difference equals the other value and the average is half of it. For 0 and 50, that is 50 ÷ 25 × 100 = 200%, which is the largest result this formula can produce. Values with opposite signs, such as 5 and -5, also give 200%.

Is percent difference the same as percent error?

No. Percent error compares a measured value with a known or accepted value and divides by the accepted value: |measured − accepted| ÷ accepted × 100. A measurement of 9.6 against an accepted 10 has a 4% error, but a percent difference of about 4.0816%.

Can percent difference be negative?

No. Because it uses the absolute value of the gap, the result is always zero or positive and only shows how far apart the numbers are, not which one is larger. Check the two values shown with the result to see which is bigger.

How to use

Enter two values in any order to see how far apart they are relative to their average.

  1. Enter Value 1Type the first number you want to compare, for example 45. Decimals (up to 4 places) and negative numbers are allowed.
  2. Enter Value 2Type the second number in the same units, for example 60. The order does not matter, but the two values cannot both be zero.
  3. Read the Percent DifferenceThe highlighted Percent Difference is the gap between the values as a share of their average size, shown to up to 4 decimal places. It is always positive and ranges from 0% for identical values up to 200% when one value is zero or the values have opposite signs.

Assumptions

  • Inputs can be decimals with up to 4 decimal places and can be negative, but they cannot both be zero.
  • The gap is measured against the average size of the two values (half the sum of their absolute values), not against either value on its own.
  • The result shows only the size of the difference, not its direction.

Explore more