Skip to content

Math

Percentage Difference Calculator

Enter two values to find their percentage difference, the absolute gap, and the average used as the base. The formula divides the gap by the average of the two values, so the result is the same whichever value you enter first. It is undefined when both values are zero.

Updated 2026-11-12 Editorial estimate Calccc Editorial Team Free · No sign-up

Loading calculator…

What this calculator does

Percentage difference compares two values that are equally important, such as the price of the same item at two stores or the height of two people. Because neither value is a baseline, the comparison uses the average of the two as its reference point. This calculator reports the percentage, the absolute gap, and that average, so you can see how the answer was built. It is the right tool when neither number came first and you want a fair, symmetric comparison.

How to use it

  1. Enter value A.
  2. Enter value B.
  3. Read the percentage difference and the absolute gap.
  4. Check the average, which is the base for the comparison.
  5. Reverse the values to confirm that the result does not change.

How it works

Subtract one value from the other, take the absolute value of the gap, divide by the average of the two values, and multiply by 100: |A - B| / ((A + B) / 2) x 100. The average is the sum of the two values divided by two. Taking the absolute value means the order of the inputs does not change the answer. For non-negative values, the result is never negative. When the two values are equal, the difference is 0%, as long as their average is not zero. When both values are zero, the average is zero, so the division is undefined.

Example calculations

Example 1: two different values

Compare 80 and 100. The gap is 20 and the average is 90, so 20 divided by 90 is about 0.2222, or 22.2%. Reversing the inputs gives the same answer, because both the gap and the average stay the same.

Example 2: identical values

Compare 50 and 50. The gap is zero and the average is 50, so the percentage difference is 0%. Two equal values always have no difference, unless both are zero.

Example 3: two zeros

Compare 0 and 0. The gap is zero and the average is zero, so the formula divides by zero and the result is undefined. There is no scale against which to measure the gap.

What the result means

Percentage difference compares two values with their average as the base, not with an original value. That makes it symmetric: comparing 80 with 100 gives the same 22.2% as comparing 100 with 80. Percentage change does not behave that way, because it divides by whichever value is the starting point. Use percentage difference when both values describe the same kind of thing and neither came first, such as two lab measurements or two quotes for the same job. Use percentage change when one value is clearly an old or original number. Be careful near zero: when one value is positive and the other is negative, the average can be zero or close to it, and the percentage becomes undefined or misleading.

Common mistakes

  • Using the original value as the base when no baseline exists.
  • Reporting a negative percentage difference; the absolute value is always positive.
  • Forgetting that both values must be the same kind of quantity.
  • Using percentage difference for an old value and a new value, where percentage change fits.
  • Comparing values near zero, where the average is zero or very small.

Assumptions and limits

  • Both values are numbers in the same unit.
  • Neither value is treated as a reference or starting point.
  • The average of the two values is the base for the comparison.
  • Zero divided by zero is reported as undefined, not as zero.
  • Both values are non-negative, so the average is positive and the result is zero or positive.
  • Results are rounded for display only, after the calculation.

Frequently asked questions

How is percentage difference different from percentage change?

Percentage change divides the gap by the original value; percentage difference divides by the average of the two values. Change has a direction and a baseline, while difference is symmetric and has neither.

Does the order of the values matter?

No. The formula takes the absolute gap and the average, so swapping A and B gives the same percentage. That is the point of using the average as the base.

Can percentage difference be negative?

For non-negative values, no. The absolute value removes the sign, because neither value is treated as more important. With negative inputs, the average can be negative and the formula can produce a negative number, so this measure is best used with non-negative quantities.

Why is 0 and 0 undefined?

Both the gap and the average are zero, so the formula divides zero by zero. There is no scale against which to express the difference.

When should I use percentage difference instead of percentage change?

Use difference when the two values are interchangeable comparisons, such as two stores' prices for the same item. Use change when one value is a starting point and the other is the result.

What does a 22.2% difference between 80 and 100 mean?

It means the gap of 20 is 22.2% of the average of 90. It does not mean 100 is 22.2% more than 80; that would be a 25% increase, because percentage change uses 80 as the base.

Sources

Editorial review completed 2026-11-06. This is an educational estimate, not professional advice.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Go deeper

Guides that explain the math

Percentage Difference: Comparing Two Values Fairly
Math

Percentage Difference: Comparing Two Values Fairly

Percentage difference divides the gap by the average of two values. Learn when to use it instead of percentage change, with worked examples, formulas, and practical caveats.

7 min read

Calccc Editorial Team · Updated 2026-11-12

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.