Percentage Difference
Calculate the percentage difference between two numbers.
What is percentage difference?
Percentage difference measures how far apart two values are relative to their average. Unlike percentage change β which requires a clear βbeforeβ and βafterβ β percentage difference is symmetric: it does not matter which value you call A and which you call B, the result is always the same.
This makes it ideal for comparing two peers where neither is clearly the baseline: two products with different prices, two cities with different populations, two candidates with different polling numbers, or two lab samples from a replicated experiment.
The percentage difference formula
% Difference = (|A β B| Γ· ((A + B) Γ· 2)) Γ 100Breaking it down:
- |A β B| β the absolute difference, always positive
- (A + B) Γ· 2 β the average (mean) of the two values, used as the reference point
- The result is multiplied by 100 to express it as a percentage
Worked example: Comparing two laptops priced at β¬899 and β¬1,149:
|899 β 1149| = 250
(899 + 1149) Γ· 2 = 1024
% difference = (250 Γ· 1024) Γ 100 = 24.4%Percentage difference vs. percentage change
| Percentage difference | Percentage change | |
|---|---|---|
| Direction | Directionless β always positive | Shows increase (+) or decrease (β) |
| Reference point | Average of both values | The original (old) value |
| Symmetry | A vs B = B vs A | AβB β BβA |
| Best for | Comparing two peers | Tracking change over time |
| Example | Price of two cars | Stock price before and after earnings |
Why the average is used as the denominator
Using the average of the two values as the denominator ensures that the formula is symmetric β swapping A and B produces the same result. If instead you used A as the denominator, comparing 50 to 75 would give 50% (75 is 50% more than 50), but comparing 75 to 50 would give 33.3% (50 is 33.3% less than 75). That asymmetry makes the result dependent on which value you arbitrarily choose as the reference β which is not useful when you are comparing peers.
The average-based formula solves this by treating both values equally. The trade-off is that the result is not directly interpretable as βX% more than Yβ β it is a symmetric measure of how different the two values are relative to their midpoint.
Practical examples
When not to use percentage difference
- When there is a clear baseline. If you are measuring change over time (last year vs. this year), use percentage change instead β the old value is the natural reference point.
- When one value is a target or standard. If you are measuring how far a result deviates from a target, use percentage error: (|Measured β Target| Γ· Target) Γ 100.
- When values include zero. The formula breaks down if both values are zero (division by zero). If one value is zero and the other is not, the result is 200% β technically correct, but often not intuitively useful.
- For very large or very small numbers. Percentage difference can be misleading when values span multiple orders of magnitude. In those cases, a log scale or absolute difference may communicate the comparison more clearly.
Frequently asked questions
How is percentage difference calculated?
Take the absolute difference between the two numbers, divide by their average, and multiply by 100. It measures relative difference without a direction.
How does it differ from percentage change?
Percentage change has a direction (from an old value to a new one), while percentage difference is symmetric β it does not matter which number you call first.
When should I use percentage difference?
Use it to compare two independent quantities where neither is the obvious baseline β for example two measurements of the same thing.
Why divide by the average?
Because neither value is the reference point, the average provides a neutral base so the result is the same regardless of order.
% difference = (|A β B| Γ· ((A + B) Γ· 2)) Γ 100