Skip to the calculator
Rule Calculator

Percent Difference

With first value 40, second value 60, percent difference comes to 40.00 % — percent difference. It is reached in 6 steps, the last of which is 20 / abs(50) * 100, and each one is printed on the page with its numbers filled in. The formula is the one published by NIST/SEMATECH e-Handbook, not an approximation fitted to it.

Percent difference between two values, divided by their mean — beside percent change, which divides by one of them and gives a different answer.

Formula and sources checked · How we check

First value 40, Second value 60

40.00 %

Percent difference for the example below. Editing a field recomputes the calculator below; this figure holds the answer the page was loaded with.

It is written into the HTML rather than drawn by a script, so a search engine reading this page without running JavaScript still finds an answer.

Percent difference
40.00 %
Absolute difference
abs(40 - 60)20
Mean of the two
(40 + 60) / 250
Percent difference
20 / abs(50) * 10040 %
Percent change from the first to the second
(60 - 40) / abs(40) * 10050 %
Percent change from the second to the first
(40 - 60) / abs(60) * 100-33.333 %
The second as a share of the first
60 / 40 * 100150 %

Ask about this in the chat

Worked example

40 and 60 differ by 40%, because 20 over their mean of 50 is 40%. Going from 40 to 60 is a 50% increase, and going from 60 to 40 is a 33.3% decrease. Three answers, all correct, and the one to use depends on whether either value is a baseline.

How to work it out yourself

  1. 1.Use percent difference when neither value is the reference — two lab measurements of the same sample, two suppliers quoting the same part, two people’s guesses.
  2. 2.Use percent change when one value came first. A price rising from 40 to 60 rose 50%, not 40%, because 40 is the base the increase is measured against.
  3. 3.The percent difference is symmetric: swapping the inputs leaves it unchanged. Percent change is not, which is why "40% apart" and "50% more" describe the same pair.
  4. 4.Both are undefined when the mean or the base is zero. Two values of +5 and −5 have a mean of zero, and no relative measure exists there.

Percent difference from 40, second value varied

06012010 Second value: 120 %20 Second value: 66.7 %30 Second value: 28.6 %40 Second value: 0 %50 Second value: 22.2 %60 Second value: 40 %70 Second value: 54.5 %80 Second value: 66.7 %100 Second value: 85.7 %120 Second value: 100 %160 Second value: 120 %10160Second value
Percent difference from 40, second value varied
Second valuePercent differencePercent change from the first to the second
10120.00 %-75 %
2066.67 %-50 %
3028.57 %-25 %
400.00 %0 %
5022.22 %25 %
6040.00 %50 %
7054.55 %75 %
8066.67 %100 %
10085.71 %150 %
120100.00 %200 %
160120.00 %300 %

The two columns diverge as the values separate. From 40 to 80, percent difference is 66.7% and percent change is 100% — the same pair of numbers, two questions, two right answers.

The formula

  1. Absolute differenceabs(40 - 60)
  2. Mean of the two(40 + 60) / 2
  3. Percent difference20 / abs(50) * 100
  4. Percent change from the first to the second(60 - 40) / abs(40) * 100
  5. Percent change from the second to the first(40 - 60) / abs(60) * 100
  6. The second as a share of the first60 / 40 * 100

Source: NIST/SEMATECH e-Handbook — measures of relative difference, ISO 5725-1 — accuracy, trueness and precision of measurement methods

Questions people actually ask

What is the difference between percent difference and percent change?
The denominator. Percent change divides by the starting value, so it needs one of the two to be a baseline. Percent difference divides by the mean of both, so it treats them as equals and gives the same answer either way round. From 40 to 60 is a 50% change and a 40% difference.
What is the formula for percent difference?
|a − b| ÷ ((a + b) ÷ 2) × 100. The absolute value on top makes the result positive, and the mean on the bottom makes it symmetric.
Can percent difference exceed 100%?
Yes, up to 200% as one value approaches zero. 1 and 99 have a mean of 50 and a gap of 98, so a percent difference of 196%. It cannot exceed 200% for two positive numbers, which is one of the reasons the measure is used in error analysis.
Which one do labs use?
Percent difference, when comparing duplicate measurements of the same sample, because neither is the truth. When comparing a measurement to a known standard they use percent error instead, which divides by the accepted value — the standard is the baseline.
What about percentage points?
A different thing again. If a rate goes from 40% to 60%, that is 20 percentage points, a 50% increase, and a 40% difference. Newspapers confuse the first two constantly, usually in the direction that makes the number larger.

Related

Put this calculator on your site

Free, no attribution required beyond the link.

<iframe src="https://rulecalculators.com/embed/percent-difference" width="100%" height="420" style="border:1px solid #e7e4de;border-radius:12px" title="Percent Difference"></iframe>
Did this answer your question?