The percent difference between 10.2 and 9.95 is 2.48%
Comparing with a known or textbook value? Use the percent error calculator
One value is the starting point? Use the percent change calculator
2.48%
Percent difference
0.25
Absolute difference
|A − B|
10.075
Average
(A + B) / 2
Scale: 0% (equal) to 200% (one value is 0)
Paste-ready sentence
The two values, 10.2 and 9.95, differ by 2.48%.
Percent change instead?
From A to B (10.2 to 9.95)-2.45%
From B to A (9.95 to 10.2)+2.51%
Percent difference has no direction. Use percent change if one value is the starting value, or percent error if one value is the accepted value.
Show the math
Formulapercent difference = |A − B| / |(A + B) / 2| × 100
Step 1: difference|10.2 − 9.95| = 0.25
Step 2: average(10.2 + 9.95) / 2 = 10.075
Step 3: divide and scale0.25 / 10.075 × 100 = 2.48%
Unrounded2.481389578%
Zero-sum ruleIf A + B = 0 the average is 0 and the result is undefined. The size of the average is used, so two negative values still give a positive percent.
RoundingThe percent is rounded to 3 significant figures (auto). Change this in the Significant figures box. Difference and average are not rounded.

Short answer: Percent difference = |A − B| / ((A + B) / 2) × 100. For 10.2 and 9.95, the absolute difference is 0.25, the average is 10.075 and the percent difference is 2.48%. The answer is the same in either order because neither value is the reference.

Percent difference compares two values when neither one is the correct answer: two trials of an experiment, two measurement methods, two prices or two counts. The usual mistakes are dividing by one of the values instead of their average and using it when one value is a known reference. This page covers the formula, the steps, the 0% to 200% range, negative inputs, rounding and how to report the result.

2.48%
Percent difference
Between 10.2 and 9.95.
0.25
Absolute difference
In the same units as the two values.
10.075
Average
The base the difference is divided by.
2.48%
Order swapped
9.95 and 10.2 give the same result.

How to use the percent difference calculator

Enter Value A.
Type either of the two numbers. Negative values are accepted.
Enter Value B.
Type the other number. Order does not matter, and neither value is treated as the starting or accepted one.
Set the significant figures.
Leave it on Auto for 3 significant figures or pick 1 to 6.
Read the result.
The calculator returns the percent difference, the absolute difference and the average, with a labelled 0% to 200% scale.
Copy what you need.
Take the paste-ready sentence or open Show the math for the formula with your numbers filled in.

Percent difference formula

The percent difference formula and the percentage difference formula are the same expression. Take the absolute difference between the two values, divide it by their average and multiply by 100. NC State Physics and College of San Mateo both write it this way, and the absolute value bars make the result positive.

The equation
Percent difference = |A − B| / |(A + B) / 2| × 100
In words: absolute difference divided by the size of the average, times 100.
Tip
In Excel or Google Sheets, with the values in A1 and B1, type =ABS(A1-B1)/ABS((A1+B1)/2)*100. Drop the *100 and format the cell as a percentage if you prefer.

How to calculate percent difference step by step

The default pair comes from a physics lab: two methods of finding g, giving 10.2 and 9.95 m/s2.

Find the absolute difference.
Subtract and drop the sign: |10.2 − 9.95| = 0.25.
Find the average.
Add the two values and halve the sum: (10.2 + 9.95) / 2 = 10.075.
Divide and multiply by 100.
0.25 / 10.075 × 100 = 2.4813896%.
Round the final result.
To 3 significant figures that is 2.48%. Keep the unrounded digits until this last step.
Gloved hand placing a small metal sample into a laboratory instrument
Two readings of the same quantity, from two runs or two instruments, are compared with percent difference. Photo by Mina Rad on Unsplash

Percent difference examples

ExampleABAbsolute differenceAveragePercent difference
g from two methods10.29.950.2510.0752.48%
Two juices, price in dollars462540.0%
Candies in two packs1601164413831.9%
Test scores8060207028.6%

The g example is from NC State, which rounds the result to 2.5%. The juice and candy examples are from Math Is Fun and the scores are from Mathwords. The two juices differ by 2 on an average of 5, which is 40.0%, whichever price you list first.

Why the average is the denominator

Percent difference divides by the average because neither value has a claim to be the base. Texas A&M University-Corpus Christi describes the average as the compromise when the two values stand on equal footing. Dividing by either value makes the answer depend on which one you picked.

Take 125 as the average of 100 and 150, with a gap of 50. Dividing by the average gives 40.0% in both orders. Dividing by 100 gives +50.0% and dividing by 150 gives −33.3%, the two percent changes. One pair yields three answers, and only the average-based one is order-free.

Order does not matter
Because the average is the same in both orders and the absolute difference drops the sign, swapping A and B never changes the percent difference.

Some sources divide by the larger of the two values instead. NIST Dataplot lists both versions, and Wikipedia recommends the larger value for comparing floating point numbers because it caps the result at 100%. This calculator uses the average, the version in the textbooks above. If your instructor names a different denominator, use that one.

Percent difference range: from 0% to 200%

Percent difference is never negative. It is 0% when the two values are equal. For two non-negative values the maximum is 200%, reached when one value is zero: 0 and 24 have an absolute difference of 24 and an average of 12, so the difference is twice the average. The range is covered in Wikipedia.

A percent difference can pass 100%. A result of 100% means the larger value is 3 times the smaller one, as with 1 and 3. A zero paired with any non-zero number of the same sign produces the maximum, so a result of 200% usually tells you one of the two numbers is zero.

Negative numbers, opposite signs and a zero sum

The formula divides by the size of the average, so two negative values give a positive result. For −5 and −3 the average is −4, the absolute difference is 2 and the percent difference is 50.0%.

Opposite signs behave differently. For −1 and 3 the gap is 4 but the average is only 1, so the result is 400%, above the 200% limit for same-sign values. A number that large means percent difference is the wrong tool for those values, and the calculator shows a warning.

When A + B = 0 the average is zero and the formula divides by zero. For 5 and −5 the absolute difference is 10, but the percent difference is undefined. Two zeros are undefined too. Report the absolute difference in those cases.

A and BPercent differenceWhat it shows
1 and 3100%The larger value is 3 times the smaller.
0 and 24200%Maximum for non-negative values: one is zero.
−5 and −350.0%Both negative: the size of the average is used.
−1 and 3400%Opposite signs: can exceed 200%.
5 and −5UndefinedThe average is 0.

Percent difference vs percent change vs percent error

Percent difference has no starting value and no reference value. If one value is the starting point, the question is percent change, which divides by that starting value and carries a sign. If one value is accepted as correct, the question is percent error, which divides by the accepted value. For the default pair, the change from 10.2 to 9.95 is −2.45% and the change from 9.95 to 10.2 is +2.51%, while the percent difference stays 2.48% either way. The full side-by-side table is on the percent error calculator page.

Student measuring the same wooden block with a caliper and a ruler next to an open notebook
Two methods on the same object give two values and no reference, which is the case percent difference is built for.

When one value is the starting point, the percent change calculator gives the signed percent increase or decrease and can work backward to the new or original value.

Significant figures in a percent difference

No source gives a formal rounding rule for a percent difference, so follow your instructor when one is set. The NC State lab manual prints 2.5% for the default pair, and the calculator defaults to 3 significant figures, 2.48%. Round only the final result.

Significant figuresPercent difference
12%
22.5%
3 (calculator default)2.48%
42.481%

To count the digits in your inputs, use the significant figures calculator. To round to a set number of decimal places, use the rounding calculator.

What is a good percent difference?

No universal cutoff exists, because it depends on the instrument and the course. Two lab manuals show typical limits.

LimitWhere it appliesSource
5% or lessTwo titration trials are flagged when they differ by more than thisShasta College
10% or lessCompared with each other when no theoretical value existsCerritos College

Treat these as course rules, not pass or fail marks. With three or more trials, measure the spread with the standard deviation calculator instead of comparing pairs.

How to write percent difference in a lab report

Give both values with units, the formula, the working and one sentence stating the result. Say that neither value is the reference. If one of them is a handbook or theoretical value, report a percent error with the percent error calculator instead.

Sentence for the report
The two values, 10.2 and 9.95, differ by 2.48%.

Percent difference says how far apart two results are and not which one is right. Pair it with a sentence on the likely cause, such as a different instrument resolution or a different method.

Sources

Frequently asked questions

What is the percent difference formula?

Percent difference = |A – B| / ((A + B) / 2) x 100. Percentage difference is the same formula under a different name.

How do you calculate percent difference between two numbers?

Subtract one from the other and drop the sign, divide by the average of the two numbers and multiply by 100. For 10.2 and 9.95, that is 0.25 / 10.075 x 100 = 2.48%.

Is percent difference always positive?

Yes. The absolute value in the formula removes the sign, so the result is 0% or higher. A signed answer is a percent change, not a percent difference.

Does the order of the two numbers matter?

No. The absolute difference and the average are the same in either order, so 10.2 and 9.95 give 2.48% and so do 9.95 and 10.2.

Can percent difference be greater than 100%?

Yes. Two non-negative values can reach 200%, and values with opposite signs can go higher. A result of 100% means the larger value is 3 times the smaller one.

What happens if one of the numbers is zero?

The percent difference is 200%, the maximum for non-negative values, because the difference is twice the average. If both numbers are zero, or the two numbers add up to zero, the result is undefined.

How do I calculate percent difference in Excel or Google Sheets?

With the values in A1 and B1, enter =ABS(A1-B1)/ABS((A1+B1)/2)*100. Remove the *100 and format the cell as a percentage to get the same result.

What is a good percent difference?

It depends on the course and the instrument. Many lab manuals flag a gap above 5% between two trials and ask for 10% or less between two methods.