Skip to content

Mean Absolute Deviation Calculator

Calculate mean absolute deviation (MAD) from a dataset.

By CalcGenius Editorial TeamLast reviewed August 28, 20253 min read
Mean Absolute Deviation (MAD) Calculator

Enter any number of values. Mean, MAD, variance, and population standard deviation are computed for comparison.

📊
Enter your values and click Calculate

About

The Mean Absolute Deviation (MAD) is the average absolute distance of each data point from the mean: MAD = (Σ |xᵢ − mean|) / n. It measures dispersion in the same units as the data, making it easy to interpret as "average distance from the mean." For the dataset {2, 4, 6, 8}: mean = 5, MAD = (3 + 1 + 1 + 3) / 4 = 2 — values are on average 2 units from the mean.

MAD and standard deviation both measure spread, but they differ in how they treat deviations. MAD uses absolute values (|xᵢ − mean|), which are linear in deviation; standard deviation uses squares ((xᵢ − mean)²), which weight large deviations more heavily. This makes std dev sensitive to outliers — a single 100-unit outlier can blow up the sum of squares by 10,000, but only nudges the MAD by 100/n. For normal data the two are related by std dev ≈ 1.2533 × MAD, so a MAD of 4 corresponds to a std dev of about 5.

The choice between MAD and std dev depends on the goal. Use std dev for analytical work: it appears in the t-test, the z-score, the confidence interval, and virtually every parametric statistical formula. Use MAD for robust descriptions: when the data may have outliers, when you want a same-unit measure of spread, or when communicating dispersion to non-technical audiences ("on average, values are 3 units from the mean" is clearer than "std dev is 4").

MAD is part of a family of absolute-deviation measures. The Median Absolute Deviation (Median AD) uses the median as the center instead of the mean, raising the breakdown point from 0% (MAD) to 50% (Median AD) — meaning half the data can be outliers before the estimate becomes unreliable. Median AD is the standard robust estimator in fields like image processing, finance, and robust statistics. For normal data, Median AD ≈ 0.6745 × σ.

The conversion factor √(π/2) ≈ 1.2533 between MAD and std dev comes from the expected absolute deviation of a standard normal random variable: E[|Z|] = √(2/π) ≈ 0.798, so MAD = 0.798 × σ and σ = 1.2533 × MAD. If your data's std dev / MAD ratio is far from 1.2533, suspect outliers or non-normality — the further the ratio, the more the data departs from a normal distribution.

How to Use

  1. 1
    Enter your data values
    Type numbers separated by commas or spaces (e.g., 4, 8, 6, 5, 3, 7, 9, 2, 5, 6). Negative and decimal values are supported. At least one value is required.
  2. 2
    Read the MAD
    The hero shows MAD = (Σ |xᵢ − mean|) / n. Below: mean, variance, standard deviation (for comparison), min/max, and count.
  3. 3
    Compare MAD with standard deviation
    The breakdown lists both. For normal data std dev ≈ 1.2533 × MAD; large gaps between them signal outliers or heavy tails, where std dev overstates the typical spread.
  4. 4
    Inspect the per-point deviations
    The detail panel lists each value with its absolute deviation from the mean. This is useful for spotting which points contribute most to the dispersion.
  5. 5
    Apply to your use case
    Use MAD for robust dispersion in same-unit terms (e.g., "average error of ±3 units"). Use std dev for analytical formulas (z-scores, confidence intervals, t-tests) and when the data is approximately normal.

Formula

Mean Absolute Deviation:

mean = (Σ xᵢ) / n
MAD = (Σ |xᵢ − mean|) / n

Population variance and standard deviation:

Variance (σ²) = (Σ (xᵢ − mean)²) / n
Std Dev (σ) = √(Variance)

Relationship (for normal data):

σ ≈ 1.2533 × MAD (factor = √(π/2))
MAD ≈ 0.798 × σ

Median Absolute Deviation (more robust):

Median AD = median(|xᵢ − median(x)|)
For normal data: Median AD ≈ 0.6745 × σ

Worked Example

Example 1 — Dataset {2, 4, 6, 8}:

  • Mean = (2 + 4 + 6 + 8) / 4 = 5.
  • Abs deviations: |2−5|, |4−5|, |6−5|, |8−5| = 3, 1, 1, 3.
  • MAD = (3 + 1 + 1 + 3) / 4 = 2. Std dev = √((9 + 1 + 1 + 9) / 4) = √5 ≈ 2.236.
  • Ratio: 2.236 / 2 = 1.118 (close to 1.2533; small dataset so noisy).

Example 2 — With an outlier: {2, 4, 6, 8, 100}:

  • Mean = 120 / 5 = 24.
  • Abs deviations: 22, 20, 18, 16, 76 → sum = 152. MAD = 30.4.
  • Sq deviations: 484, 400, 324, 256, 5776 → sum = 7240. Variance = 1448, std dev ≈ 38.05.
  • Ratio: 38.05 / 30.4 = 1.252 (still close to 1.2533 — outlier pulled both measures but ratio held).
  • Note: removing the outlier, MAD = 2 again, std dev = 2.236 (as in Example 1).

Example 3 — Comparing MAD and std dev sensitivity:

  • Data {50, 50, 50, 50, 1000} — mean = 240, outlier dominates.
  • MAD = (190 + 190 + 190 + 190 + 760) / 5 = 304.
  • Std dev = √((190² + 190² + 190² + 190² + 760²) / 5) ≈ 384.
  • Ratio = 384 / 304 ≈ 1.26 — still close to 1.2533 because the outlier shifts the mean proportionally.

Tips

  • For normal data, std dev ≈ 1.2533 × MAD (the factor is √(π/2)). If your data shows std dev ≫ 1.25 × MAD, suspect outliers or a heavy-tailed distribution.
  • MAD is more robust to outliers than std dev because absolute values are linear in deviation, while squares are quadratic. A single 100-unit outlier can blow up std dev by 100² but only nudges MAD by 100/n.
  • MAD is in the same units as the data, making it interpretable as "average distance from the mean." Std dev is also in the same units but harder to interpret because of the squaring.
  • For a quick normal-distribution check: 68% of data falls within ±1 std dev of the mean, and equivalently within ±0.798 × MAD (since MAD ≈ std dev / 1.2533).
  • If more than 25% of your data is wildly off, switch from MAD (using the mean as center) to Median Absolute Deviation (using the median), which has a 50% breakdown point — half the data can be outliers before it breaks.

Common Mistakes

Warning

The most common mistake is computing MAD with the population standard deviation as a "robust" alternative — MAD is more robust but not in the same units as variance. A second error is using MAD where the formula requires standard deviation: the t-test, z-score, and confidence interval formulas all use σ, not MAD. A third is confusing MAD (mean-centered) with Median AD (median-centered) — the latter is more robust but a different estimator. Finally, do not report MAD without also reporting the std dev — the comparison reveals whether the data is approximately normal (ratio ≈ 1.2533) or has outliers (ratio ≫ 1.2533).

Frequently Asked Questions

What is the Mean Absolute Deviation (MAD)?
The Mean Absolute Deviation (MAD) is the average absolute distance of each data point from the mean: MAD = (Σ |xᵢ − mean|) / n. It measures dispersion in the same units as the data, and is more robust to outliers than the standard deviation because it does not square the deviations.
How is MAD different from standard deviation?
Both measure spread, but MAD uses absolute deviations (|xᵢ − mean|) while standard deviation uses squared deviations ((xᵢ − mean)²). Squaring weights large deviations more heavily, so std dev is sensitive to outliers; MAD treats all deviations linearly and is more robust. For normal data, std dev ≈ 1.2533 × MAD (the conversion factor is √(π/2) ≈ 1.2533).
When should I use MAD instead of standard deviation?
Use MAD when the data may have outliers or a heavy-tailed distribution, or when you want a measure of spread in the same units as the data that is easy to interpret ("average distance from the mean"). Use std dev for normal distributions and analytical work (it appears in the t-test, confidence interval, and z-score formulas).
What is the relationship between MAD and the median absolute deviation (Median AD)?
MAD uses the mean as the center; Median AD uses the median. Median AD is even more robust to outliers (breakdown point 50%) and is the standard robust estimator in fields like image processing and finance. For normal data, Median AD ≈ 0.6745 × σ. There is no simple universal conversion between MAD and Median AD — they answer different questions.
Is the MAD defined for any dataset?
Yes — the MAD is defined for any non-empty dataset of real numbers. It does not require positive values (unlike geometric or harmonic mean) and is unaffected by the sign of the data. The only constraint is that the dataset must have at least one value to compute a mean.
Why is MAD considered robust?
MAD is robust because a single outlier changes it linearly (by 1/n × |outlier − mean|), while standard deviation changes quadratically. A single large outlier can blow up the standard deviation by orders of magnitude but only nudges the MAD. The breakdown point of MAD (using the mean) is 0%, but using the median as the center raises it to 50% — half the data can be outliers before the measure becomes unreliable.

Mean Absolute Deviation

The Mean Absolute Deviation (MAD) is the average absolute distance of each data point from the mean: MAD = (Σ |xᵢ − mean|) / n. It measures dispersion in the same units as the data, making it easy to interpret as "average distance from the mean." For {2, 4, 6, 8}: mean = 5, MAD = (3 + 1 + 1 + 3) / 4 = 2.

Robust to outliers (vs std dev)

MAD uses absolute deviations; standard deviation squares them. Squaring makes std dev sensitive to outliers — a single large deviation can dominate the sum of squares. MAD treats all deviations linearly, so outliers have proportional (not outsized) effect. For normal data, std dev ≈ 1.2533 × MAD; if the ratio is much larger, you have outliers.

Vs standard deviation

Std dev is the analytical favorite because it is differentiable and appears in t-tests, z-scores, and confidence intervals. MAD is the practical favorite because it is robust, same-unit, and intuitive ("average distance from the mean"). For normal data the conversion is std dev ≈ 1.2533 × MAD, so a MAD of 4 units corresponds to a std dev of about 5 units.

When to use

Use MAD when the data may have outliers, when you want a same-unit measure of spread, or when communicating dispersion to non-technical audiences ("on average, values are 3 units from the mean"). Use std dev for normal distributions, hypothesis testing, and any formula that requires differentiability. Both are valid; they answer different questions.

MAD vs standard deviation for various datasets. The std/MAD ratio near 1.2533 indicates approximately normal data; large deviations signal outliers.
DatasetMeanMADVarianceStd DevStd/MAD ratio
2, 4, 6, 85252.23611.1180
1, 2, 3, 4, 531.221.41421.1785
10, 10, 10, 1010000—
1, 1, 1, 1, 10020.800031.52001,600.6400——
100, 100, 100, 100100000—
Info

For a standard normal distribution, the expected value of |Z| is √(2/π) ≈ 0.798. So MAD = 0.798 × σ, which means σ = 1.2533 × MAD — this is the conversion factor. If your data's std dev / MAD ratio is far from 1.2533, the data is not normal — likely because of outliers or a heavy-tailed distribution like the Cauchy or Student's t with few degrees of freedom.

Pro tip

For robust work, switch from MAD (mean-centered) to Median Absolute Deviation (median-centered). Median AD has a 50% breakdown point — half the data can be outliers before the estimator becomes unreliable. The conversion factor for normal data is σ ≈ Median AD / 0.6745 ≈ 1.4826 × Median AD. Many statistical packages (R, SciPy) compute Median AD by default in robust statistics functions.

Authoritative References

  • Wikipedia — Absolute deviation— wikipedia.org
    Comprehensive treatment of absolute deviation measures including MAD, median absolute deviation, and the relationship to standard deviation.
  • Khan Academy — Measures of spread— khanacademy.org
    Khan Academy unit on summarizing quantitative data, including variance, standard deviation, and absolute deviation.
  • Stat Trek — Measures of Variability— stattrek.com
    Stat Trek reference on measures of variability including range, variance, standard deviation, and mean absolute deviation.

Try our other free calculators

CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.

Mean Absolute Deviation Calculator — Distribution Tails