Audited 31 Jul 2026·Last updated 15 Sept 2026·3 citations·Tier 2·0 uses

Mean Absolute Deviation Calculator

Mean absolute deviation calculator: MAD = Σ|xᵢ − mean| ÷ n. Average distance from the mean — the spread measure that stays in the data's own units.

Mean Absolute Deviation Calculator

Mean absolute deviation
2
Primary result from MAD = sum(|x_i-xbar|)/n.
Arithmetic mean
5
Value count
4
Model scope
Population-form mean absolute deviation about the arithmetic mean; it is not median absolute deviation, sample standard deviation, a robust scale estimator, or a fitted probabilistic model.

Background.

How spread out are these numbers? The most literal answer statistics offers is the mean absolute deviation: find the mean, measure each value's distance from it — ignoring direction — and average those distances. A MAD of 2 means the data sit, on average, 2 units from their centre. No squaring, no square roots, no reinterpretation: it is spread in the same units as the data, computed the way a person would naturally do it by hand.

That literalness is why MAD anchors the school statistics curriculum as the first dispersion measure taught, and why it remains useful long after: forecasters report demand-prediction error as MAD because ‘we miss by 30 units on average’ needs no translation, and quality engineers quote average absolute error for the same reason.

Its famous sibling, the standard deviation, squares the deviations before averaging and then square-roots the result. Squaring weights large deviations disproportionately — one value 10 away contributes as much as twenty-five values 2 away — so standard deviation reacts more sharply to outliers, while MAD treats a distance of 10 as exactly five times a distance of 2. Neither is ‘right’: standard deviation's algebra makes it the native currency of variance-based theory (normal distributions, regression, ANOVA), while MAD is the more honest descriptive summary when you simply want typical distance from centre. For any dataset, MAD ≤ standard deviation, with equality only in degenerate cases.

This page computes the population-form MAD about the arithmetic mean, along with the mean and count it used. One naming caution, flagged in the scope note: robust statistics uses ‘MAD’ for a different quantity — the median absolute deviation about the median — so check which MAD a source means before comparing numbers.

What is mean absolute deviation calculator?

The mean absolute deviation (MAD) of a dataset is the average of the absolute differences between each value and the arithmetic mean: MAD = Σ|xᵢ − x̄| / n. It answers ‘how far from the mean is a typical value?’ directly, in the data's own units. Compared with standard deviation — which averages squared deviations and back-transforms with a square root — MAD weights all deviations linearly, making it less sensitive to extreme values and more literally interpretable, at the cost of the algebraic conveniences that make variance central to statistical theory. It is always at most the standard deviation (about 0.8 of it for normally distributed data).

How to use this calculator.

  1. Enter the values as a comma-separated list — order is irrelevant, duplicates count each time they appear.
  2. Read the three outputs together: the arithmetic mean (the centre the deviations are measured from), the count, and the MAD itself.
  3. Interpret MAD in the data's units: test scores with mean 75 and MAD 6 typically land within about 6 points of 75.
  4. Comparing spread across datasets is only meaningful on comparable scales — for different scales, divide each MAD by its mean for a unitless relative spread.
  5. If your source or curriculum says ‘MAD’ meaning the robust median absolute deviation (median of |xᵢ − median|), this is not that quantity — the two differ substantially on skewed or outlier-laden data.

The formula.

MAD = sum(|x_i-xbar|)/n

MAD = Σ|xᵢ − x̄|/n formalises ‘average distance from the centre’. The absolute value is load-bearing: raw deviations from the mean always sum to zero by the mean's definition (the positives and negatives cancel exactly), so without it every dataset would score 0. Taking magnitudes keeps each value's contribution proportional to its distance — the linearity that distinguishes MAD from variance, where squaring makes one 10-unit deviation outweigh twenty-five 2-unit ones. Two structural facts are worth knowing. First, deviations about the mean minimise the sum of squares, but the sum of absolute deviations is minimised by the median — so mean-anchored MAD is not the smallest possible average distance when data are skewed, a hint toward the robust median-based variant. Second, for normal data MAD ≈ 0.7979·σ, so the two spread measures translate when normality is defensible. The engine computes the mean, the n absolute differences, and their average in Decimal arithmetic, rounding once at the output.

A worked example.

Example

Take the four values 2, 4, 6, 8 — evenly spaced, mean easy to see. Centre first: x̄ = (2+4+6+8)/4 = 20/4 = 5. Distances from that centre, dropping signs: |2−5| = 3, |4−5| = 1, |6−5| = 1, |8−5| = 3. Their sum is 3+1+1+3 = 8, and the average distance is MAD = 8/4 = 2: a typical value here sits 2 units from the mean. Notice the pattern in the distances — the outer pair contribute 3 each, the inner pair 1 each, all counted at face value. The standard deviation of the same data squares those distances (9, 1, 1, 9), averages to 5, and roots back to ≈ 2.24 — larger than the MAD, as it must be, because squaring lets the outer values punch above their weight. Stretch one value into an outlier and the gap widens sharply: with data 2, 4, 6, 20 the MAD is 6 while the standard deviation jumps past 7.3. Same question — how spread out? — two defensible answers, and MAD is the one that answers it as a plain average of plain distances.

values2, 4, 6, 8

Frequently asked questions.

Why take absolute values — what happens without them?
Every dataset would report zero spread. The mean is precisely the balance point at which deviations cancel: Σ(xᵢ − x̄) = 0 always, positives offsetting negatives — for 2, 4, 6, 8 the raw deviations are −3, −1, +1, +3. Distance ignores direction, so we discard the signs before averaging. (Statistics' other fix for the same cancellation is squaring, which leads to variance — the absolute value is the fix that keeps the result in the data's units without a square-root repair step.)
When should I prefer MAD over standard deviation?
When interpretability or outlier-restraint matters more than theoretical machinery: describing typical error to non-statisticians (‘forecasts miss by 30 units on average’), summarising skewed or heavy-tailed data where squaring lets one wild value dominate, and teaching — MAD is the natural first spread measure. Prefer standard deviation when you need the variance ecosystem: normal-curve rules (68–95–99.7), confidence intervals, regression, ANOVA, and any context where variances add across independent sources — an algebraic property MAD lacks.
How do MAD and standard deviation compare numerically?
MAD is never larger — a consequence of squaring's extra weight on big deviations — and for perfectly normal data the ratio is fixed: MAD ≈ 0.80·σ. The example runs true to form: MAD 2 versus σ ≈ 2.24, ratio 0.89 (small samples wander around 0.8). The ratio is itself diagnostic: much below ≈0.8 suggests heavy tails or outliers inflating σ; near 1 suggests data bunched at two extremes. A large gap between the two measures is a prompt to look at the data, not to average the answers.
Is this the same MAD as the ‘median absolute deviation’ in robust statistics?
No, and the collision of acronyms causes real errors. This page computes the mean absolute deviation about the mean. Robust statistics' MAD is the median of absolute deviations about the median — for 2, 4, 6, 8: median 5, absolute deviations 3, 1, 1, 3, median of those = 2 (coincidentally equal here, but the two diverge sharply on skewed data). The median version shrugs off even gross outliers (50% breakdown point) and underlies robust outlier rules; software named MAD (R's mad(), SciPy's median_abs_deviation) usually means the median version, often rescaled by 1.4826 to estimate σ.
Why does this page call its result the ‘population form’?
Because it divides by n, the full count, treating the entered values as the complete population of interest — the standard convention for MAD and the one taught in school statistics. (The n−1 ‘sample’ correction familiar from standard deviation exists to unbias squared-deviation estimates; there is no comparably standard n−1 convention for MAD, and descriptive use divides by n.) Practically: enter all the data you mean to describe and read the result as describing exactly those values; inferring a population's spread from a small sample is a job for interval estimates, not a divisor tweak.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
MAD = sum(|x_i-xbar|)/n
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon