Percentage Difference Calculator

Percentage difference compares two numbers when neither one is the baseline. It divides the gap between them by their mean rather than by either value, so swapping the inputs leaves the answer unchanged. That symmetry is the whole point: duplicate lab samples, two instruments reading the same signal, two analysts costing the same job. This calculator returns the percentage difference, the raw gap and the mean it divided by, and alongside them the ordinary percent change from A to B so you can see how far the two measures diverge for your numbers.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Value AThe first of the two measurements. Order does not affect the percentage difference.100
Value BThe second measurement, in the same units as value A.105

It returns

  • Percentage difference — The gap as a percentage of the mean of the two values. Symmetric in A and B.
  • Absolute difference
  • Mean of the two values — The denominator used by the percentage difference.
  • Percent change from A to B — Shown for contrast: this one divides by A, so it is not symmetric.

The formula

% difference=100|AB||A+B2|
% change=100BA|A|

In plain text: % difference = 100 × |A − B| ÷ |(A + B) / 2|

  • AFirst value (any)
  • BSecond value, same units as A (same as A)

The denominator is the mean of the two values, which is what makes the result symmetric: swapping A and B does not change it. Undefined when the two values average to zero.

Updated Category Percentages & Percent Change Verified against published test cases Reading time 11 min

What percentage difference measures, and when it is the right measure

Percentage difference expresses the gap between two numbers as a share of their average. Use it when the two numbers have equal standing — when there is no earlier value, no correct value, and no reason to treat one as the reference.

That situation is more common than it sounds. Two aliquots of the same sample run through the same instrument. A part measured with callipers and again with a micrometer. Two contractors quoting the same job. Two sensors on the same duct. In every case, calling one of them “the base” would be an arbitrary choice that changes the answer, and the choice would be doing work the data does not support.

Analytical chemistry gives the measure its own name and its own acceptance criteria. Relative percent difference, RPD, is exactly this formula applied to a pair of duplicate results, and quality-control programmes set limits on it — EPA SW-846 methods, for example, specify RPD control limits for laboratory duplicates as part of the method's quality-assurance requirements. A pair failing its RPD limit triggers a re-analysis, so this is not an academic quantity.

The measure has one structural weakness, and it comes from the denominator. If the two values are of opposite sign, their mean lies between them and can be arbitrarily close to zero, which sends the percentage difference to arbitrarily large values. If they are exactly equal and opposite, the mean is zero and the quantity does not exist at all. Percentage difference is a tool for two numbers on the same side of zero and of broadly comparable size.

The formula, and how it relates to percent change

Take the size of the gap, divide by the average of the two values, multiply by 100:

% difference = 100 × |A − B| ÷ |(A + B)/2|

The numerator is an absolute value, so the result is never negative. That is deliberate. A signed result would need a direction, and a direction needs a reference, which is precisely what this measure declines to choose. If you need direction, you have a baseline, and you want percent change instead.

The two measures share a numerator and differ only in their denominator, which makes their relationship easy to state exactly. Writing Δ = |A − B|, percent change from A is 100Δ/|A| and percentage difference is 100Δ/|m| where m is the mean. Their ratio is therefore

% difference ÷ % change from A = |A| ÷ |m|

So percentage difference is smaller than the percent change measured from A exactly when |m| > |A|, which for two positive numbers means B > A. Measure the change from the larger of the two values and percentage difference comes out larger; measure it from the smaller and percentage difference comes out smaller. It always sits between the two possible percent changes, which is another way of saying it is the compromise between two arbitrary choices of base.

One consequence surprises people: the percentage difference between two values can exceed 100%. It reaches exactly 100% when one value is three times the other, because then the gap is 2x and the mean is 2x. Beyond a 3:1 ratio it keeps climbing, approaching 200% as one value approaches zero. Percent change has no such ceiling either, but its behaviour is different, and comparing the two on the same pair of numbers is the fastest way to see which one your reader will misread.

Worked example: duplicate laboratory results

A laboratory runs a sample in duplicate for lead by ICP-MS and reports 2.9 mg/kg and 3.0 mg/kg. The method's quality-control limit for duplicates is an RPD of 20%. Do the results pass?

  1. Absolute difference. |2.9 − 3.0| = 0.1 mg/kg.
  2. Mean. (2.9 + 3.0) ÷ 2 = 5.9 ÷ 2 = 2.95 mg/kg.
  3. Ratio. 0.1 ÷ 2.95 = 0.0338983. Check it back: 2.95 × 0.0338983 = 0.1000, so the division is right.
  4. Percentage difference. 100 × 0.0338983 = 3.39%.

3.39% against a 20% limit is a comfortable pass, and the pair would be accepted without re-analysis.

Now see what a baseline choice would have done. Percent change from 2.9 to 3.0 is 0.1 ÷ 2.9 = 3.4483%. Percent change from 3.0 to 2.9 is −0.1 ÷ 3.0 = −3.3333%. The percentage difference of 3.3898% lies between the magnitudes 3.4483% and 3.3333%, as the algebra above requires. Here the three numbers are close enough that nothing hangs on the choice.

Widen the gap and the choice starts to matter. Compare 1 and 3: the percentage difference is 2 ÷ 2 = 100%, percent change from 1 to 3 is 200%, and percent change from 3 to 1 is −66.67%. Three defensible descriptions of the same pair, spanning a factor of three. When you report a percentage comparison of two dissimilar numbers, you have to say which one you divided by, because the reader cannot recover it from the percentage alone.

What counts as an acceptable percentage difference

There is no universal threshold, because the acceptable gap depends on what produced the two numbers. Three benchmarks are worth having.

A published control limit. Where one exists, it wins. Environmental and clinical laboratories work to method-specific RPD limits, typically stated in the method itself; anything from 10% to 30% is common depending on the analyte, the matrix and how close the result is to the detection limit. Duplicates near the detection limit are usually judged on an absolute criterion instead, because RPD becomes unstable as both values approach zero.

Note the direction of that last point carefully: as both values shrink towards zero with a fixed absolute gap between them, the mean shrinks too, so the percentage difference grows. A 0.1 unit gap is 3.4% at a mean of 2.95 and 20% at a mean of 0.5. Nothing about the measurement got worse; the denominator got smaller.

The combined precision of the two methods. If instrument A repeats to ±2% and instrument B to ±3%, a 4% difference between them is unremarkable. Expect roughly the quadrature sum of the two relative precisions, and treat anything much beyond that as evidence of a real bias rather than of scatter.

The decision the number feeds. A 5% difference between two structural load estimates and a 5% difference between two paint-colour readings are not the same event. Ask what changes at the threshold you are approaching, and set the limit from that rather than from a round number.

When a percentage difference is large, look at the absolute difference before concluding anything. Percentage measures are compression: they throw away the scale on purpose. A 40% difference between 0.002 and 0.003 and a 40% difference between 2,000 and 3,000 are the same number and rarely the same problem.

Percentage difference against percent change for the same pairs

Both measures use the same numerator. The only distinction is the denominator: the mean of the pair, or one designated base.
ABMeanPercentage difference% change A→B% change B→A
100101100.50.9950%1.0000%−0.9901%
100105102.54.8780%5.0000%−4.7619%
1001101059.5238%10.0000%−9.0909%
100125112.522.2222%25.0000%−20.0000%
10015012540.0000%50.0000%−33.3333%
10020015066.6667%100.0000%−50.0000%
100300200100.0000%200.0000%−66.6667%

The percentage difference always lies between the magnitudes of the two percent changes, because its denominator lies between the two possible bases. The 100:300 row is where percentage difference reaches exactly 100%.

Ways this measure gets misused

  • Using it when there is a baseline. Sales this year against sales last year is a percent change question. Dividing by the mean of the two years describes nothing anyone wants to know.
  • Using it when one value is authoritative. A measurement against a certified reference value is percent error, which divides by the accepted value. Dividing by the mean drags the reference towards your own result.
  • Applying it across zero. With values of opposite sign the mean can be close to zero and the percentage explodes. The calculator warns about this, and the honest answer is usually to report the absolute difference.
  • Comparing quantities in different units. The formula is dimensionless only because the units cancel. 3 mg/L against 3 µg/L is a factor of 1,000, not a 0% difference.
  • Reporting a percentage difference near the detection limit. Both values are then dominated by noise and the mean is small, so the measure is at its least stable exactly where laboratories most often want a number.
  • Averaging percentage differences across pairs. The mean of several RPDs is not the RPD of the pooled data. If you need a summary of many duplicate pairs, use a pooled relative standard deviation.

Choosing between the percentage comparisons

Four measures sit in this family and the choice between them is entirely a choice of denominator.

Percentage difference divides by the mean. Symmetric, non-negative, no baseline required. Duplicate samples, inter-instrument comparisons, two independent estimates.

Percent change divides by the earlier or original value and keeps its sign. Time series, before-and-after, growth rates.

Percent error divides by the accepted value. One value is correct by assumption, the other is being judged against it.

Percentage of a whole divides by a total of which the value is a component. Shares, compositions, market splits.

Two habits make percentage comparisons far more readable. First, always publish the absolute difference beside the percentage, because the percentage alone cannot tell a reader whether the gap matters. Second, name the denominator in words — “3.4% of the mean of the pair” rather than just “3.4% different” — since the same pair supports several different percentages and only the denominator distinguishes them.

Where the comparison is between more than two values, none of these scale up gracefully. A relative standard deviation, which is the standard deviation divided by the mean, generalises the idea properly to a set of replicates, and it reduces to a fixed multiple of the percentage difference for a pair: for two values the sample standard deviation is |A − B|/√2, so the relative standard deviation is the percentage difference divided by √2, or about 70.7% of it. If you are moving from duplicates to triplicates, that is the quantity to switch to.

Frequently asked questions

What is the difference between percentage difference and percentage change?

The denominator. Percentage difference divides the gap by the mean of the two values, so it is symmetric and unsigned; percent change divides by the earlier or original value, so it has a direction and a sign. Use percentage change when one value genuinely comes first or is genuinely the baseline. Use percentage difference when neither has that status, such as two duplicate measurements of the same sample.

Can percentage difference be more than 100%?

Yes. It reaches exactly 100% when one value is three times the other — the gap is then 2x and the mean is 2x — and it keeps rising beyond that ratio. The theoretical ceiling is 200%, approached as one of the two values goes to zero with the other fixed. If your result is above 100%, check whether a percentage comparison is really the right description of two numbers that far apart.

Why is my percentage difference undefined?

Because the two values average to zero, which happens whenever they are equal and opposite, such as +5 and −5. The formula divides by that mean, so there is no answer. More generally, values of opposite sign make the mean small and the percentage large and unstable, which is why the calculator warns when the signs differ. Report the absolute difference in these cases.

What is RPD and is it the same thing?

Relative percent difference is the same formula, applied to a pair of duplicate analytical results. Environmental and clinical laboratories use it as a routine precision check, comparing it against a method-specified control limit — commonly somewhere between 10% and 30% depending on the analyte and matrix. The limit belongs to the method, so read it from the method rather than assuming a round number.

Which value should I put in A and which in B?

It does not matter for the percentage difference, which is the reason to use this measure at all — swapping the inputs leaves it unchanged. It does matter for the percent change output, which divides by A and therefore reports a different magnitude and the opposite sign if you swap them. If the order of your two values carries meaning, that is a hint that percent change is the measure you actually want.

Why does the same pair give three different percentages?

Because three different denominators are available. For 100 and 300: dividing by the mean of 200 gives 100%, dividing by 100 gives 200%, and dividing by 300 gives 66.67%. All three are arithmetically correct statements about the same pair. A percentage is only interpretable once you say what it is a percentage of, which is why reports should name the denominator rather than just quote the number.

How do I extend this to three or more measurements?

Switch to relative standard deviation: the standard deviation of the set divided by its mean, expressed as a percentage. Percentage difference is defined only for a pair, and averaging several pairwise differences does not give a meaningful summary. For exactly two values the two measures are proportional — the relative standard deviation is the percentage difference divided by √2 — so the switch is continuous rather than a break in convention.

Should I quote the absolute difference as well?

Always. A percentage deliberately discards the scale, so it cannot tell your reader whether a gap matters. A 40% difference between 0.002 and 0.003 and a 40% difference between 2,000 and 3,000 are the same percentage and rarely the same problem. Reporting both, with units, lets a reader judge the comparison instead of taking your word for it.

References