Math calculators

MAD Calculator

Updated Nov 22, 2026 By Infinity Calculator Formulas Sources
Rate
Data Set Input
Separate values with commas, spaces, or new lines. Mixed formats are fine. Empty entries are ignored, and any text that is not a number is flagged.
Valid values detected: 6
Live dataset preview
Dataset = { 4, 7, 13, 2, 1, 8 }

Load an example data set

On-screen number pad
Output Settings
Applies to MAD, the mean and every other numeric output.

Introduction

The Mean Absolute Deviation (MAD) tells you how spread out a set of numbers is.3 It is the average distance between each value and the mean.1 A small MAD means your numbers sit close together. A large MAD means they are spread far apart.3

This MAD calculator runs each step of the calculation. Type or paste your numbers, separated by commas, spaces, or new lines. Press Calculate. You get the mean absolute deviation, the mean, the sample size, and the sum of the absolute deviations.

You also get more than just an answer. The tool shows a chart of how far each point sits from the mean, a full table of deviations, and a step-by-step solution so you can check the math or study it. You can pick how many decimal places you want, download your results as a CSV file, and copy R code to run the same calculation yourself.

Use it for homework, class notes, lab data, or any time you need a quick and clear measure of spread.

How to use our Mean Absolute Deviation (MAD) Calculator

Type your numbers into the calculator and pick how many decimal places you want. The tool gives you the mean absolute deviation, the mean, the sample size, the sum of the absolute deviations, a chart, and step-by-step math.

Data Set (X): Enter your numbers in the big box. You can split them with commas, spaces, or new lines. Blank spots are skipped. If the box holds a word or anything else that is not a number, the calculator names it and asks for numbers instead. The live preview shows how many valid numbers the calculator found.

Example data sets: Click one of the three example buttons to load a ready-made set of numbers. This is a fast way to see how the MAD formula works.

On-screen number pad: Tap the keys to add digits, a comma, a space, or a decimal point. Use the arrow key to delete one character or CLEAR to empty the box.

Decimal Precision: Choose 1 to 9 decimal places. This rounds the MAD, the mean, and the other results, including the deviations in the table.

Calculate: Press this button to get your answer. Press Reset to clear the box and start over.

What Is Mean Absolute Deviation (MAD)?

Mean absolute deviation, or MAD, tells you how spread out a set of numbers is. It is the average distance between each number and the mean (the average) of the data set. A small MAD means the numbers sit close together. A large MAD means they are spread far apart.3 Other common measures of spread include the range, the interquartile range, and the variance.1

The MAD Formula

The formula is:

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

  • xᵢ: each value in your data set
  • x̄: the mean of all the values
  • n: how many values you have
  • | |: absolute value, which turns negative numbers into positive ones

How to Find MAD in 4 Steps

  1. Find the mean. Add all the values, then divide by how many there are.3
  2. Find each deviation. Subtract the mean from every value.
  3. Drop the minus signs. Take the absolute value of each deviation, then add them all up.
  4. Divide by n. That answer is the MAD.

A Quick Example

Take the data set 4, 7, 13, 2, 1, 8. The sum is 35, so the mean is 35 ÷ 6 = 5.8333. The distances from the mean are 1.8333, 1.1667, 7.1667, 3.8333, 4.8333, and 2.1667. Those add up to 21. Divide by 6 and the MAD is 3.5. On average, each value sits about 3.5 units away from the mean.

Why MAD Matters

MAD is one of the easiest ways to measure spread. It does not square anything, and like the standard deviation, it is in the same units as your data.3 That makes it simple to explain. It is also less affected by one very large or very small value, since it does not blow up big gaps the way squaring does.1

Things to Remember

  • MAD is never negative. The smallest it can be is 0.
  • MAD equals 0 only when every value in the set is the same.3
  • The deviations always add up to 0 before you take absolute values.2 That is why the absolute value step is needed.
  • MAD uses the same units as your data.3 If you measure in dollars, the MAD is in dollars.
  • Do not confuse mean absolute deviation with median absolute deviation. Both are called "MAD," but the second one uses the median instead of the mean.1
  • MAD is not the same as a z score, which measures one value's distance from the mean in standard deviations.

Where MAD Is Used

Teachers use MAD in middle school math to introduce spread.3 In business forecasting, MAD is the average size of the gap between forecast and actual demand. Scientists use it to see how much repeated measurements vary. Anytime you want a plain answer to "how different are these numbers?", MAD works well.


Formulas used

Arithmetic Mean 3
\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i = \frac{x_1 + x_2 + \cdots + x_n}{n}
Deviation of each data point from the mean
d_i = x_i - \bar{x}
Absolute deviation of each data point
\lvert d_i \rvert = \lvert x_i - \bar{x} \rvert
Sum of absolute deviations
S = \sum_{i=1}^{n} \lvert x_i - \bar{x} \rvert
Mean Absolute Deviation (MAD) 1
MAD = \frac{\sum_{i=1}^{n} \lvert x_i - \bar{x} \rvert}{n}

Frequently asked questions

Why is my answer a little different from my textbook?

Most likely the mean was rounded before the deviations were found. This tool keeps the full mean, so it is more exact. To reproduce the book's answer by hand, round the mean the way the book does before you find the deviations.

Can MAD be larger than the standard deviation?

No. For the same data set, MAD is always equal to or smaller than the standard deviation. For bell-shaped data, MAD is about 0.8 times the standard deviation.

Can MAD be bigger than the range?

No. MAD can never be more than half the range. If your MAD looks larger than that, check your data entry for a typo.

Is mean absolute deviation the same as average deviation?

Yes. "Average deviation" and "average absolute deviation" are other names for the same thing this tool computes: the mean distance of each value from the mean.1


Sources

  1. NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale. National Institute of Standards and Technology. § 1.3.5.6. Accessed September 28, 2026.
  2. Illowsky B, Dean S. Introductory Statistics 2e, 2.7 Measures of the Spread of the Data. OpenStax. 2023;§ 2.7. Accessed September 28, 2026.
  3. Arnold EG, Fulton EW, Banner KM, Tremaine R. Variability: Mean Absolute Deviation and Standard Deviation. Montana State University. pp. 2, 8, 10, 15, 16, 23. Accessed November 22, 2026.