Mean Absolute Deviation Calculator
Compute mean absolute deviation from the mean and from the median. Enter any comma-separated dataset for instant results.
MAD What is Mean Absolute Deviation?
Mean absolute deviation (MAD) is one of the most intuitive measures of statistical dispersion. It answers the question: on average, how far do individual data points stray from the centre of the dataset? Unlike variance (which squares the differences and loses interpretability) or standard deviation (which requires knowing variance), MAD is calculated directly in the original units of the data and is immediately understandable.
There are two versions of MAD depending on the choice of central reference point. MAD from the mean measures average absolute deviation from the arithmetic mean, making it sensitive to all data points equally. MAD from the median measures average absolute deviation from the median, making it more robust in the presence of outliers or skewed distributions because the median itself is resistant to extreme values.
MAD has wide practical applications. In forecasting, it appears as Mean Absolute Error (MAE), a common metric for evaluating how accurate predictions are. In finance, MAD quantifies the spread of portfolio returns. In quality control, it tracks process consistency. In machine learning, the L1 loss function is equivalent to minimising MAD from the mean. In robust statistics, MAD from the median is used as a robust estimator of scale.
For datasets following a normal distribution, MAD from the mean relates to the standard deviation by: standard deviation = MAD / 0.7979. This means you can use MAD as an accessible approximation when standard deviation feels abstract or when working with small samples where squaring deviations may amplify noise too aggressively.
This calculator computes both types of MAD simultaneously so you can compare them. A large discrepancy between the two typically signals the presence of outliers in your data, since outliers pull the mean but not the median.
Formulas and Step-by-Step
MAD from the Mean:
MAD from the Median:
Computing the Median:
Relationship to standard deviation for normal data:
How to Use This Calculator
- Enter your data — type your numbers into the text area, separated by commas. For example: 4, 8, 15, 16, 23, 42. Spaces around commas are optional.
- Click Calculate — both MAD values, the mean, and the median are computed and displayed instantly.
- Interpret the results — MAD from mean is the standard MAD; MAD from median is the robust version. If they differ significantly, outliers may be present.
- Use the note — the grey note below the results confirms which dataset was used and the step-by-step computation.