About the Mean Absolute Deviation Calculator
Mean absolute deviation is the easiest measure of spread to explain: it is the average distance of the values from the center. This calculator gives the MAD about the mean and about the median, plus the median absolute deviation, which resists outliers. For 2, 4, 4, 4, 5, 5, 7, 9, the values sit on average 1.5 away from their mean of 5.
To find the MAD, calculate the mean, find the absolute value of each value minus the mean, so every distance is positive, and average those distances: MAD = Σ|x − x̄| ÷ n. Unlike the standard deviation, it does not square the deviations, so extreme values have less influence. Measuring distances from the median instead of the mean gives the smallest possible average absolute deviation, and the median of the absolute deviations from the median is more robust still.
Example: for 3, 6, 6, 7, 8, 11, 15 and 16, the mean is 9 and the distances from it are 6, 3, 3, 2, 1, 2, 6 and 7, which add up to 30. The mean absolute deviation is 30 ÷ 8 = 3.75. About the median of 7.5, the average distance is 3.5, and the median absolute deviation is 2.5. Middle school courses often introduce spread with the MAD before moving on to standard deviation.
For spread based on squared deviations, see the standard deviation calculator and variance calculator. Robust spread is also captured by the interquartile range in the quartile calculator.
How to use the Mean Absolute Deviation Calculator
- Enter your dataType or paste numbers separated by commas, spaces or new lines.
- Read the MADSee the mean absolute deviation about the mean.
- Compare the robust versionsSee the MAD about the median and the median absolute deviation.
- Check the tableSee each value's absolute distance from the mean.
Mean Absolute Deviation Calculator features
- Mean absolute deviation about the mean
- Mean absolute deviation about the median
- Median absolute deviation (robust)
- Mean and median shown
- Working table of absolute deviations
- Paste data from spreadsheets
- Free and instant
Common uses
- Middle and high school statistics
- Forecast error measurement
- Robust spread for data with outliers
- Comparing consistency between groups
- Quality control
Mean absolute deviation in practice: forecasting, robust spread and safety stock
The mean absolute deviation is the average distance of values from their mean, ignoring whether each value is above or below. It is easy to understand, which makes it popular in teaching and in business forecasting, and a close cousin, the median absolute deviation, is valued for its resistance to outliers. This guide covers forecasting accuracy, inventory planning, robust statistics and a worked example.
Easy to explain
If a teacher says the average test score was 72 and the mean absolute deviation was 8, students understand that a typical score was about 8 marks away from 72. That plain meaning is the measure's greatest strength. The standard deviation is usually a little larger for the same data, because squaring gives extra weight to large deviations.
A worked example: weekly sales
A small shop sells 12, 15, 11, 18, 14, 20, 9 and 16 units of a product over eight weeks. The mean is 14.375 units, and the absolute deviations from it average 2.875 units. So in a typical week, sales are about 3 units away from the average.
That figure helps the owner judge how much spare stock to hold: with sales usually within about 3 units of 14, keeping a few extra units covers most weeks without tying up too much money.
Forecast accuracy
In forecasting, a closely related measure, the mean absolute error, averages the absolute differences between forecasts and actual results. Some textbooks and businesses call it the mean absolute deviation of the forecast errors, abbreviated MAD. A forecast with a MAD of 50 units per month is, on average, 50 units off. Comparing MAD values shows which forecasting method performs better on the same data.
Safety stock
Inventory planners use forecast errors to set safety stock, the extra stock held to avoid running out. For roughly normal errors, the standard deviation is about 1.25 times the mean absolute deviation, so planners sometimes convert MAD to an approximate standard deviation before calculating how much safety stock gives a desired service level.
Robust spread: the median absolute deviation
The median absolute deviation, also abbreviated MAD, takes the median of the absolute deviations from the median. It is barely affected by a few extreme values, so it describes the spread of typical values even when the data contains outliers. Statisticians use it to detect outliers in data sets where a single huge value would distort the standard deviation.
Choosing a measure of spread
Use the mean absolute deviation when you want a figure that is easy to explain. Use the standard deviation for statistical methods that build on it, such as confidence intervals and normal probabilities. Use the median absolute deviation or the interquartile range when the data is skewed or contains outliers. Reporting more than one measure can give a fuller picture.
Common mistakes
- Mixing up the mean absolute deviation with the median absolute deviation, which share an abbreviation.
- Expecting the MAD to equal the standard deviation.
- Using the mean absolute deviation with methods designed for the standard deviation.
- Ignoring the direction of forecast errors when bias matters.
Related tools
For standard deviation, use Standard Deviation Calculator. For outliers, try Outlier Calculator, and for quartiles, Quartile Calculator.
MAD in spreadsheets
Excel and Google Sheets calculate the mean absolute deviation with =AVEDEV(range), which averages the absolute deviations from the mean. For the median absolute deviation, combine functions, for example =MEDIAN(ABS(range − MEDIAN(range))) entered as an array formula in older versions of Excel. Having both measures side by side shows quickly whether outliers are affecting the spread.
A robust estimate of the standard deviation
For normally distributed data, the median absolute deviation multiplied by about 1.4826 approximates the standard deviation. Statisticians use this scaled value as a robust estimate of spread that a few extreme values cannot distort. If the ordinary standard deviation is much larger than the scaled median absolute deviation, the data probably contains outliers worth investigating.
Why schools teach MAD first
Many school curricula introduce the mean absolute deviation before the standard deviation, because it is easy to calculate by hand and easy to explain: the average distance from the mean. Once students understand spread this way, the standard deviation, which squares the distances, makes more sense as a refinement that gives extra weight to unusual values.
Forecast bias versus forecast error
The mean absolute deviation of forecast errors shows how large errors are, but not whether forecasts tend to be too high or too low. The plain average of the errors, keeping their signs, shows that bias: an average error of +20 units means forecasts are consistently too high. Tracking both figures tells planners whether to reduce random error, correct a consistent bias, or both.
Limits
Calculations are exact for the data entered; the 1.25 conversion to standard deviation applies only to roughly normal data.
Frequently asked questions
What is mean absolute deviation?
The average distance of the values from their mean. It tells you how far, on average, a typical value is from the center of the data, in the same units as the data.
How do I calculate mean absolute deviation?
Find the mean, subtract it from each value and drop any minus signs, add those distances and divide by the number of values. For 2, 4, 6 the mean is 4, the distances are 2, 0 and 2, so the MAD is 4 ÷ 3 ≈ 1.33.
What is the difference between MAD and standard deviation?
MAD averages absolute distances; standard deviation averages squared distances and then takes a square root. Standard deviation gives more weight to values far from the mean, so it is always at least as large as the MAD.
What is the median absolute deviation?
The median of the absolute distances from the median. Because it uses medians twice, a few extreme outliers barely affect it, which makes it a popular robust measure of spread.
Why use absolute values?
Because deviations above and below the mean would otherwise cancel: their sum is always zero. Taking absolute values, or squaring as standard deviation does, keeps every deviation positive.
What does a MAD of 0 mean?
Every value is exactly equal to the mean, so there is no spread at all. The larger the MAD, the more the values vary from their average.
Where is mean absolute deviation used?
In schools as a first measure of spread, in forecasting as the mean absolute error of predictions, and in inventory planning, where MAD of demand forecasts helps set safety stock levels.
Is the mean absolute deviation affected by outliers?
Less than the standard deviation, because distances are not squared, but an extreme value still shifts the mean and adds a large distance. The median absolute deviation, also shown here, is far more resistant to outliers.