Numfino

Percent Difference Calculator

Compare two numbers to find their relative difference as a percentage of their average. View absolute difference, average, and directional change side by side.

Percent difference40%
Percent difference40%
Absolute difference
20
Average of the two values
50
Percent change from A to B
50%
Percent change from B to A
-33.33%
B as a percentage of A
150%

How to use this calculator

  1. Enter your first number into the Value A field.
  2. Enter your second number into the Value B field.
  3. Read Percent difference to see the relative gap between the two numbers divided by their average.
  4. Check Absolute difference, Average of the two values, and directional figures like Percent change from A to B.

How percent difference is calculated

Percent difference measures the relative gap between two numbers by comparing their difference to their average. It treats both numbers equally without a starting baseline or ending point. Comparing Value A to Value B yields the exact same percentage as comparing Value B to Value A.

Percent difference = (|A − B| ÷ ((|A| + |B|) ÷ 2)) × 100
  • A = first value entered into Value A
  • B = second value entered into Value B
  • |A − B| = absolute difference between the two values
  • (|A| + |B|) ÷ 2 = average of the absolute values

The calculation divides the absolute difference of the two numbers by their mean. Multiplying that quotient by 100 converts the proportion into a percentage. Because the formula relies on absolute values, the resulting percent difference is always positive or zero.

Worked example: comparing 40 and 60

When you open the calculator, the default inputs are 40 for Value A and 60 for Value B. Subtracting 60 from 40 gives -20, and taking the absolute value produces an Absolute difference of 20.

Next, the tool finds the mean by adding the absolute values of 40 and 60, which totals 100, and dividing by 2 to get an Average of the two values of 50.

Dividing the absolute difference of 20 by the average of 50 gives 0.4. Multiplying by 100 produces a Percent difference of 40%. Swapping the inputs to 60 for Value A and 40 for Value B yields the exact same 40% difference.

The calculator also displays directional metrics. Moving from 40 to 60 produces a Percent change from A to B of 50%, while moving from 60 to 40 gives a Percent change from B to A of -33.33%. In addition, B as a percentage of A is 150%.

How to interpret percent difference

Percent difference helps you evaluate the relative spread between two figures when neither number serves as an official benchmark. You can use it to compare price quotes from two contractors, price tags for an item at two stores, or readings from two separate instruments.

Looking at both absolute and percent differences provides clearer context. Consider two contractor estimates of 1200 and 1500. The Absolute difference is 300, the Average of the two values is 1350, and the Percent difference is 22.22%. The percentage puts the 300 gap into perspective relative to the scale of the job.

Similarly, comparing two experimental observations of 2.5 and 2.7 yields an Absolute difference of 0.2, an Average of the two values of 2.6, and a Percent difference of 7.69%. A smaller percentage indicates closer agreement between the two measurements.

Tips and common mistakes

A common mistake is confusing percent difference with percent change or percent error. Percent difference is symmetric and directionless. Entering 100 and 80 gives an Average of the two values of 90 and a Percent difference of 22.22% regardless of which value you enter first.

In contrast, percent change requires an earlier baseline to track directional growth or decline. Moving from 100 to 80 produces a Percent change from A to B of -20%, while moving from 80 to 100 gives 25%. Use the percent change calculator for time-based changes like inflation or returns.

Percent error evaluates an experimental measurement against an accepted, established true standard. Use the percent error calculator when testing laboratory accuracy against a theoretical benchmark.

To calculate what portion one number represents of another, use the percentage calculator. If you have three or more numbers and need their central value, use the average calculator.

Assumptions and limits

The calculator assumes two numbers whose average is greater than zero. If both Value A and Value B are 0, their average is 0, making division by zero impossible and leaving percent difference undefined.

The tool assumes both inputs share the same unit of measurement and does not perform unit conversions. Enter both values in matching units to ensure an accurate comparison.

This calculation compares only two individual numbers. It does not model time sequences, multi-period trends, standard deviations, or statistical distributions.

Percent difference shows relative spread without indicating direction or preference. It does not determine which quote, price, or reading is superior for your needs.

Frequently asked questions

What is the formula for percent difference?

The formula divides the absolute difference between two numbers by their average, then multiplies by 100. Written as an equation, it is |A − B| ÷ ((|A| + |B|) ÷ 2) × 100.

How does percent difference differ from percent change?

Percent difference has no direction and compares two numbers to their average, giving the same result regardless of order. Percent change compares an ending value to an initial baseline value, producing positive growth or negative decline.

Can percent difference be negative?

No, standard percent difference is always positive or zero. Because the formula uses absolute values in the numerator and denominator, the result represents magnitude without a negative sign.

Why does swapping the two values give the same percent difference?

The calculation uses the absolute difference between the numbers and divides by their combined average. Because neither value serves as an initial starting point, the order of entry does not affect the outcome.

When should you use percent difference instead of percent error?

Use percent difference when comparing two separate measurements, quotes, or observations where neither value is an official standard. Use percent error when comparing an experimental result against an established, accepted true benchmark.

Sources and further reading

Last reviewed November 21, 2026 · How we calculate