Skip to content

Mean Absolute Deviation Calculator

Find the mean absolute deviation of a data set about the mean or the median, with a step-by-step table of each distance and a comparison with standard deviation.

Calculator Details

Mean absolute deviation (about the mean):1.020408163See results ↓

Your data set, separated by commas, spaces or new lines. With spaces between values, 1,000 is read as one thousand.

The mean (the usual MAD, Excel AVEDEV) or the median (less affected by outliers)

Your Results

Mean absolute deviation (about the mean): 1.020408163

Mean absolute deviation (about the mean)

1.020408163

7 values, mean 4.857142857

  • MAD about the median

    1

  • Mean

    4.857142857

  • Median

    5

Distances from the mean

mean 4.8571437
Each line is one value's distance from the mean; the MAD is their average length.

Breakdown

Each value’s distance from the mean
#xx − x̄|x − x̄|
14-0.857142860.85714286
250.142857140.14285714
361.14285711.1428571
472.14285712.1428571
550.142857140.14285714
64-0.857142860.85714286
73-1.85714291.8571429
Sum of distances7.1428571

Compared with standard deviation

Population standard deviation (σ)

1.245399698

√(Σ(x − x̄)² / n)

MAD about the mean ÷ σ

0.8193

About 0.80 for normally distributed data

On average the 7 values are 1.0204082 away from the mean (4.8571429); the population standard deviation is 1.2453997.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

How This Calculator Works

How it's calculated

MAD = Σ|x − c| / n, where c is the centre: the mean x̄ = Σx / n, or the median (the middle value of the sorted list, or the average of the two middle values when n is even).

With your numbers

n = 7
x̄ = 34 / 7 = 4.857142857
Σ|x − x̄| = 7.142857143
MAD = 7.142857143 / 7 = 1.020408163

Frequently Asked Questions

What is the mean absolute deviation?

The mean absolute deviation (MAD) is the average distance between each value and the centre of the data. Subtract the mean from every value, drop the minus signs, add the distances and divide by how many values there are. For 4, 5, 6, 7, 5, 4, 3 the mean is about 4.857 and the MAD is about 1.020: a typical value sits about one unit from the mean.

How do I calculate MAD step by step?

1) Find the mean (sum ÷ count). 2) Subtract the mean from each value. 3) Take the absolute value of each difference. 4) Add those distances. 5) Divide by the number of values. The breakdown table shows steps 2 and 3 for every value, and the how-it-works section shows the sum and the division with your numbers.

What is the difference between MAD about the mean and about the median?

Both average the distances to a centre; only the centre changes. The median is the point that makes the sum of absolute distances as small as possible, so the MAD about the median is never larger than the MAD about the mean. With an outlier the gap can be big: for 1, 2, 3, 4, 100 the MAD is 31.2 about the mean but 20.2 about the median.

Is this the same as the median absolute deviation?

No. The median absolute deviation, also abbreviated MAD, is the median of |x − median|, not the mean. It is a robust measure used in outlier detection. This calculator gives the mean of the absolute deviations about either the mean or the median, which is what school courses and Excel’s AVEDEV mean by MAD.

How does MAD compare with standard deviation?

Standard deviation squares the deviations before averaging and then takes a square root, which gives large deviations more weight. As a result the population standard deviation is always at least the MAD about the mean. For normally distributed data the MAD is about 0.80 times the standard deviation (√(2/π)); the calculator shows the ratio for your data.

Which Excel or Google Sheets function gives the MAD?

AVEDEV gives the mean absolute deviation about the mean. For the Excel help example, AVEDEV(4,5,6,7,5,4,3) returns 1.020408163, the same as this calculator. There is no built-in for the MAD about the median; you can use =AVERAGE(ABS(range − MEDIAN(range))) as an array formula.

Can the mean absolute deviation be zero or negative?

It can be zero, when every value is the same, but never negative, because it averages distances. A MAD of zero means there is no spread at all. A larger MAD means the values are more spread out, in the same unit as the data.

Why use MAD instead of standard deviation?

MAD is easier to explain ("on average, values are this far from the mean") and is less pulled by one extreme value, because distances are not squared. Standard deviation has better mathematical properties for inference (confidence intervals, the normal distribution), so statistics courses use both.

Mean absolute deviation about the mean (Excel AVEDEV) or the median, with exact decimal arithmetic, shown to 10 significant digits; the population standard deviation is shown for comparison. Not included: the median absolute deviation (median of the distances), weighted or grouped data.

Mean Absolute Deviation Calculator: MAD About the Mean or the Median

By FindMySum · Last reviewed

A mean absolute deviation calculator tells you how far, on average, the values in a data set are from their centre. It is the most direct answer to the question "how spread out is this data?": subtract the centre from every value, ignore the signs, and average the distances. This calculator works out the MAD about the mean (the usual version, and what Excel's AVEDEV returns) or about the median, lists every distance in a table, draws each one on a number line, and shows the population standard deviation next to it for comparison.

The formula

For n values x₁, x₂, …, xₙ and a centre c:

MAD = (|x₁ − c| + |x₂ − c| + … + |xₙ − c|) ÷ n

The centre is usually the mean, x̄ = Σx ÷ n. It can also be the median, the middle value once the list is sorted (or the average of the two middle values when there is an even number of them).

The vertical bars mean "absolute value": the distance without its sign. Without them the deviations from the mean would always add to exactly zero, because the values above the mean balance the values below it. Taking absolute values is one way to stop that cancelling; squaring, as standard deviation does, is the other.

Worked example with the default data

The calculator opens with the data set from Microsoft's AVEDEV help page: 4, 5, 6, 7, 5, 4, 3.

  1. Mean. The values add to 34, and 34 ÷ 7 ≈ 4.857.
  2. Distances from the mean. |4 − 4.857| ≈ 0.857, |5 − 4.857| ≈ 0.143, |6 − 4.857| ≈ 1.143, |7 − 4.857| ≈ 2.143, then 0.143, 0.857 and 1.857.
  3. Sum of distances. These add up to about 7.143 (exactly 50/7).
  4. Divide by n. 7.143 ÷ 7 ≈ 1.0204.

Excel's AVEDEV gives 1.020408163 for the same data. In words: on average, a value in this set is about one unit away from the mean.

About the median instead: the sorted list is 3, 4, 4, 5, 5, 6, 7, so the median is 5. The distances are 1, 0, 1, 2, 0, 1 and 2, which add to 7, and 7 ÷ 7 = 1. It is slightly smaller than the MAD about the mean, as it always will be.

Mean or median: which centre?

The median has a special property: it is the value that makes the sum of absolute distances as small as possible. So for any data set,

MAD about the median ≤ MAD about the mean.

For symmetric data the two are equal or very close. They separate when the data are skewed or contain an outlier. Take 1, 2, 3, 4 and 100: the single large value drags the mean up to 22, far from the other four values, and the MAD about the mean is 31.2. The median stays at 3 and the MAD about it is 20.2, a better description of the typical gap for most of the values.

Use the mean when you are already reporting the mean and the data are roughly symmetric, as in most school and textbook exercises. Use the median when you report the median, or when outliers or a long tail are likely: incomes, house prices, response times.

MAD versus standard deviation

Both measure spread in the same units as the data, but they treat large deviations differently. Standard deviation squares each deviation, averages the squares and takes the square root, so one value far from the mean counts disproportionately. MAD treats a distance of 10 as exactly twice a distance of 5.

Two facts are worth knowing:

  • The population standard deviation is always at least the MAD about the mean. They are equal only in special cases, such as data split evenly between two values.
  • For data that follow a normal (bell-shaped) distribution, MAD ≈ 0.80 × standard deviation (the exact factor is √(2/π) ≈ 0.798). The calculator shows the ratio for your data; a ratio well below 0.8 points to heavy tails or outliers.

For the default data, the population standard deviation is about 1.245 and the MAD 1.020, a ratio of about 0.82, close to the normal benchmark.

Don't confuse it with the median absolute deviation

Statistics software often uses "MAD" for a different measure: the median absolute deviation, the median of |x − median|. It is even more resistant to outliers and is used to flag unusual values. This calculator gives the mean of the absolute deviations, which is the measure taught in middle-school and introductory statistics and computed by AVEDEV. If your course or software means the median version, check its definition before comparing numbers.

Reading your result

  • MAD = 0 means every value is identical.
  • Small MAD relative to the mean means the values are tightly clustered; a MAD of 2 on a mean of 100 is a 2% typical gap.
  • Large MAD, or a big difference between the MAD about the mean and about the median, means wide spread or skew. Look at the number-line chart to see which values contribute the longest distances.

Limits

The calculator handles a plain list of numbers. It does not weight values, work from a frequency table or grouped classes, or compute the median absolute deviation. Results are calculated with exact decimal arithmetic and shown to 10 significant digits.

More questions

Should I divide by n or by n − 1 for the mean absolute deviation?

By n. Unlike the sample standard deviation, the mean absolute deviation has no standard n − 1 version: textbooks, Excel's AVEDEV and the NIST handbook all divide the sum of absolute deviations by the number of values. If a course or paper uses another divisor it will say so explicitly.

What units is the MAD in?

The same units as the data. If the values are heights in centimetres, the MAD is in centimetres; if they are prices in dollars, the MAD is in dollars. That makes it easy to read next to the mean: an average height of 170 cm with a MAD of 6 cm means a typical person is about 6 cm from the average.

How do I compare the spread of two data sets with different averages?

Divide each MAD by its mean to get a relative spread (sometimes called the coefficient of dispersion when the median is used). A MAD of 5 on a mean of 20 (25%) is a much wider spread than a MAD of 5 on a mean of 500 (1%). Only do this for data measured from a true zero, such as weights or prices, not temperatures in °C.

Does the order of the values matter?

No. The mean, the median and every distance depend only on the values, not on the order they are typed in. The breakdown table keeps your order so you can match each row to your data, but sorting the list would give the same MAD.

How is MAD used in forecasting?

Forecasters use a close cousin, the mean absolute error (also called MAD in operations textbooks): the average of |actual − forecast| over past periods. It is the same idea with the forecast in place of the mean. This calculator measures distances from the data's own mean or median, so for forecast errors average their absolute values directly instead.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy