Difference

Percent difference calculator

Percent difference compares two values that have no before and after. This calculator shows it beside the percent change in each direction and the percent error, so you can see which one your question needs.

  • Order does not matter: swap the values and the answer stays
  • Every common denominator, with its result
  • Percent error for measured against accepted

Examples and sources checked on November 21, 2026.

Percent difference50.00%No direction

10 and 6 differ by 4, which is 50.00% of their average (8). Percent difference has no "from" or "to", so the order does not matter.

Change from A to B-40.00%
Change from B to A+66.67%
Percent error if B is the accepted value66.67%

Same numbers, other denominators

DenominatorResultUsed by
Average of A and B (standard)50.00%Physics and chemistry labs
Average of the sizes |A| and |B|50.00%When values can be negative
Larger of the two sizes40.00%Some business tools
Sum without halving25.00%A slip: half the usual answer

Working

  1. Difference: |10 - 6| = 4
  2. Average: (10 + 6) / 2 = 8
  3. Divide and times 100: 4 / 8 x 100 = 50.00%

Spreadsheet formula Excel and Google Sheets

Put 10 in A2 and 6 in B2.

Percent difference=ABS(A2-B2)/AVERAGE(A2,B2)
Percent error (B accepted)=ABS(A2-B2)/ABS(B2)
With your numbers=ABS(10-6)/AVERAGE(10,6)

Decimal comma form (semicolons): =ABS(10-6)/AVERAGE(10;6)

Format the result cells as Percentage. If values can be negative, use =ABS(A2-B2)/AVERAGE(ABS(A2),ABS(B2)) instead.

Reverse check

Swap the values and the percent difference is still 50.00%. Percent change is not symmetric: -40.00% from A to B, but +66.67% from B to A.

Percent difference vs percent change

Percent change has a direction: it measures from an old value to a new one, and dividing by the old value makes the order matter. Percent difference has none: it measures the gap between two values against their average, so swapping them changes nothing.

With 10 and 6, the percent difference is 50.00%. The percent change is -40.00% from 10 to 6, but +66.67% from 6 to 10. Three honest numbers, three different questions:

  • Percent change when one value came first: last year and this year, the price before and after.
  • Percent difference when the two are peers: two lab measurements, two shops' prices, two estimates.
  • Percent error when one value is accepted as correct: your measurement against a reference value.

The formula

The standard formula is |a - b| / ((a + b) / 2) x 100: the absolute difference divided by the average. Clemson University's physics lab tutorial describes it the same way, as the absolute difference of the two measured values divided by their average, for when there is no accepted value to compare against.

For 10 and 6: the difference is 4, the average is 8, and 4 / 8 x 100 = 50.00%. In a spreadsheet: =ABS(A2-B2)/AVERAGE(A2,B2) (decimal comma locales: =ABS(A2-B2)/AVERAGE(A2;B2)).

Other denominators you will meet

Not every website divides by the average, and that is why two calculators can disagree on the same numbers. The result panel lists the common versions for your inputs. For 10 and 6:

Divide byResultWhen it appears
Average (standard)50.00%Science teaching and most textbooks
Average of the sizes50.00%When either value can be negative
Larger value40.00%Some business tools
Sum, not halved25.00%A slip that halves the answer

None is wrong if it is labeled. The trouble starts when a figure is quoted without saying which it is.

Percent error

When one value is the accepted or true value, use percent error: |measured - accepted| / |accepted| x 100. A student who measures gravity as 9.79 against a reference of 9.81 has a percent error of 0.20%. Two students who measure 9.79 and 9.83 and want to know how well they agree have a percent difference of 0.41%. The calculator shows percent error treating your second value as accepted.

When the average is zero, or the signs differ

If the two values cancel out, such as 5 and -5, their average is zero and the standard formula has no answer. Dividing by the average of their sizes instead gives 200.00%, and the calculator offers that version with a label. With one negative and one positive value, a percent difference rarely means much; the absolute gap, 10 here, is often the better thing to report. The guide to negative numbers and zero covers the same problem for percent change.

Questions people ask

Is percent difference always positive?

Yes. It uses the absolute difference, so it is zero or more. A sign belongs to percent change, which has a direction.

Why do two calculators give different percent differences?

They divide by different things: the average, the larger value or the sum. Check which denominator each one uses; this page shows them side by side.