Calculator Hero

Mean Absolute Deviation Calculator

Calculates MAD — the average distance from the mean — for any dataset, with step-by-step deviation table.

Last updated: June 11, 2026

Mean Absolute Deviation Calculator

Separate numbers with commas. Decimals and negative numbers are allowed.

Enter values above to calculate mean absolute deviation

How to Use the MAD Calculator

This mean absolute deviation calculator finds MAD instantly — enter your data values separated by commas in the input field. Negative numbers and decimals are fully supported. The calculator instantly displays the mean absolute deviation, mean, and count, along with a step-by-step table showing each value's deviation from the mean (xᵢ − x̄) and absolute deviation (|xᵢ − x̄|). The table also shows the running sum and final MAD calculation.

For datasets with up to 50 values, the full step-by-step table is shown. For larger datasets, the summary statistics (MAD, mean, count) are displayed without the row-by-row table. For related spread measures, see our standard deviation calculator, which shows population and sample SD for the same dataset.

The MAD Formula — Step by Step

Mean absolute deviation is calculated in four steps:

MAD = Σ|xᵢ − x̄| / n

Worked Example

Dataset: 3, 7, 7, 19

  1. Step 1 — Find the mean: x̄ = (3 + 7 + 7 + 19) / 4 = 36 / 4 = 9
  2. Step 2 — Find each deviation:
    • |3 − 9| = 6
    • |7 − 9| = 2
    • |7 − 9| = 2
    • |19 − 9| = 10
  3. Step 3 — Sum the absolute deviations: 6 + 2 + 2 + 10 = 20
  4. Step 4 — Divide by n: MAD = 20 / 4 = 5.00

The MAD of 5.00 means that on average, each value in the dataset is 5 units away from the mean of 9. Note that the outlier (19) contributes an absolute deviation of 10 — but only 10, not 10² = 100 as it would in variance/standard deviation.

AdvertisementResponsive Ad

MAD vs. Standard Deviation — When to Use Each

MAD and standard deviation both measure spread, but they have different mathematical properties and use cases.

Standard Deviation

Standard deviation squares each deviation before averaging, then takes the square root. This approach:

  • Penalizes larger deviations more heavily (an outlier at 3σ contributes 9× more than one at 1σ)
  • Has better statistical properties for inferential statistics (hypothesis testing, confidence intervals)
  • Is the basis for the normal distribution and most parametric statistical tests
  • Is more sensitive to outliers

Mean Absolute Deviation

MAD takes the absolute value of each deviation, treating all deviations equally regardless of size:

  • Easier to interpret — directly in the original units with no squaring or square root
  • More robust to outliers
  • Preferred in forecasting and supply chain (called Mean Absolute Error or MAE)
  • Appropriate when deviations should be weighted equally regardless of magnitude

For a normally distributed dataset, the relationship between MAD and SD is approximately: MAD ≈ 0.7979 × SD. Or equivalently, SD ≈ 1.2533 × MAD. This means standard deviation is always larger than MAD for the same dataset.

MAD in Forecasting and Error Measurement

In operations research, supply chain management, and machine learning, MAD is often called Mean Absolute Error (MAE) and is one of the most widely used measures of forecast accuracy. Given a set of forecast errors (actual − predicted), MAD/MAE tells you the average magnitude of error, regardless of direction.

For example, if weekly demand forecasts were off by {12, −8, 5, −3, 7} units, the MAE = (12 + 8 + 5 + 3 + 7) / 5 = 7 units — meaning forecasts were typically 7 units off from actual demand. This is directly actionable for safety stock planning, unlike squared-error metrics.

MAD is preferred over Root Mean Square Error (RMSE) when all errors should be weighted equally and outliers (unusually bad forecasts) should not dominate the accuracy measure.

AdvertisementResponsive Ad

Real-World Examples of MAD

  • Classroom scores: If 5 students score {70, 75, 80, 85, 90} with mean 80, MAD = (10 + 5 + 0 + 5 + 10) / 5 = 6. Students are typically 6 points from the class average.
  • Daily temperatures: If daily highs for a week are {68, 72, 75, 71, 69, 73, 74} °F with mean 71.7°F, MAD ≈ 2.0°F — temperatures vary about 2 degrees from the typical daily high.
  • Manufacturing quality: Part widths of {9.98, 10.01, 9.99, 10.02, 10.00} mm with mean 10.00 mm give MAD = 0.012 mm — typical deviation from the target dimension.

For datasets where you also need the median as a central measure or want to compare spread to the mean, our mean, median, and mode calculator provides comprehensive summary statistics alongside the mean.

Sources & References

  1. Mean Absolute DeviationNIST/SEMATECH e-Handbook of Statistical Methods
  2. Mean Absolute Deviation — Khan AcademyKhan Academy

Frequently Asked Questions

Related Calculators

Advertisement

320 × 50 — Mobile Anchor