Arithmetic & Numbers

Percentage Difference Calculator

Percentage difference compares two values when neither one is the starting point: divide their absolute difference by their average and multiply by 100.

Try

The order does not matter. Commas for thousands are fine; type percentages without the % sign.

Result

Percentage difference between 40 and 60: 40.00%

Percentage difference between 40 and 60

40.00%

The same in either order.

Absolute difference |V1 − V2|
20
Average (V1 + V2) ÷ 2The reference value. Neither number is treated as the starting point.
50
Percent change from 40 to 60Divides by value 1, so it depends on the order.
+50.00%
Percent change from 60 to 40Divides by value 2.
−33.33%
Larger ÷ smaller60 is 1.5 times 40.
1.5

40 and 60 differ by 20, which is 40.00% of their average, 50. Swapping the two values gives the same answer.

Value 1 (40), value 2 (60) and their average (50)
0204060ValueValue 1 (40): 40Value 1 (40)Average (50): 50Average (50)Value 2 (60): 60Value 2 (60)
Step-by-step working (4 steps)
  1. Find the absolute difference

    Subtract one value from the other and drop the sign.

    |40−60|=20\left|40 - 60\right| = 20
  2. Find the average of the two values

    40+602=50\frac{40 + 60}{2} = 50
  3. Divide the difference by the average

    2050=0.4\frac{20}{50} = 0.4
  4. Multiply by 100 and add the % sign

    0.4×100=40%0.4 \times 100 = 40\%

For 40 and 60 that is |40−60|÷50×100=40%|40 - 60| \div 50 \times 100 = 40\%, in either order. This percentage difference calculator shows each step with your numbers, the absolute difference and the percent change both ways, and handles zero and negative values.

By Hira Noor, mathematicianLast reviewed Free, no sign-up, runs in your browserReport a problem

How to use this calculator

  1. Type the two numbers in Value 1 and Value 2. Either order gives the same percentage difference.
  2. Read the percentage difference, then the absolute difference and average it was built from. The steps panel shows the formula with your numbers filled in.
  3. Check the two percent change lines if one value is really the "before" value. They differ from each other and from the percentage difference.
  4. Pick the Decimal places, from exact to 4 places. A rounded answer shows the unrounded value underneath.
  5. To work backwards, choose The values a given percentage difference away, enter a known value and a percentage, and get the value below and the value above it. Use Copy or Share to keep the result.

Formulas

Percentage difference formula

percentage difference=|V1−V2|(V1+V2)/2×100%\text{percentage difference} = \frac{|V_1 - V_2|}{\left(V_1 + V_2\right) / 2} \times 100\%

Plain-text formula: percentage difference = (|V_1 − V_2|)/((V_1 + V_2)/2) × 100%

V_1
the first value
V_2
the second value
(V_1 + V_2) / 2
the average of the two values, used as the reference

Take the absolute difference of the two values, divide by their average, and multiply by 100. The absolute value and the average make it symmetric, so swapping V1V_1 and V2V_2 does not change the answer. If the average is negative, divide by its size.

Values a given percentage difference away

Vhigh=V×200+p200−p,Vlow=V×200−p200+pV_{\text{high}} = V \times \frac{200 + p}{200 - p}, \quad V_{\text{low}} = V \times \frac{200 - p}{200 + p}

Plain-text formula: V_high = V × (200 + p)/(200 − p), V_low = V × (200 − p)/(200 + p)

Solving the formula for the second value gives one answer above and one below. For a known value of 50 and p=20p = 20, the values are about 61.11 and 40.91, not 60 and 40.

Reading the result

The answer has no sign and no direction. 40% means the two values are 40% apart relative to their average, not that one is 40% bigger than the other.

For two positive values the percentage difference is always below 200%. It is 100% when one value is three times the other, and about 67% when one is double the other.

If one value is the original or reference, the percent change lines answer a different question. From 40 to 60 is +50%, from 60 to 40 is −33.33%, and the percentage difference sits between them at 40%.

With Decimal places set to Exact, a repeating answer is rounded to 10 significant digits and the exact value is shown underneath, with the repeating digits in brackets.

How to calculate the percentage difference between two numbers

1. Find the absolute difference: subtract and drop the sign. For 100 and 120: |100−120|=20|100 - 120| = 20.

2. Find the average: add the values and halve the total. (100+120)÷2=110(100 + 120) \div 2 = 110.

3. Divide and multiply by 100: 20÷110×100≈18.18%20 \div 110 \times 100 \approx 18.18\%.

Dividing by the average is what makes the result symmetric. Dividing by 100 instead would give 20%, and dividing by 120 would give 16.67%, so the answer would depend on which number you happened to type first.

Percentage difference examples

Each row uses the same formula, absolute difference ÷ average × 100. The last column opens the calculator with that pair filled in.

Worked percentage difference examples
ValuesDifferenceAveragePercentage differenceCheck
40 and 60205040%open
100 and 1202011018.18%open
Prices 4.99 and 5.490.505.249.54%open
Lab readings 9.81 and 9.750.069.780.61%open
Salaries 52,000 and 58,0006,00055,00010.91%open
50 and 100 (double)507566.67%open
25 and 75 (triple)5050100%open
10 and 1,000990505196.04%open

Percentage difference vs percent change vs percentage points

These three get mixed up. Percentage difference compares two values on an equal footing and divides by their average, so the order does not matter. Percent change has a before and an after, divides by the old value and has a sign. Percentage points are the plain gap between two numbers that are already percentages.

For 40 and 60, the percentage difference is 40% either way, the percent change from 40 to 60 is +50%, and from 60 to 40 it is −33.33%. When a rate goes from 4% to 5%, that is 1 percentage point. For a before-and-after question, use the percent change calculator; for percent-of and reverse percentage questions, use the percentage calculator.

Which measure to use
MeasureFormulaExampleUse when
Percentage difference|a − b| ÷ average × 10040 and 60: 40%Neither value is the reference
Percent change(new − old) ÷ |old| × 10040 → 60: +50%There is a before and an after
Percent error|measured − accepted| ÷ accepted × 1009.75 vs 9.81: 0.61%One value is the known true value
Percentage pointsnew % − old %4% → 5%: 1 pointBoth values are already percentages

Percentage difference in physics and chemistry labs

Lab reports use percentage difference to compare two measured values, such as two trials of the same experiment or results from two methods, when neither is known to be right. Two readings of the acceleration due to gravity, 9.81 and 9.75 m/s², differ by 0.06÷9.78×100≈0.61%0.06 \div 9.78 \times 100 \approx 0.61\%.

When one value is an accepted or theoretical value, use percent error instead, which divides by the accepted value. The two give close answers for small gaps but drift apart as the gap grows: for 50 measured against 100 accepted, the percent error is 50% while the percentage difference is 66.67%.

Zero, negative values and the 200% ceiling

Zero: if one value is 0, the percentage difference is always 200%, whatever the other value is, because the difference is exactly twice the average. That makes it useless for comparison, so report the absolute difference instead. If both values are 0, or they average to 0 (such as −5 and 5), the formula divides by 0 and is undefined; the calculator says so and gives the absolute difference.

Negative values: the formula is built for positive quantities like lengths, prices and counts. With one negative value the average shrinks and the result can pass 200%, which says little. The calculator divides by the size of the average and adds a warning; for values that cross zero, the absolute difference is the clearer number.

Common percentage difference mistakes

Each row shows a slip and the correct working, which matches the steps the calculator shows.

Common mistakes and the correct working
MistakeWrongRight
Dividing by one of the values40 and 60: 20 ÷ 40 = 50%20 ÷ 50 (the average) = 40%
Forgetting to halve the sum20 ÷ 100 = 20%20 ÷ (100 ÷ 2) = 40%
Keeping the sign40 − 60 = −20, so −40%|40 − 60| = 20, so 40%
Calling it an increase"60 is 40% more than 40"60 is 50% more than 40; they differ by 40%
Using it for a before and afterPrice 40 → 60 is a 40% riseThat is a +50% percent change
Reversing by adding the percent20% away from 50 is 6050 × 220 ÷ 180 ≈ 61.11

Percentage difference formula in Excel and Google Sheets

Put the two values in A2 and B2, then format the answer cell as a percentage. The same formulas work in Excel and Google Sheets.

Spreadsheet formulas for percentage difference (A2 and B2 are the two values)
To findFormulaFormat as
Percentage difference=ABS(A2-B2)/AVERAGE(A2,B2)Percentage
Percentage difference, safe with negative values=ABS(A2-B2)/ABS(AVERAGE(A2,B2))Percentage
Skip a zero average=IF(A2+B2=0,"n/a",ABS(A2-B2)/ABS(AVERAGE(A2,B2)))Percentage
Percent change from A2 to B2=(B2-A2)/ABS(A2)Percentage
Absolute difference=ABS(A2-B2)Number

Worked example

Comparing the price of the same item at two shops

A pack of coffee costs 4.99 at one shop and 5.49 at another. What is the percentage difference between the two prices?

  1. Find the absolute difference: |4.99−5.49|=0.50|4.99 - 5.49| = 0.50.
  2. Find the average: (4.99+5.49)÷2=5.24(4.99 + 5.49) \div 2 = 5.24.
  3. Divide and multiply by 100: 0.50÷5.24×100≈9.54%0.50 \div 5.24 \times 100 \approx 9.54\%.
  4. For comparison, the higher price is 0.50÷4.99×100≈10.02%0.50 \div 4.99 \times 100 \approx 10.02\% more than the lower one, and the lower price is about 9.11% less than the higher one.

Answer: The two prices differ by about 9.54%. That figure stays the same whichever shop you list first.

Frequently asked questions

How do you calculate the percentage difference between two numbers?

Subtract one number from the other and drop the sign, divide by the average of the two numbers, and multiply by 100. For 40 and 60: 20 ÷ 50 × 100 = 40%.

Does the order of the numbers matter in percentage difference?

No. The absolute difference and the average are the same whichever number comes first, so 40 and 60 give 40%, and so do 60 and 40. Percent change is the measure that depends on the order.

What is the difference between percent difference and percent change?

Percent difference divides by the average and has no direction; percent change divides by the old value and is signed. For 40 and 60 the percent difference is 40%, while the percent change from 40 to 60 is +50% and from 60 to 40 is −33.33%.

When is the percentage difference 100%?

When one value is three times the other, such as 25 and 75. The difference, 50, equals the average, 50. Two values where one is double the other differ by about 66.67%.

Can percentage difference be more than 100%?

Yes, up to just under 200% for positive values. 10 and 1,000 differ by about 196.04%. It reaches exactly 200% only when one value is 0, which is why it is not used to compare against zero.

How do I find percentage difference with zero or negative numbers?

If the two values average to 0 the result is undefined, and if one value is 0 it is always 200%. With negative values the formula can be applied to the size of the average, but the result is hard to read, so give the absolute difference as well.

Is percent difference the same as percent error?

No. Percent error compares a measured value with an accepted value and divides by the accepted value. Percent difference compares two values of equal standing and divides by their average. Use percent difference when neither value is known to be correct.

What is the formula for percentage difference in Excel?

With the values in A2 and B2, use =ABS(A2-B2)/AVERAGE(A2,B2) and format the cell as a percentage. Wrap the average in ABS() if either value can be negative.

Percent Change Calculator

Percent change from an old value to a new one, signed as an increase or decrease, with the working shown.

Arithmetic & Numbers

Percentage Calculator

Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.

Arithmetic & Numbers

Fraction Calculator

Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.

Arithmetic & Numbers

Statistics Calculator

Mean, median, mode, five-number summary, IQR, outliers and SD with steps, a histogram and a box plot.

Statistics & Probability

Scientific Calculator

Type or tap expressions with exact fractions, memory, variables, constants and complex mode.

Tools

Sources and further reading

  1. Relative change (Percentage difference section) (opens in a new tab), Wikipedia
  2. Accuracy, Precision, and Significant Figures (Section 1.3, College Physics 2e) (opens in a new tab), OpenStax, Rice University
  3. Calculate percentages (opens in a new tab), Microsoft Support

Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?