Mean Absolute Deviation Calculator

The mean absolute deviation, or MAD, is the average distance between each number in a data set and the mean. Enter your numbers and the calculator returns the MAD, the mean, the count and the total of the absolute deviations. It is a simple, easy-to-explain measure of spread used in middle school math and in forecasting. Separate numbers with commas, spaces or new lines; everything runs in your browser.

Inputs

Separate numbers with commas, spaces or new lines.

Result

Mean absolute deviation
3.75
Mean
9
Count (n)
8
Sum of absolute deviations
30

How it is calculated

  1. Mean absolute deviation = Σ|x − mean| ÷ n
  2. Mean = Σx ÷ n
  3. Count = the number of values (n)
  4. Sum of absolute deviations = Σ|x − mean| = mean absolute deviation × n

Resources for your next step

Helpful downloads

View all statistics & probability downloads
Store coming soon

We are preparing practical spreadsheets, planners, and guides. Explore the store page for what is next.

How the mean absolute deviation is calculated

First find the mean by adding the values and dividing by how many there are. Next find how far each value is from the mean, ignoring whether it is above or below, so every distance is positive. Finally, add those distances and divide by the count. The result is the typical distance from the average.

For the example 3, 6, 6, 7, 8, 11, 15 and 16, the mean is 72 ÷ 8 = 9. The distances from 9 are 6, 3, 3, 2, 1, 2, 6 and 7, which add up to 30. Dividing by 8 gives a mean absolute deviation of 3.75.

MAD compared with standard deviation

Both measure spread around the mean, but the standard deviation squares each distance before averaging and then takes a square root. Squaring gives large distances more weight, so the standard deviation reacts more strongly to outliers. The MAD treats every unit of distance the same, which makes it easier to interpret and less sensitive to a single extreme value.

For the example, the population standard deviation is about 4.30, larger than the MAD of 3.75. For data from a normal distribution, the MAD is roughly 0.8 times the standard deviation. Use the standard deviation when a method or formula calls for it; use the MAD when you want a plain average distance.

Not the same as median absolute deviation

The abbreviation MAD is also used for the median absolute deviation, which takes the median of the distances from the median. That measure is even more resistant to outliers, but it is a different number. This calculator gives the mean absolute deviation around the mean, as taught in most school curricula.

In forecasting, a mean absolute deviation is also used to summarize forecast errors. In that case the distances are between forecasts and actual values rather than from the mean, so use a forecast-error tool for that purpose.

Entering data

Separate numbers with commas, spaces, semicolons or new lines, or paste a column from a spreadsheet. Decimals and negative numbers are fine. A single number gives a MAD of zero, because it does not differ from its own mean.

If something cannot be read as a number, the calculator names the line and value to fix and clears the results until it is corrected. Results show six significant digits, and the calculation keeps full precision.

Frequently asked questions

What is the mean absolute deviation?

The average distance of the values from their mean, with every distance counted as positive.

How do I calculate it by hand?

Find the mean, find each value's distance from the mean, add the distances and divide by the count.

Is MAD the same as standard deviation?

No. The standard deviation squares the distances, so it weighs large distances more and is usually larger than the MAD.

Is it the same as the median absolute deviation?

No. That uses medians instead of means. This calculator uses the mean.

Can the mean absolute deviation be zero?

Yes, when every value is the same, because no value is any distance from the mean.

Do I divide by n or n − 1?

By n, the number of values. The mean absolute deviation has no sample correction.

Sources

Results are calculated in your browser from the numbers you enter and rounded for display. Check that the data and the sample or population choice fit your task.

All statistics & probability tools