ThisCalculator

Everyday

Percent Difference Calculator: Formula & Examples

Updated · Standard formula, shown below

Percent difference 28.57 %
Absolute difference
20.00
Result
Average of A and B
70.00
Result
Value A
80
You entered

Percent Difference Calculator: Formula & Examples

This calculator works out the percent difference between two numbers, which is the absolute difference between them relative to their average, expressed as a percentage. You enter two positive numbers, and you get back the percent difference, plus the raw difference and the average for context. It is used to compare two measurements of the same kind where neither one is considered the “reference” value.

Formula

Percent difference is calculated with the following formula:

Percent Difference = ( |A − B| / ((A + B) / 2) ) × 100

  • A – the first value (same unit as B)
  • B – the second value (same unit as A)
  • |A − B| – the absolute difference (always positive)
  • (A + B) / 2 – the average of the two values
  • The result is a percentage, with no unit.

The absolute value in the numerator means the order of A and B does not matter; percent difference is symmetric. If A = 80 and B = 60, the percent difference is the same as when A = 60 and B = 80.

Worked Example

Using the default values from the calculator (A = 80, B = 60):

  1. Find the absolute difference: |80 − 60| = 20
  2. Find the average: (80 + 60) / 2 = 70
  3. Divide the difference by the average: 20 / 70 = 0.285714…
  4. Multiply by 100 to get a percentage: 0.285714 × 100 = 28.57%

So the percent difference between 80 and 60 is 28.57%. The calculator also shows the absolute difference (20) and the average (70), which help you interpret the result.

When to Use Percent Difference

Percent difference is used when you want to compare two values that are on equal footing, with no clear “original” or “expected” value. Common situations include:

  • Comparing two experimental measurements taken under the same conditions.
  • Comparing two product prices, weights, or speeds where neither is the baseline.
  • Checking the agreement between two instruments or two methods.
  • Comparing population figures from two different years when neither year is the reference.

If one value is clearly the reference (e.g., an accepted value, a target, or an original amount), use percent error or percent change instead. Percent error uses the accepted value as the denominator; percent change uses the original value as the denominator. Using percent difference in those cases gives a misleading result because it treats both values equally.

How to Read the Result

A percent difference of 0% means the two values are identical. The larger the percentage, the farther apart the two values are relative to their average. For example:

  • A percent difference of 5% between two lab measurements might be considered excellent agreement in a chemistry experiment, but terrible in precision machining.
  • A percent difference of 50% means the values are quite far apart—for instance, 10 and 20 have a percent difference of 66.67%.

Because the denominator is the average, percent difference is always between 0% and 200% (when one value is zero, the difference equals the average, giving 200%). If both values are zero, the formula is undefined (0/0); in practice, the percent difference is considered 0% when both are zero.

Common Mistakes and Pitfalls

Here are the most frequent errors people make when calculating percent difference:

  • Using percent change formula instead: Percent change divides by the original value, not the average. For example, going from 80 to 60 is a 25% decrease, but the percent difference is 28.57%. These are different concepts.
  • Forgetting the absolute value: Without absolute value, you would get a negative result when A < B, which is not a percent difference. The sign is irrelevant because difference is symmetric.
  • Mixing units: Both values must be in the same unit. You cannot compare 80 meters and 60 feet directly; convert first.
  • Using a single value as denominator: Some people mistakenly divide by just one of the numbers. That gives a different (and incorrect) percentage.
  • Rounding too early: Do intermediate calculations with full precision, then round only the final percentage to avoid rounding errors.

Percent Difference vs. Percent Change vs. Percent Error

These three are often confused, but they answer different questions:

  • Percent difference – compares two values with no reference. Denominator: average of the two.
  • Percent change – compares a new value to an old value. Denominator: old value. Formula: ((new − old) / old) × 100. Can be negative (decrease).
  • Percent error – compares a measured value to a true/accepted value. Denominator: accepted value. Formula: (|measured − accepted| / accepted) × 100.

Example: If a scale reads 52 kg but the true weight is 50 kg, the percent error is (|52−50|/50)×100 = 4%. If you compare two scales reading 52 kg and 50 kg, the percent difference is (|52−50|/51)×100 ≈ 3.92%.

Limits of the Formula

The percent difference formula assumes both values are positive. If one or both are negative, the average could be zero or negative, making the percentage meaningless or undefined. For example, comparing −10 and 10 gives an average of 0, so the formula divides by zero. In such cases, use absolute values or a different comparison method.

Also, percent difference is sensitive to small values. When both numbers are close to zero, even tiny absolute differences produce huge percentages. For instance, 0.1 and 0.2 have a percent difference of 66.67%, which may look alarming but is actually a small absolute difference. Always consider the context and the raw difference alongside the percentage.

Frequently Asked Questions

What is the difference between percent difference and percent change?

Percent change compares a new value to an old value, dividing by the old value. Percent difference compares two values without a reference, dividing by their average. For example, if a price goes from $50 to $60, the percent change is 20%. The percent difference between $50 and $60 is (|60−50|/55)×100 ≈ 18.18%.

Can percent difference be negative?

No. The absolute value in the numerator ensures the result is always non-negative. If you get a negative number, you likely used the percent change formula instead.

What does a percent difference of 100% mean?

It means the two values are such that their absolute difference equals their average. For example, 30 and 90: difference = 60, average = 60, so percent difference = 100%. This happens when one value is three times the other? Actually, for any two numbers where one is three times the other, the difference is 2x and the average is 2x, so yes, 100%.

How do I calculate percent difference when one value is zero?

If one value is zero and the other is positive, the average is half the positive value, and the difference is the positive value, so the percent difference is 200%. If both are zero, the formula is undefined; conventionally, the percent difference is 0% because there is no difference.

Why do I get a different result when I swap A and B?

You shouldn’t. Because of the absolute value and the average (which is symmetric), swapping A and B gives the same percent difference. If you see a different result, you might be using a formula that divides by one of the values, not the average.

Is percent difference the same as relative error?

No. Relative error (or percent error) divides by the true or accepted value, not the average. Percent difference is used when there is no true value, only two measurements of equal status.

Related

Formula used
in a | Value A | - | 80 | 0
in b | Value B | - | 60 | 0
out diff | Percent difference | % | (abs(a - b) / ((a + b) / 2)) * 100 | 2
out rawdiff | Absolute difference | - | abs(a - b) | 2
out avg | Average of A and B | - | (a + b) / 2 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.