Math calculators

MAD Calculator

Updated Aug 17, 2026 By Jehan Wadia
Rate Formulas
Data Set Input
Separate values with commas, spaces, or new lines — mixed formats are fine. Non-numeric text and empty entries are ignored.
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. It is the average distance between each value and the mean. A small MAD means your numbers sit close together. A large MAD means they are spread far apart.

This MAD calculator does the work for you. 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. If you need other summary numbers for the same data, try our Mean Median Mode Calculator, Standard Deviation Calculator, or the all-in-one Statistics Calculator.

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. Words and blank spots are skipped. 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 every other number in the results and table. If you need to round a single number to a set place value or a fixed number of significant digits, our Rounding Calculator and Sig Fig Calculator can help.

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. Other common measures of spread include the range, the interquartile range, and the variance.

The MAD Formula

The formula is:

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

  • xᵢ — each value in your data set
  • — 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. The Average Calculator and Sum Calculator handle this step on their own.
  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. Unlike standard deviation, it does not square anything, so the answer stays in the same units as your data. 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. If you suspect an extreme value is skewing your results, check it with the Outlier Calculator or compare the mean to the median.

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.
  • The deviations always add up to 0 before you take absolute values. That is why the absolute value step is needed.
  • MAD uses the same units as your data. If you measure in dollars, the MAD is in dollars. To express spread as a percentage instead, see the RSD Calculator.
  • 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.
  • 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, often alongside quartiles and percentiles. Businesses use it to check how far sales forecasts miss real sales, a job that pairs well with the Percent Error Calculator. Scientists use it to see how much repeated measurements vary, then report a standard error or a confidence interval alongside it. Anytime you want a plain answer to "how different are these numbers?", MAD works well.


Formulas used

Arithmetic Mean
\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)
MAD = \frac{\sum_{i=1}^{n} \lvert x_i - \bar{x} \rvert}{n}

Frequently asked questions

Can I enter negative numbers and decimals?

Yes. The MAD calculator accepts negative numbers, decimals, and zero. Just type them like normal, for example -4.5, 2, 0, 7.25. The minus sign and the decimal point are both read correctly.

Can I paste numbers from Excel or Google Sheets?

Yes. Copy a column or row of numbers and paste it into the data box. The calculator splits values at commas, spaces, tabs, semicolons, and new lines, so pasted spreadsheet data works without cleanup.

What happens if I type a letter or a symbol by mistake?

It is skipped. Only valid numbers are counted. Check the Valid values detected box under the input. If that count is lower than you expected, something in your list was not read as a number.

Does the order of my numbers matter?

No. MAD is the same no matter what order you type the values in. Sorting your data first will not change the mean or the MAD.

Does this calculator use the sample or the population formula?

Both are the same for MAD. You always divide the sum of the absolute deviations by n, the number of values. There is no n − 1 version like there is for standard deviation.

Does changing the decimal precision change my answer?

No. The math is always done with full precision. The decimal setting only changes how many digits are shown in the results, the table, and the steps.

Why is my answer a little different from my textbook?

Most likely you rounded the mean before finding the deviations. This tool keeps the full mean, so it is more exact. To match a textbook, set the precision to the same number of decimal places the book uses.

How do I read the deviation chart?

The orange line is the mean. Each blue bar starts at the mean and ends at one data point. Longer bars mean that value sits farther from the mean. The MAD is the average length of all the bars.

How many numbers can I enter?

There is no set limit. All values are used in the math. To keep the page readable, the chart draws the first 60 points and the table shows the first 200 rows. The CSV download always includes every value.

What is in the CSV download?

Click Download results to save a file with your data set, the sample size, the mean, the sum of absolute deviations, the MAD, and a full row-by-row table of every deviation. It opens in Excel, Google Sheets, or Numbers.

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.

How do I handle repeated values or a frequency table?

Type each value as many times as it appears. For a value of 5 with a frequency of 3, enter 5, 5, 5. The calculator then treats it with the right weight.

What is the R code section for?

It gives you ready-made R code with your own numbers already filled in. Copy it, paste it into R or RStudio, and you get the same mean, sum, and MAD. It is handy for homework, lab reports, or checking your work.

Is there a keyboard shortcut to calculate?

Yes. With your cursor in the data box, press Ctrl + Enter (or Cmd + Enter on a Mac) to run the calculation without clicking the button.

Does this MAD calculator work on a phone?

Yes. The layout fits small screens, and the on-screen number pad lets you type digits, commas, spaces, and decimal points without switching keyboards.

Is this MAD calculator free to use?

Yes. It is free, needs no sign-up, and your numbers stay in your browser. Nothing is uploaded or saved on a server.