What this calculator does
Measure the absolute difference between two values relative to their average magnitude.
How it works
The calculator evaluates percentage difference = |a − b| ÷ ((|a| + |b|) ÷ 2) × 100%. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
2-
?valueA=First valueNumber · Required · Default: 80
-
?valueB=Second valueNumber · Required · Default: 100
Outputs
3-
percentageDifferencePercentage differencePercentage · Primary output
-
absoluteDifferenceAbsolute differenceNumber
-
averageMagnitudeAverage magnitudeNumber
Inputs and results
The inputs are First value, Second value. Results include Percentage difference, Absolute difference, Average magnitude.