Mean absolute deviation (MAD): formula and examples

By Jude Wallis · Published

The mean absolute deviation (MAD) is the average distance between the values and the mean. Subtract the mean from each value, drop the minus signs, then average what is left. MAD and the standard deviation both measure spread in the original units, and MAD is never the larger of the two.

AP Statistics: Unit 1 (topics 1.7 Summary Statistics for One Quantitative Variable). Topic 1.7 of the Fall 2026 AP Statistics course names the range, the interquartile range, and the standard deviation as the measures of variability for one quantitative variable. The mean absolute deviation is not among them and is not on the AP formula sheet, but it is a direct route to understanding what the standard deviation measures.

What the mean absolute deviation measures

The mean absolute deviation answers one plain question: on average, how far is a value from the mean? The formula says exactly that.

MAD=1nxixˉ\text{MAD} = \frac{1}{n}\sum |x_i - \bar{x}|

Here xˉ\bar{x} ("x-bar") is the sample mean, nn is how many values you have, and xixˉ|x_i - \bar{x}| is the distance from one value to the mean with the sign thrown away. The vertical bars are absolute value, so a value 3 below the mean and a value 3 above the mean both contribute 3.

The absolute value is doing necessary work. Deviations from the mean always add to exactly zero, because the mean sits at the balance point of the data. For 2, 4, 6, 8 the mean is 5 and the deviations are -3, -1, 1, and 3, which sum to 0. Averaging raw deviations would report zero spread for every data set on earth. Absolute value fixes that by making every deviation count as a distance.

MAD comes out in the units of the data. For commute times in minutes, a MAD of 2.3 means "the typical commute sits about 2.3 minutes from the average commute." That plain reading is MAD's main selling point over the standard deviation, which needs a squaring step and a square root before it lands back in minutes.

How to find MAD in four steps

  1. Find the mean xˉ\bar{x}.
  2. Subtract the mean from every value to get the deviations xixˉx_i - \bar{x}.
  3. Drop the sign on each one, giving xixˉ|x_i - \bar{x}|.
  4. Add those distances and divide by nn.

Step 4 divides by nn, not by n1n - 1. That is a real difference from the sample standard deviation, which uses n1n - 1 to correct a bias in estimating a population variance. MAD has no such correction in standard use, so it always divides by the count. If you are unsure why the standard deviation is different, see why divide by n minus 1.

One warning about the abbreviation. Some software and some statisticians use MAD for the median absolute deviation, the median of the distances from the median, which is a different and much more outlier-resistant number. In an introductory course MAD means mean absolute deviation about the mean, but check the definition before you trust a printout.

MAD is never larger than the standard deviation

For any data set at all, the mean absolute deviation is less than or equal to the population standard deviation, and the population standard deviation is less than or equal to the sample standard deviation:

MADσs\text{MAD} \le \sigma \le s

So MAD is at most as large as either version of the standard deviation. Four data sets, all computed the same way:

Data setMADPopulation SD σ\sigmaSample SD ss
2, 4, 6, 82.00002.23612.5820
7, 8, 8, 9, 10, 12, 13, 152.31252.63392.8158
12, 14, 15, 15, 16, 18, 7815.428622.110123.8817
10, 205.00005.00007.0711

The last row is the one case where MAD ties the population standard deviation. With only the two values 10 and 20, both deviations from the mean of 15 have size 5, so squaring and unsquaring changes nothing. That is the general rule: MAD equals σ\sigma exactly when every value sits the same distance from the mean, and MAD is strictly smaller otherwise.

The reason is short, and it also delivers the equality case. Write di=xixˉd_i = x_i - \bar{x} for the deviations. Then σ2\sigma^2 is the average of the squared distances di2d_i^2, while MAD is the average of the distances di|d_i| themselves. So σ2MAD2\sigma^2 - \text{MAD}^2 is the average of the squared distances minus the square of their average, which is exactly the variance of those distances, and no variance is ever negative. That forces σ2MAD2\sigma^2 \ge \text{MAD}^2, with equality only when the distances have no spread at all, meaning every value sits the same distance from the mean. Squaring weights the far-out distances more heavily than the near-in ones, so the more the distances vary among themselves, the wider the gap: in the third row, one value at 78 makes σ\sigma about 1.43 times MAD, while in the first row the ratio is only about 1.12.

For a normal population there is a fixed ratio. The mean absolute deviation equals σ2/π\sigma\sqrt{2/\pi}, which is about 0.798σ0.798\sigma. That is one reason MAD never took over: on the normal curve the course is built around, it carries the same information as σ\sigma but does not plug into anything.

Why statistics squares instead of taking absolute values

MAD is easier to explain, so why is the standard deviation everywhere instead? Four reasons, in rough order of how much they matter.

Squares are smooth and absolute values are not. The function f(d)=d2f(d) = d^2 has a derivative everywhere. The function f(d)=df(d) = |d| has a corner at d=0d = 0 where no derivative exists. Almost every result in statistics is derived by setting a derivative to zero and solving, and that whole machine stalls on a corner. Least-squares regression is the clearest case: you can find the least-squares regression line in closed form precisely because the thing being minimized is a smooth sum of squares. The absolute-value version has no such tidy formula.

Squared deviations point at the mean; absolute deviations point at the median. The mean is the number that makes (xic)2\sum (x_i - c)^2 as small as possible. The median is a number that makes xic\sum |x_i - c| as small as possible; with an even count, so is anything between the two middle values. Check it on 7, 8, 8, 9, 10, 12, 13, 15, where the mean is 10.25 and the median is 9.5: the sum of absolute deviations is 18.5 about the mean but only 18 about the median, while the sum of squared deviations is 55.5 about the mean and 60 about the median. Each center has its own natural measure of spread, so pairing the mean with an absolute-value spread is a slightly mismatched combination.

Variances add and MADs do not. For independent random quantities, variances combine by adding, which is what makes standard errors work. There is no comparable rule for MAD, so it cannot carry you into inference.

The standard deviation is already load-bearing. It defines the z-score, it drives the empirical rule, and it sits inside every standard error and margin of error later in the course. Replacing it would mean rebuilding all of that. For more on the squaring step itself, see why is variance in squared units and why square the residuals.

What an outlier does to MAD and to the standard deviation

Neither measure is resistant. Both use the mean, and both use every value, so a single extreme observation moves both. But it does not move them equally.

Take seven commute times: 12, 14, 15, 15, 16, 18, 22 minutes. The mean is 16, MAD is 2.2857, and the sample standard deviation is 3.2146. Now change the last value to 78 minutes, as though one trip hit a road closure. The mean jumps to 24, MAD jumps to 15.4286, and ss jumps to 23.8817.

MAD grew by a factor of about 6.75. The standard deviation grew by a factor of about 7.43. The squaring step gave the one enormous deviation extra leverage, so the standard deviation reacted harder. Be careful how you state that comparison, because it is a claim you often see put too strongly. The safe form is the absolute one: an outlier moves ss further than it moves MAD, so the gap between the two widens. Comparing growth factors, as the numbers above do, is a different question, and with only a handful of values MAD is sometimes the one that multiplies by more. Neither version makes MAD resistant. If you want a genuinely resistant measure of spread, use the interquartile range instead. See what is a resistant statistic and standard deviation vs IQR.

Where MAD fits the AP course

Topic 1.7 of the Fall 2026 AP Statistics course names three measures of variability: the range, the interquartile range, and the standard deviation. The mean absolute deviation is not one of them, and it is not on the AP formula sheet, so you will not be asked to compute a MAD on the exam.

It is still worth the ten minutes. Middle school and pre-AP courses teach MAD first because the idea of "average distance from the mean" is exactly what a standard deviation is trying to be, minus the squaring. If you can explain MAD, you can explain what ss is measuring, which is the interpretation the AP exam does ask for: a typical distance between the values and their mean. Many introductory college courses also use MAD as a stepping stone for the same reason.

When a question asks you to describe spread, report an IQR or a standard deviation with units. Which of the two you should report is decided by the shape of the distribution, covered in how to describe the shape of a distribution. To compute the standard deviation itself, follow standard deviation by hand or use the standard deviation calculator.

Find the mean absolute deviation of eight quiz scores

Eight students score 7, 8, 8, 9, 10, 12, 13, 15 on a 15-point quiz. Find the mean absolute deviation, then compare it with the sample standard deviation.

  1. Find the mean. The sum is 7+8+8+9+10+12+13+15=827 + 8 + 8 + 9 + 10 + 12 + 13 + 15 = 82, and n=8n = 8, so xˉ=82/8=10.25\bar{x} = 82/8 = 10.25 points.

  2. Find each deviation xixˉx_i - \bar{x}: -3.25, -2.25, -2.25, -1.25, -0.25, 1.75, 2.75, 4.75. As a check, these add to 0.

  3. Drop the signs to get the absolute deviations: 3.25, 2.25, 2.25, 1.25, 0.25, 1.75, 2.75, 4.75.

  4. Add the absolute deviations: 3.25+2.25+2.25+1.25+0.25+1.75+2.75+4.75=18.53.25 + 2.25 + 2.25 + 1.25 + 0.25 + 1.75 + 2.75 + 4.75 = 18.5.

  5. Divide by n=8n = 8: MAD=18.5/8=2.3125\text{MAD} = 18.5 / 8 = 2.3125 points.

  6. For comparison, square the deviations and add: 10.5625+5.0625+5.0625+1.5625+0.0625+3.0625+7.5625+22.5625=55.510.5625 + 5.0625 + 5.0625 + 1.5625 + 0.0625 + 3.0625 + 7.5625 + 22.5625 = 55.5.

  7. Divide by n1=7n - 1 = 7 and take the square root: s=55.5/7=7.9286=2.8158s = \sqrt{55.5/7} = \sqrt{7.9286} = 2.8158 points.

  8. Compare. MAD is 2.3125 and ss is 2.8158, so MAD is the smaller number, as it always is unless every value is identical.

MAD=2.3125\text{MAD} = 2.3125 points: the typical score sits about 2.31 points from the mean of 10.25. The sample standard deviation is s=2.8158s = 2.8158 points, larger than MAD because squaring gives the two biggest deviations (3.25 and 4.75) extra weight.

How much does one outlier move MAD compared with s?

Seven commute times in minutes are 12, 14, 15, 15, 16, 18, 22. Compute MAD and the sample standard deviation. Then a road closure turns the 22 into 78. Recompute both and report the factor each one grew by.

  1. Original data. The sum is 12+14+15+15+16+18+22=11212 + 14 + 15 + 15 + 16 + 18 + 22 = 112 and n=7n = 7, so xˉ=112/7=16\bar{x} = 112/7 = 16 minutes.

  2. Absolute deviations from 16: 4, 2, 1, 1, 0, 2, 6. They add to 16, so MAD=16/7=2.2857\text{MAD} = 16/7 = 2.2857 minutes.

  3. Squared deviations: 16, 4, 1, 1, 0, 4, 36, which add to 62. So s=62/6=10.3333=3.2146s = \sqrt{62/6} = \sqrt{10.3333} = 3.2146 minutes.

  4. Now replace 22 with 78. The new sum is 12+14+15+15+16+18+78=16812 + 14 + 15 + 15 + 16 + 18 + 78 = 168, so the new mean is 168/7=24168/7 = 24 minutes.

  5. New absolute deviations from 24: 12, 10, 9, 9, 8, 6, 54. They add to 108, so MAD=108/7=15.4286\text{MAD} = 108/7 = 15.4286 minutes.

  6. New squared deviations: 144, 100, 81, 81, 64, 36, 2916, which add to 3422. So s=3422/6=570.3333=23.8817s = \sqrt{3422/6} = \sqrt{570.3333} = 23.8817 minutes.

  7. Growth factors: MAD went from 2.2857 to 15.4286, a factor of 15.4286/2.2857=6.7515.4286/2.2857 = 6.75. The standard deviation went from 3.2146 to 23.8817, a factor of 23.8817/3.2146=7.4323.8817/3.2146 = 7.43.

Before: MAD=2.2857\text{MAD} = 2.2857 min and s=3.2146s = 3.2146 min. After the outlier: MAD=15.4286\text{MAD} = 15.4286 min and s=23.8817s = 23.8817 min. MAD grew by a factor of about 6.75 and ss by about 7.43, so the standard deviation reacted more strongly. Neither one is resistant; the median stayed at 15 minutes both times.

Frequently asked questions

Is the mean absolute deviation the same as the standard deviation?

No. Both report spread in the data's own units, but MAD averages the distances from the mean while the standard deviation averages the squared distances and then takes a square root. Squaring gives large deviations extra weight, so the two numbers differ for any data set that is not perfectly evenly spread.

Is MAD always smaller than the standard deviation?

It is never larger. MAD is less than or equal to the population standard deviation, which is itself less than or equal to the sample standard deviation. Equality with the population standard deviation happens only when every value sits the same distance from the mean, as with the two values 10 and 20, where both equal 5.

Does MAD divide by n or by n minus 1?

By nn. The mean absolute deviation is a plain average of the distances, so the denominator is the number of values. The n1n - 1 denominator belongs to the sample variance and sample standard deviation, where it corrects a bias in estimating a population parameter.

Is mean absolute deviation on the AP Statistics exam?

No. Topic 1.7 of the Fall 2026 course names the range, the interquartile range, and the standard deviation as measures of variability, and MAD is not on the formula sheet. It is still useful for understanding what a standard deviation is trying to measure, and it appears in many pre-AP and college courses.

Is MAD resistant to outliers?

Not really. The standard deviation moves further, because squaring gives the outlier extra leverage, but MAD still uses the mean and every data value, so one extreme observation moves it a long way. In one example here a single outlier multiplied MAD by 6.75. For genuine resistance, use the interquartile range.