How to use the mean absolute deviation calculator

Learn how to calculate mean absolute deviation from raw data, a frequency distribution or grouped classes in six steps.

  1. 1. Select the input method: Choose Raw data, Values & frequencies (a frequency distribution) or Grouped (classes) for a grouped frequency distribution.
  2. 2. Enter your data: In Raw data mode, paste the values. In Values & frequencies mode, enter each distinct value and its frequency, and use + Add value for more rows. In Grouped mode, enter the lower limit, upper limit and frequency of each class, and use + Add class for more.
  3. 3. Check the entries: Frequencies must be zero or higher, with at least one above zero, and each class needs a lower limit below its upper limit. Rows with zero frequency are ignored, and an error message appears under Settings if something is invalid.
  4. 4. View the arithmetic mean: The mean appears in the results panel with the observation count, the sum of observations and the range.
  5. 5. Review each deviation and absolute deviation: The Absolute deviation table lists xi, fi, xi − mean, |xi − mean| and fi × |xi − mean|. The chart beneath it shows each value's distance from the mean.
  6. 6. Read the result and the steps: The mean absolute deviation appears at the top of the results. Open How this was calculated to follow each step with your numbers, and set Display precision to show 2 to 8 decimal places.

Mean absolute deviation measures the average distance between the values in a data set and their arithmetic mean. This mean absolute deviation calculator works from raw data, a frequency distribution or grouped frequency data, so you can calculate MAD for a short list, a table of repeated values or a set of class intervals. The MAD calculator displays the mean, every deviation and absolute deviation, and the complete calculation with your numbers.

Mean absolute deviation formula

Calculating mean absolute deviation takes one line once the mean is known. The mean and absolute deviation work together: the mean sets the center, and each absolute deviation is a value's distance from that center. The mean absolute deviation (MAD) is the average of those distances.

Formula for raw data

MAD = Σ|xi − x̄| / n

Formula for frequency distributions

MAD = Σ[fi × |xi − x̄|] / Σfi

Here xi is an individual data value, x̄ is the arithmetic mean, n is the number of observations and fi is the frequency of the value xi. In a frequency table, Σfi is the total number of observations.

Why deviations are made absolute

Deviations from the mean always add up to zero, because the values above the mean offset the values below it. Averaging the signed deviations would therefore return 0 for every data set. Taking absolute values first turns each deviation into a distance, so the average measures spread. MAD works with these absolute differences directly and does not square them.

Why the divisor is n

The calculator divides by n for raw data and by Σfi for frequency data, never by n − 1. The n − 1 divisor belongs to the sample variance and standard deviation formulas, while MAD is reported as a plain average of the absolute deviations.

How to calculate mean absolute deviation

This mean absolute deviation example uses the calculator's demo data: 2, 4, 4, 4, 5, 5, 7, 9. To find the MAD for this set of data, follow the six steps below.

  1. Calculate the arithmetic mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) / 8 = 40 / 8 = 5.
  2. Subtract the mean from each value to get the deviations: −3, −1, −1, −1, 0, 0, 2 and 4.
  3. Convert each deviation to an absolute value: 3, 1, 1, 1, 0, 0, 2 and 4.
  4. Add the absolute deviations: 3 + 1 + 1 + 1 + 0 + 0 + 2 + 4 = 12.
  5. Divide by the number of observations: 12 / 8 = 1.5.
  6. The mean absolute deviation is 1.5.
xx − x̄ (mean = 5)|x − x̄|
2−33
4−11
4−11
4−11
500
500
722
944
Sum012

The values in this data set lie 1.5 units from the mean of 5 on average. The calculator lists the repeated 4 once, with fi = 3 and a weighted absolute deviation of 3, and returns the same MAD of 1.5.

What is absolute deviation?

Absolute deviation is the distance between a data value and the arithmetic mean, with direction ignored. Its formula is |xi − x̄|. To find an absolute deviation, subtract the mean from the value and keep the result without its sign. A value 3 below the mean and a value 3 above it both have an absolute deviation of 3. Absolute deviations cannot be negative, and one equals zero only when the value is the mean.

This leads to the definition of mean absolute deviation: in math, it is the average of the individual absolute deviations of a data set from its mean.

Understanding mean absolute deviation

A small MAD means the values lie close to the mean on average, and a large MAD means they lie farther away. No MAD is good or bad by itself, because it has to be read against the scale of the data. A MAD of 2 is large for scores out of 10 and small for yearly incomes in dollars.

MAD keeps the units of the original data because the deviations are not squared. A data set measured in kilograms has a MAD in kilograms.

MAD equals zero only when every absolute deviation is zero, which requires every value to equal the mean. In 6, 6, 6, 6 the mean is 6 and each deviation is 0.

An extreme value pulls the mean toward itself and adds one large absolute deviation, so it raises MAD. Because the deviations are not squared, an outlier counts in proportion to its distance from the mean. In standard deviation it counts in proportion to the square of that distance.

Standard deviation squares the deviations, averages them and takes the square root, which gives extra weight to values far from the mean. For the same data, the population standard deviation is never smaller than MAD. The demo data have a MAD of 1.5 and a population standard deviation of 2. To calculate standard deviation for your own data, use the standard deviation calculator.

Mean absolute deviation vs median absolute deviation

Both measures are abbreviated MAD, which causes confusion. Mean absolute deviation, the measure on this page, averages the absolute distances from the arithmetic mean. Median absolute deviation measures distances from the median and then takes the median of those distances, so it is a different statistic. For the demo data the median absolute deviation is 0.5, against a mean absolute deviation of 1.5. The median-based version is also less affected by extreme values.

When a textbook, spreadsheet or software package refers to MAD, check which one it means before comparing results. This calculator computes the mean-based version only.

Mean Absolute Deviation Calculator – MAD Formula & Examples

Frequently Asked Questions

Q: What is mean absolute deviation?

A measure of spread equal to the average distance of the values in a data set from their arithmetic mean. It is found by averaging the absolute deviations.

Q: What is the formula for mean absolute deviation?

MAD = Σ|xi − x̄| / n for a list of values, and Σ[fi × |xi − x̄|] / Σfi when each value xi has a frequency fi. Both divide by the total number of observations.

Q: How do you find the mean absolute deviation?

Find the mean, measure how far each value is from it, add those distances and divide by the number of values. The worked example on this page does this for eight values and gets 1.5.

Q: How do I find the mean absolute deviation of a data set?

Start by calculating the mean exactly. If it is not a round number, keep extra decimal places until the last step, because rounding the mean early shifts every deviation. The calculator accepts up to 10,000 values in Raw data mode.

Q: How do you calculate MAD in math?

To find MAD in math, treat each absolute deviation as a distance on a number line: the gap between the mean and the value. When a problem gives a dot plot or a frequency table, count each value as many times as it appears.

Q: What is absolute deviation?

The distance from a single value to a chosen center, with direction ignored. On this page the center is the arithmetic mean, so the absolute deviation of xi is |xi − x̄|. Measuring from the median gives a different quantity.

Q: What is the difference between absolute deviation and mean absolute deviation?

Absolute deviation belongs to one value, so a data set of n values has n of them. Mean absolute deviation is a single number for the whole data set: the average of those n absolute deviations.

Q: Can mean absolute deviation be negative?

No. Every absolute deviation is zero or positive, so their average is at least 0.

Q: What does a mean absolute deviation of zero mean?

All the values are identical. Any MAD above zero means at least two values differ.

Q: How do you calculate mean absolute deviation with a frequency table?

Find the mean with x̄ = Σ(fi × xi) / Σfi, multiply each |xi − x̄| by its frequency, add the products and divide by Σfi. Values 2, 4, 5, 7 and 9 with frequencies 1, 3, 2, 1 and 1 give a mean of 5, weighted absolute deviations adding to 12 and a MAD of 1.5, the same as the expanded list. Rows with zero frequency are ignored.

Q: Can mean absolute deviation be calculated from grouped data?

Yes, as an estimate. Each class is represented by its midpoint, so the result depends on where the values fall inside the classes. For classes 0 to 10, 10 to 20 and 20 to 30 with frequencies 3, 5 and 2, the midpoints 5, 15 and 25 give a mean of 14 and an estimated MAD of 5.4.

Q: What is the difference between mean absolute deviation and standard deviation?

Standard deviation squares the deviations and takes a square root, while MAD averages the absolute distances directly. MAD is easier to describe as an average distance. Standard deviation is the usual input for z-scores, confidence intervals and t-tests.

Q: Is mean absolute deviation the same as median absolute deviation?

No. Median absolute deviation is median(|xi − median|), while mean absolute deviation is mean(|xi − x̄|). Some software also rescales the median version by 1.4826 to estimate the standard deviation of normally distributed data, so the two MAD values are not comparable.

Q: What does a high or low mean absolute deviation tell you?

How tightly the values cluster around the mean, judged against the scale of the data. A low MAD means the values stay near the mean, and a high MAD means they spread out. Compare MADs only between data sets measured in the same units, since no cutoff separates a high MAD from a low one.

Loaded shared calculation