Median Absolute Deviation Calculator
Enter any list of numbers to get the Median Absolute Deviation, normalized MAD, and a per-value deviation table with outlier detection.
📖 What is Median Absolute Deviation (MAD)?
Median Absolute Deviation (MAD) is a robust measure of statistical dispersion — a way to quantify how spread out the values in a dataset are. Unlike standard deviation, which squares deviations and is therefore heavily influenced by outliers, MAD uses the median in two places: first as the measure of central tendency, then as the way to summarise the deviations. The result is a spread measure with a 50% breakdown point, meaning up to half the data can be extreme without corrupting the MAD.
The computation has three steps: (1) find the median of the dataset, (2) compute the absolute deviation of each value from that median, (3) find the median of those absolute deviations. The final value is MAD. Because both steps use the median rather than the mean, no single outlier (or even a small fraction of outliers) can pull MAD to an unreasonable extreme the way a single extreme value can inflate standard deviation.
MAD was first described by Carl Friedrich Gauss in 1816 and was later popularised in modern robust statistics by Peter Rousseeuw and Christophe Croux (1993) as a reliable alternative to SD. Its primary use cases are: outlier detection (the 3.5×MAD rule), robust regression diagnostics, financial risk measurement on skewed return distributions, quality control on production lines with occasional defects, and any domain where a few extreme measurements are expected but should not dominate the spread estimate.
For normally distributed data, MAD and SD are related by the constant 1.4826: SD ≈ 1.4826 × MAD. This means you can multiply MAD by 1.4826 to get a consistent, unbiased estimate of the population standard deviation σ under normality. This “normalized MAD” (shown in the results above) lets you directly compare MAD-based spread to SD-based spread on the same scale.
This calculator also shows the MAD/SD ratio for your dataset. For perfectly normal data this ratio should be approximately 0.6745. A much lower ratio (MAD ≪ SD) indicates that outliers are inflating SD but not MAD — a clear sign of a heavy-tailed or contaminated distribution. This single diagnostic number can alert you to the presence of outliers before you even look at the deviation table.
📐 Formula
Step-by-step:
- Sort the dataset and find the median M
- Compute the absolute deviation for each value: di = |xi − M|
- Find the median of {di} — that is MAD
Normalized MAD (consistent estimator of σ under normality):
Outlier threshold (Leys et al., 2013):
Worked example: Dataset = {2, 3, 4, 5, 100}. Step 1: Sorted = {2, 3, 4, 5, 100}, median M = 4. Step 2: Absolute deviations = {|2−4|, |3−4|, |4−4|, |5−4|, |100−4|} = {2, 1, 0, 1, 96}. Step 3: Sorted deviations = {0, 1, 1, 2, 96}, median = 1. So MAD = 1. Compare: SD ≈ 43.3. The outlier (100) inflated SD enormously but barely affected MAD.
✍ How to Use This Calculator
- Enter your data — type or paste numbers into the text area, separated by commas or spaces. Negative values and decimals are fully supported. At least 3 values are required.
- Click Calculate — MAD, normalized MAD, median, mean, SD, count, and the MAD/SD ratio all appear instantly.
- Check the deviation table — each value is listed in sorted order with its absolute deviation from the median. Values flagged with ⚠ exceed the 3.5×MAD outlier threshold.
- Interpret the MAD/SD ratio — for normal data this should be around 0.6745. A much lower ratio means outliers are inflating SD but not MAD.