Percentage Difference Calculator

Compare two numbers when neither one is the starting point, using their average as the reference so the order doesn't matter.

Absolute difference |A − B|
16
Average (A + B) ÷ 2
50
Change from A to B
+38.0952%
Change from B to A
−27.5862%
Percentage difference32%

Show the work

  1. Find the absolute difference: |42 − 58| = 16
  2. Find the average of the two values: (42 + 58) ÷ 2 = 50
  3. Divide the difference by the average: 16 ÷ 50 = 0.32
  4. Multiply by 100: 32%
  5. Swapping A and B gives the same answer — neither value is treated as the starting point.
Value A 42Average 50Value B 58
The difference is measured against the midpoint, so A and B are treated equally.

Sometimes there is no “before” and “after”. Two stores charge different prices for the same item, two labs measure the same sample, two classes raise different amounts for a fundraiser. Percentage difference compares numbers like these on equal footing by measuring the gap against their average rather than against either one. The result is the same no matter which value you type first.

How to use the percentage difference calculator

  1. Enter the first value in Value A.
  2. Enter the second value in Value B. The order doesn’t change the answer.
  3. Read the percentage difference on the tape. For comparison, the tape also lists the directional percent change from A to B and from B to A.

Percentage difference formula

percentage difference = |A − B| ÷ ((A + B) ÷ 2) × 100

The numerator is the size of the gap, ignoring sign. The denominator is the midpoint between the two numbers. Because both parts are symmetric, A and B can trade places freely.

Worked example: two can drives

Ms. Rivera’s class collected 42 cans of food and Mr. Okafor’s class collected 58.

Absolute difference: |42 − 58| = 16 cans

Average: (42 + 58) ÷ 2 = 50 cans

Percentage difference: 16 ÷ 50 × 100 = 32%

Compare that with the directional answers. Measured from 42, the second class collected 16 ÷ 42 ≈ 38.1% more. Measured from 58, the first class collected 16 ÷ 58 ≈ 27.6% less. The symmetric 32% sits between the two because it doesn’t favor either class as the baseline.

Choosing the right comparison

Situation Use Divides by
A value moved from old to new Percentage change The old value
One value is the accepted or true value Percent error The accepted value
Two values are peers, neither is the reference Percentage difference The average

Mixing these up is a common source of confusing reports. “Store B is 38% more expensive than store A” and “the stores differ by 32%” can both be correct statements about the same prices — they just answer different questions. When you write up a comparison, name the method you used.

Properties worth knowing

  • Order doesn’t matter. Comparing 42 with 58 gives exactly the same result as comparing 58 with 42.
  • Bounded at 200% for values with the same sign. You reach 200% only when one value is zero, since |A − 0| ÷ (A ÷ 2) = 2.
  • Equal values give 0%.
  • Small averages exaggerate. When the two values have opposite signs (a +3 and a −2, for example) the average is close to zero and the percentage can be enormous. The calculator flags this case.

Other conventions you might see

Some fields divide by the larger value, the smaller value, or the root-mean-square of the two instead of the arithmetic mean. Engineering specifications and chemistry lab manuals sometimes call the average-based version the relative percent difference (RPD), often used to check how well duplicate samples agree. The average is the most common choice for general use and is what this calculator applies. If your course or standard specifies another denominator, divide the absolute difference shown on the tape by that value instead.

If one of your values is a known standard, switch to the percent error calculator. For a value that changed over time, use the percentage change calculator. To find just the gap between two numbers without a percentage, the absolute difference calculator does that in one step.

Frequently asked questions

What is the percentage difference formula?

Percentage difference = |A − B| ÷ ((A + B) ÷ 2) × 100. Take the absolute difference, divide it by the average of the two values, and multiply by 100. For 42 and 58 that is 16 ÷ 50 × 100 = 32%.

How is percentage difference different from percentage change?

Percentage change has a direction: it measures a move from an old value to a new one and divides by the old value. Percentage difference has no direction; it divides by the average, so swapping the two numbers gives the same answer.

When should I use percentage difference instead of percent error?

Use percent error when one value is known to be correct, such as a textbook constant. Use percentage difference when you compare two measurements or two sources and neither is the accepted standard.

Why can't the percentage difference go above 200%?

For two values with the same sign, the absolute difference can never exceed twice their average. The maximum of 200% happens only when one of the values is zero. Values with opposite signs break this rule and give misleading results.

Can I calculate the percentage difference of negative numbers?

If both values are negative the calculator uses the size of their average and the result is meaningful. If one is positive and one is negative, the average can be near zero and the percentage explodes, so compare the plain difference instead.

Last reviewed October 2026 by the CalcFluent editorial team. How we check our calculators.