IQR Calculator

Mean Absolute Deviation Calculator

Average distance from the centre, without squaring anything.

Mean absolute deviation calculatorRuns entirely in your browser
Separate values with commas, spaces or line breaks. Paste a column straight from a spreadsheet.
Try:
Deviation about
ResultExclusive method · n = 4
Mean absolute deviation1about the mean (3)average distance from the mean
Count
4
Centre (mean)
3
MAD
1
Std dev s
1.154701
MAD about mean
1
MAD about median
1

Why it differs from standard deviation

Standard deviation squares each deviation before averaging, so a single distant value counts far more heavily. Here the standard deviation is 1.154701 against a MAD of 1.

How we calculated it

Find the mean
mean = 3
Take the absolute distance of each value from it
See the table below.
Σ|x − mean| = 4
Divide by the count
MAD = 4 ÷ 4 = 1

Deviation table

xx − mean|x − mean|
2-11
2-11
411
411
Total4

The formula

MAD = Σ|x − centre| ÷ n The centre is usually the mean; the median is the other common choice.

Take each value's distance from the centre, drop the sign, and average. That is the whole calculation — no squaring, no square root. The result is the average distance from the centre, in the original units, and it means literally what it says.

MAD or standard deviation?

Both measure spread; they differ in how they treat distant values. The standard deviation squares each deviation first, so a value three times further out contributes nine times as much. The MAD weights every deviation by exactly its distance.

That makes the MAD more robust and easier to explain — "on average, values sit 6 away from the mean" needs no further translation. What it lacks is the mathematical convenience that keeps the standard deviation dominant: variances add, absolute deviations do not, and almost all of inferential statistics is built on the squared version.

Comparing the two is informative in itself. For normal data the standard deviation is about 1.25 times the MAD. A ratio much larger than that points to heavy tails or a few distant values — the calculator above reports both so the comparison is there to make.

Deviation about the median

Switching the centre to the median gives the most robust version of the measure. It is also mathematically the best choice: of all possible centres, the median is the one that minimises the sum of absolute deviations, just as the mean minimises the sum of squared deviations. So MAD-about-the-median is always less than or equal to MAD-about-the-mean.

A naming collision

"MAD" also abbreviates median absolute deviation — the median of the absolute deviations, rather than their mean. It is a different statistic used mainly in robust estimation. This calculator computes the mean absolute deviation, about either centre.

Worked example

A minimal example

Data: 2, 2, 4, 4

The mean is 3. The absolute deviations are 1, 1, 1, 1, summing to 4. MAD = 4 ÷ 4 = 1. For comparison the sample standard deviation is about 1.155 — larger, as it always is on data like this, because of the squaring.