Skip to main content
ponderloop

Percent Difference Calculator

For 50 and 40: Percent difference ≈ 22.22%. 50 and 40 differ by 10, which is ≈ 22.22% of their average 45. Percent change would give −20.00% going from 50 to 40 but +25.00% going back, which is why the symmetric percent difference exists.

Updated By ponderloop editorial · How we checkRuns in your browser: nothing you enter is uploadedHow this tool worksEmbed this tool

Results update as you type. Nothing is uploaded.

Percent difference ≈ 22.22%

50 and 40 differ by 10, which is ≈ 22.22% of their average 45.

Percent difference
≈ 22.22%
Difference |a − b|
10
Average (a + b) ÷ 2
45

Difference vs percent change

Percent change divides by the starting value, so it depends on direction. Percent difference divides by the average and gives one answer.

Percent change 50 → 40
−20.00%
Percent change 40 → 50
+25.00%
Percent difference (symmetric)
≈ 22.22%

Share of total

50
≈ 55.56%
40
≈ 44.44%

The working

  1. |50 − 40| = 10.
  2. Average of the two values = (50 + 40) ÷ 2 = 45.
  3. 10 ÷ 45 × 100 ≈ 22.22%.
  4. Percent change 50 → 40 = (40 − 50) ÷ 50 × 100 = −20.00%.
  5. Percent change 40 → 50 = (50 − 40) ÷ 40 × 100 = +25.00%.
  6. Share of the total 90: 50 is ≈ 55.56%, 40 is ≈ 44.44%.

Worked examples

Each row is the calculator’s own answer at two decimal places. Percent difference ignores order; percent change does not.
SituationValue aValue bPercent differenceChange a → bChange b → a
Two prices for the same item19.9924.99≈ 22.23%≈ +25.01%≈ −20.01%
Two measurements of one length (cm)12.412.9≈ 3.95%≈ +4.03%≈ −3.88%
Two lab readings (mg/dL)95110≈ 14.63%≈ +15.79%≈ −13.64%
Class sizes of two schools5040≈ 22.22%−20.00%+25.00%
Two test scores (points)7290≈ 22.22%+25.00%−20.00%
One value is zero08200.00%Undefined (starting value is 0)−100.00%

Which percentage to use

The same two numbers answer different questions depending on what the wording says.
QuestionDivide byOrder mattersTool
How different are two values, neither one the reference?Average of the twoNoThis calculator
How much did a value rise or fall from an old value?The old valueYesPercent change calculator
How far is a measurement from the accepted value?The accepted valueYesPercent error calculator
What share of the whole is each value?The total a + bNoThis calculator, share of total

How to find the percent difference between two values

  1. Enter both values. Type value a and value b, for example 50 and 40. Commas, decimals, a minus sign, $ and % are accepted. Order does not matter.
  2. Choose the decimal places. The default is two. A rounded result is marked with ≈ when it is not exact.
  3. Read the result and the working. The headline shows ≈ 22.22%. The comparison block shows percent change each way, the bar shows each value’s share of the total, and the working lists every step.

Frequently asked questions

What is the percent difference formula?
Percent difference = |a − b| ÷ ((a + b) ÷ 2) × 100. For 50 and 40: |50 − 40| = 10, the average is 45, and 10 ÷ 45 × 100 gives ≈ 22.22%.
What is the difference between percent difference, percent change and percent error?
Percent difference compares two values with neither one as the reference and divides by their average. Percent change (see the percent change calculator) treats the first value as the starting point and divides by it. Percent error (see the percent error calculator) treats one value as the accepted truth. For 50 and 40: difference ≈ 22.22%, change −20.00%.
Why does percent change depend on direction but percent difference does not?
Percent change divides by the starting value, so the base moves when you swap. From 50 to 40 it is −20.00%; from 40 to 50 it is +25.00%. Percent difference divides by the average, which is the same either way: swapping gives ≈ 22.22%.
Which one should I use for two prices?
If one price is the old price, use percent change: 19.99 to 24.99 is ≈ +25.01%. If you only ask how far apart two prices are, such as two stores, percent difference gives ≈ 22.23% and does not depend on which store you list first.
How are negative values handled?
The calculator divides by the size of the average, |(a + b) ÷ 2|, so the result is never negative. For -50 and -40 it gives ≈ 22.22%, the same as for 50 and 40. For -6 and 4 the average is only −1, so the result is large: 1,000.00%. Percent difference is rarely meaningful when the two values have opposite signs.
What happens when the average is zero?
It is undefined, because the formula divides by the average. That happens when both values are 0 (Undefined (the average is 0)) and when the values are opposites such as 5 and -5 (average 0). The tool says so instead of showing a number; the plain difference, 10 for 5 and -5, is still shown.
What if only one value is 0?
Percent difference still works: for 0 and 8 it is 200.00%, because the average is 4 and the gap is 8. Percent change from 0 is undefined (Undefined (starting value is 0)), but from 8 down to 0 it is −100.00%.
How does rounding work?
Everything is computed exactly with fractions and rounded only for display, halves away from zero. For 1 and 2 the result is ≈ 66.67% at two places and ≈ 67% at none. A leading ≈ means the shown number is rounded.
What is the share of total?
Each value divided by a + b, as a percent. For 30 and 70 the shares are 30.00% and 70.00%, and they add to 100%. It needs two values of 0 or more.
Is anything I type sent to a server?
No. The two values you compare are used in your browser to work out the percent difference and the percent change, and are not uploaded or stored.

How it works

The calculator reads both values as typed (commas, a leading currency sign and a trailing % are ignored) and keeps them as exact fractions. Percent difference is |a − b| ÷ |(a + b) ÷ 2| × 100, the symmetric relative difference that uses the mean of the two values as the reference. Percent change from x to y is (y − x) ÷ |x| × 100, and the share of the total is each value ÷ (a + b) × 100. Only the final percentages are rounded, to the number of places you choose. For 50 and 40 that gives ≈ 22.22%. Other conventions exist, such as dividing by the larger value or by the mean of the absolute values; they give different numbers for the same inputs, so use the one your course or lab specifies.

To apply a percentage to a price, calculate a discount.

Sources

More: Percent, fractions and arithmeticAll math & numbersAll toolsHome & DIY calculators