standarddeviationcalculator.net SD Calculator

Mean absolute deviation calculator

Share this page

Favorites

    No favorites yet. Press Favorite on any page to keep it here.

    Methodology

    The mean absolute deviation (MAD) is the average distance from the mean, without squaring. Enter your numbers to get it about both the mean and the median, alongside the standard deviation for comparison.

    Separate numbers with commas, spaces or new lines, or paste a spreadsheet column. Decimals and negatives are fine; write 10:3 for a value that occurs 3 times.

    Try:
    Calculation type

    Not sure which? How to choose sample or population

    Mean absolute deviation

    1.5

    MAD about the mean1.5
    MAD about the median1.5
    Σ|x − x̄|12
    Standard deviation2.13809
    MAD ÷ SD0.7016
    Count (n)8
    Mean (x̄)5
    Standard deviation2.13809
    Variance4.57143
    Sum40
    Σ(x − x̄)²32
    Standard error0.755929
    Coefficient of variation0.427618
    Relative SD (%RSD)42.7618%
    Minimum2
    Maximum9
    Range7
    Median (Q2)4.5
    Q14
    Q35.5
    IQR1.5

    Data distribution

    0 2 4 6 8 10 mean 5 −1 SD +1 SD 2: 1.4 SD below the mean4: 0.468 SD below the mean4: 0.468 SD below the mean4: 0.468 SD below the mean5: at the mean5: at the mean7: 0.935 SD above the mean9: 1.87 SD above the mean Value

    Shaded bands mark ±1, ±2 and ±3 SD from the mean. 6 of 8 values (75%) fall within ±1 SD.

    Chart as text

    Mean 5, sample standard deviation s = 2.13809, from 8 values between 2 and 9.

    • Within ±1 SD (2.862 to 7.138): 6 of 8 values (75%). About 68% for normal data.
    • Within ±2 SD: 8 (100%). About 95% for normal data.
    • Within ±3 SD: 8 (100%). About 99.7% for normal data.
    Show the working, step by step

    Mean absolute deviation formula

    MAD = Σ|x − x̄| / n

    Find the mean, take the distance of each value from it, drop the minus signs, and average. That is the whole calculation, noticeably simpler than the standard deviation formula, and the reason MAD is often taught first.

    Why the standard deviation won anyway

    MAD is easier to compute and easier to explain, so its near-total absence from statistical practice needs an explanation. Three reasons:

    • Variances add. Mean absolute deviations do not. For independent quantities, Var(X + Y) = Var(X) + Var(Y). No comparable rule exists for MAD, which means no ANOVA, no variance decomposition, no portfolio mathematics.
    • The absolute value is not differentiable at zero. Squared error can be minimised with calculus, which is what makes least-squares regression tractable.
    • For normal data, the SD is the more efficient estimator. It extracts more information from the same sample.

    The trade-off runs the other way when outliers are present, which is why MAD retains a place in forecasting and robust statistics.

    Mean absolute deviation: a worked example

    Data: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5.

    xx − x̄|x − x̄|(x − x̄)²
    2−339
    4−111
    4−111
    4−111
    5000
    5000
    7224
    94416
    Σ01232

    MAD = 12 ÷ 8 = 1.5. The population standard deviation is √(32 ÷ 8) = 2. Both describe the same data. The SD is larger because the value at 9, four units out, contributed 16 to the squared column but only 4 to the absolute one.

    Note the middle column summing to exactly zero. That is why some way of removing the signs (absolute values or squares) is unavoidable.

    Using the mean and mean absolute deviation to compare data

    The mean says where a data set is centred and the MAD says how spread out it is, so together they let you compare two groups. Three classes took the same quiz:

    ClassScoresMeanMAD
    A70, 75, 80, 85, 908030 ÷ 5 = 6
    B60, 70, 80, 90, 1008060 ÷ 5 = 12
    C88, 90, 92, 94, 969212 ÷ 5 = 2.4
    • Same mean, different MAD (A and B). Both classes average 80, but B's MAD is twice A's. A typical score in B sits 12 points from the mean, in A only 6. The means alone would hide that.
    • Different means (A and C). C's mean is 12 points higher. Dividing that gap by the MAD shows how large it is compared with the ordinary spread. 12 ÷ 6 = 2 MADs of class A, and 12 ÷ 2.4 = 5 MADs of class C. A gap of two or more MADs means the two groups barely overlap, so the difference is real rather than a few unusual scores.

    More worked examples: find the MAD of a data set

    Three sets that come up often in homework, each worked the same way: find the mean, take each distance from it, add the distances and divide by the count.

    Data setMeanDistances from the meanMAD
    50, 70, 80, 90, 60350 ÷ 5 = 7020, 0, 10, 20, 1060 ÷ 5 = 12
    65, 72, 70, 68, 75350 ÷ 5 = 705, 2, 0, 2, 514 ÷ 5 = 2.8
    45, 60, 55, 70, 24, 86, 60, 64464 ÷ 8 = 5813, 2, 3, 12, 34, 28, 2, 6100 ÷ 8 = 12.5

    The first two sets share a mean of 70, yet the MAD of the first is 12 and the MAD of the second is 2.8, so the second set is far more tightly grouped. In the third set the MAD is 12.5, pulled up by 24 and 86, which sit 34 and 28 from the mean.

    The ratio between them

    For normally distributed data the two settle into a fixed relationship: MAD ≈ 0.7979 × σ, or σ ≈ 1.2533 × MAD. The calculator reports the MAD ÷ SD ratio for your own data, and a value far from 0.8 is a useful hint that your data is not normal, usually because outliers are inflating the standard deviation.

    One naming trap: MAD also stands for the median absolute deviation, the median of |x − median|, which is a different and more outlier-resistant number. The median absolute deviation calculator works that one out, with its 1.4826 scaling to estimate σ.

    For the range, IQR, variance, skewness and outliers, see the spread, shape and outlier calculators.

    Mean absolute deviation: the worked example on this page, with its result and chart
    Mean absolute deviation: the worked example above, at a glance.

    Common questions

    What is the mean absolute deviation?

    The average distance of each value from the mean, using absolute values rather than squares: MAD = Σ|x − x̄| / n. Like the standard deviation it measures spread, and it is in the same units as the data.

    What is the difference between MAD and standard deviation?

    Both stop deviations cancelling out, but by different means. MAD takes absolute values. The SD squares them, then square-roots at the end.

    Squaring makes the SD weight far-out values much more heavily. A point twice as far from the mean contributes four times as much, not twice. So the SD is always the larger of the two, and the gap widens the more outliers you have.

    Which should I use?

    The standard deviation for almost anything feeding into further statistics (confidence intervals, t-tests, regression) because variances add and mean absolute deviations do not.

    MAD when you want a plain, honest "average distance from the middle" that is easier to explain and less swayed by a single extreme value. It is also common in forecasting, where mean absolute error is the standard accuracy measure.

    Should I measure deviations from the mean or the median?

    From the mean by default, which is what "mean absolute deviation" normally means. The median version is always smaller (deviations about the median are mathematically minimal) and is more robust to outliers. This calculator reports both.

    Is MAD the same as median absolute deviation?

    No, and the shared abbreviation causes real confusion. Mean absolute deviation averages the distances. Median absolute deviation takes the median of them, and is a different, more robust statistic used for outlier detection.