Mean Absolute Deviation Calculator
Paste a list of numbers to find the mean absolute deviation (MAD). You get the mean, each value’s distance from it in a table, and the full working, so you can see how the answer is built.
Your data
Measure distances from the
Result
Picture of the distances
Step-by-step working
How to use the mean absolute deviation calculator
- Type or paste your numbers into the box, separated by commas, spaces or new lines.
- The mean absolute deviation appears straight away, with the mean, the median and other measures of spread.
- Scroll down to see the table of distances and the working, written the way you would set it out by hand.
What is mean absolute deviation?
The mean absolute deviation (MAD) is the average distance between each value in a data set and the mean. It is a measure of spread, also called variability.
- A small MAD means the values are bunched close to the mean.
- A large MAD means the values are spread far from the mean.
The formula is
\[ \text{MAD} = \frac{\sum |x – \bar{x}|}{n} \]
where \(\bar{x}\) is the mean, \(|x – \bar{x}|\) is the distance of a value from the mean, and \(n\) is the number of values.
How to calculate mean absolute deviation
- Find the mean: add all the values and divide by how many there are.
- Find the distance of each value from the mean. Subtract the mean from the value and ignore any minus sign.
- Add up all the distances.
- Divide that total by the number of values.
Worked example: find the mean absolute deviation of 2, 4, 6, 8, 10, 12. The values add up to 42, so the mean is \(\dfrac{42}{6} = 7\). The distances from 7 are 5, 3, 1, 1, 3 and 5. They add up to 18. So \(\text{MAD} = \dfrac{18}{6} = 3\). On average, a value is 3 away from the mean.
| Value \(x\) | \(x – 7\) | Distance \(|x – 7|\) |
|---|---|---|
| 2 | −5 | 5 |
| 4 | −3 | 3 |
| 6 | −1 | 1 |
| 8 | 1 | 1 |
| 10 | 3 | 3 |
| 12 | 5 | 5 |
| Sum | 18 |
Why do we use absolute values?
If you add the plain differences \(x – \bar{x}\), the positive and negative ones always cancel and the total is 0. In the example above, \(-5 – 3 – 1 + 1 + 3 + 5 = 0\). Taking the absolute value turns every difference into a distance, so nothing cancels.
Using MAD to compare two data sets
MAD is most useful for comparing how consistent two groups are. Two classes can have the same mean test score but very different spreads.
Example: Class A scores 70, 75, 80, 85, 90 and Class B scores 78, 79, 80, 81, 82. Both have a mean of 80. Class A has a MAD of 6 and Class B has a MAD of 1.2, so the scores in Class B are much more consistent.
Mean absolute deviation vs standard deviation
Both measure spread around the mean. Standard deviation squares the differences before averaging, so values far from the mean count for more. MAD treats every unit of distance the same, which makes it easier to explain and less affected by extreme values. For most data sets the MAD is a little smaller than the standard deviation.
Do not confuse it with the median absolute deviation, which is the median of the distances from the median. Both are shortened to MAD. In school statistics, MAD almost always means the mean absolute deviation. The calculator shows both.
Frequently asked questions
How do you find the mean absolute deviation?
Find the mean of the data. Work out how far each value is from the mean, ignoring minus signs. Add those distances and divide by the number of values.
What does the mean absolute deviation tell you?
It tells you how far, on average, the values in a data set are from the mean. A bigger MAD means the data is more spread out.
Can the mean absolute deviation be negative?
No. It is an average of distances, and a distance is never negative. The smallest it can be is 0, which happens only when every value is the same.
What is the mean absolute deviation of 2, 4, 6, 8, 10, 12?
The mean is 7. The distances from 7 are 5, 3, 1, 1, 3 and 5, which add up to 18. Dividing by 6 gives a mean absolute deviation of 3.
How do you calculate mean absolute deviation in Excel?
Use the AVEDEV function. For data in cells A1 to A10, type =AVEDEV(A1:A10). It gives the mean absolute deviation about the mean.
Is MAD the same as standard deviation?
No. Both measure spread, but standard deviation squares the differences from the mean and MAD uses plain distances. MAD is usually a little smaller.
