Short answer
Percentage difference for two positive peer values is |A − B| / ((A + B) / 2) × 100. Because the denominator is their mean, swapping A and B never changes the answer.
Scope and assumptions
Defined for two nonnegative peer values with a positive mean; ordered before/after changes and reference-value errors use separate formulas.
Short answer: For two positive peer measurements
AandBwhere neither one is the "starting" or "true" value, percentage difference divides their absolute gap by their average:|A − B| / ((A + B) / 2) × 100. For 80 and 100, the gap is20, the mean is90, and the percentage difference is 22.22%.
Comparing the three relative-percentage formulas
People often say "percent difference" loosely when they actually need percent change or percent error. Using 80 and 100 (with 80 as old/accepted and 100 as new/measured) shows how much the denominator matters:
| Metric | Denominator | Formula | Result for 80 & 100 | Swapping 80 & 100 gives... |
|---|---|---|---|---|
| Percentage difference | Mean of both (A+B)/2 |
` | A − B | / ((A+B)/2) × 100` |
| Percentage change | Starting value (Old) |
(New − Old) / Old × 100 |
+25.0% | −20.0% (directional) |
| Percent error | Accepted reference (A) |
` | M − A | / |
Choose the formula that matches the real question—never pick whichever denominator happens to make a gap look smaller. For laboratory or benchmark comparisons against a known target, see percent error math.
How to verify percentage difference with the existing tool
Our Percentage calculator does not have a one-click percentage-difference tab, so compute it in two quick steps:
- Find the absolute difference
|80 − 100| = 20and the mean(80 + 100) / 2 = 90(or verify the mean in the Average calculator). - Open share mode in the Percentage calculator and enter
20as a share of90to confirm22.2222%.
Where percentage difference breaks down
- Both values are zero:
(0 + 0) / 2 = 0, making division undefined. - Opposite signs (e.g.
-10and+10): Their mean is0, again dividing by zero. Even when the mean is nonzero (such as-5and+10, mean2.5), the ratio15 / 2.5 = 600%is misleading because the denominator is close to zero. - Both values negative: A negative mean flips the sign unless you wrap the denominator in absolute value—and even then, stating raw values and absolute difference is far clearer.
Frequently asked questions
When should I use percentage difference instead of percentage change?
Use percentage difference when comparing two equal-status measurements—such as two stores' prices for the same laptop, or two sensors measuring the same object—where neither number came "first" in time.
Can percentage difference ever exceed 200% for positive numbers?
No. For any two positive numbers A and B, |A − B| is strictly smaller than A + B, so |A − B| / ((A + B)/2) × 100 is always strictly less than 200%.
Why did swapping my two numbers change my result in another calculator?
That calculator ran percentage change (dividing by the first number) rather than symmetric percentage difference (dividing by their mean).