How to Find Mean Absolute Deviation (MAD)
ByMuhammad Ali•Founder of KruskalCode
--:--
8 min read

Two classes take the same test, and both get an average score of 80. Are they the same? Not really. In one class, scores might be spread from 70 to 90. In the other, everyone scored close to 80. The average alone cannot show this. You need a measure of spread, and the easiest one to understand is the mean absolute deviation, or MAD.
Use the free calculator
Skip the longhand math — open the matching ProMathTools calculator and get an instant result.
Use the calculator →Want the answer right away? Use our Mean Absolute Deviation Calculator. It shows every step.
What is mean absolute deviation?
The mean absolute deviation is the average distance between each value and the mean. Absolute means we ignore minus signs: a value 3 below the mean and a value 3 above the mean are both 3 away.
The formula is:
MAD = Σ|x − x̄| ÷ n
- x is each value
- x̄ is the mean
- |x − x̄| is the distance of a value from the mean
- n is how many values there are
How to find MAD in 4 steps
- Find the mean. Add all values and divide by how many there are.
- Find each distance. Subtract the mean from each value and drop the minus sign.
- Add the distances.
- Divide by the number of values. That is the MAD.
Worked example
Find the MAD of: 3, 6, 6, 7, 8, 11, 15, 16
Step 1 — mean: 3 + 6 + 6 + 7 + 8 + 11 + 15 + 16 = 72, and 72 ÷ 8 = 9.
Step 2 — distances from 9:
| Value (x) | x − 9 | Distance |x − 9| |
|---|---|---|
| 3 | −6 | 6 |
| 6 | −3 | 3 |
| 6 | −3 | 3 |
| 7 | −2 | 2 |
| 8 | −1 | 1 |
| 11 | 2 | 2 |
| 15 | 6 | 6 |
| 16 | 7 | 7 |
Step 3 — add them: 6 + 3 + 3 + 2 + 1 + 2 + 6 + 7 = 30.
Step 4 — divide: 30 ÷ 8 = 3.75.
So, on average, each value is 3.75 away from the mean of 9.
Comparing two data sets
Back to the two classes. Both have a mean of 80.
| Class | Scores | Mean | MAD |
|---|---|---|---|
| A | 70, 75, 80, 85, 90 | 80 | 6 |
| B | 78, 79, 80, 81, 82 | 80 | 1.2 |
Class A has a MAD of 6, so its scores are much more spread out. Class B's scores sit tightly around the average (MAD 1.2). A bigger MAD means more spread; a smaller MAD means the data is more consistent.
MAD vs standard deviation
Both measure spread, but they work differently:
- MAD uses plain distances. It is easy to explain and is taught first in school (grade 6).
- Standard deviation squares the distances first, so big distances count much more.
For 2, 4, 6, 8, 10 the MAD is 2.4 and the population standard deviation is about 2.83. The standard deviation is never smaller than the MAD. Learn more in our standard deviation calculator and the variance guide.
What about outliers?
Look at 1, 2, 3, 4, 100. The mean is 22, and the MAD is 31.2, even though four of the five values are between 1 and 4. One outlier pulls the mean and the MAD up.
If your data has outliers, try the median absolute deviation: find the median (3), find each distance from it (2, 1, 0, 1, 97), and take the median of those distances. The answer is 1, which describes the bulk of the data much better. The interquartile range is another spread measure that resists outliers.
Data with frequencies
If values repeat, multiply each distance by its frequency. For values 1, 2, 3 with frequencies 2, 3, 5, the mean is 23 ÷ 10 = 2.3. The distances are 1.3, 0.3 and 0.7, so the sum is 1.3 × 2 + 0.3 × 3 + 0.7 × 5 = 7. The MAD is 7 ÷ 10 = 0.7.
Common mistakes
- Forgetting the absolute value. If you keep the minus signs, the distances always add up to 0.
- Dividing by n − 1. MAD divides by n, the number of values.
- Using the median in step 1 when the question asks for the mean absolute deviation.
- Rounding the mean too early. Keep full precision until the last step.
Try it yourself
Paste your numbers into the Mean Absolute Deviation Calculator to get the mean, MAD, a full steps table and a dot plot. You may also like the mean, median and mode calculator and the variance calculator.
Try the related calculator
Open toolFAQ
What does a MAD of 2 mean?
On average, the values are 2 units away from the mean.
Can MAD be negative?
No. Distances are never negative, so the smallest MAD is 0. That only happens when every value is the same.
Is MAD the same as standard deviation?
No. Both measure spread, but standard deviation squares the distances, so it is always equal to or bigger than MAD.
Mean or median absolute deviation, which should I use?
Use the mean absolute deviation for school work and data without extreme values. Use the median absolute deviation when outliers are present.
Related articles

About the author
Muhammad Ali. Muhammad Ali is a full-stack developer and founder of KruskalCode. He builds SaaS platforms and automation systems with React and Laravel, and helps teams ship fast, scalable tools.
Need a custom calculator, dashboard, or automation workflow? Reach out to KruskalCode.