Skip to content

Mean Absolute Deviation Calculator

Find the mean absolute deviation of a list of numbers: the average distance from their mean.

Result

Enter at least one number

How to Use

  1. 1 Enter numbers separated by spaces, commas, or line breaks.
  2. 2 The calculator finds the arithmetic mean.
  3. 3 It averages the absolute distance of each value from that mean.

Example Output

  • 1, 2, 3 has mean 2 and mean absolute deviation 0.666666666667.
  • 5, 5, 5 has mean absolute deviation 0.

About This Tool

Mean absolute deviation measures how far the values sit from their average. This page uses the arithmetic mean as the center and divides the total absolute distance by the count of values.

Using the Mean Absolute Deviation Calculator

Mean absolute deviation describes how far a set of numbers sits from its average. Find the arithmetic mean, measure the distance of each number from that mean, and average those distances. The result is in the same units as the numbers. It is never negative, because distance ignores direction.

This calculator uses the mean as the center and divides by the count of values. It does not drop an outlier, weight one value more than another, or switch to a median unless you change the list yourself.

What Is Mean Absolute Deviation?

The arithmetic mean is the ordinary average: add the values and divide by how many there are. The deviation of a value is that value minus the mean. Some deviations are negative, which only means the value was below the mean. Absolute deviation uses the size of that gap and drops the sign.

Mean absolute deviation is the average of those sizes. A list whose values are identical has a mean absolute deviation of zero. A list whose values sit far from the mean has a larger result. Two lists can share a mean and have different deviations. The mean says where the center is. The deviation says how spread out the list is around that center.

The unit stays with the data. If the numbers are centimeters, the deviation is in centimeters. It is not a percentage unless you turn it into one with a separate comparison. A deviation of 2 centimeters is small for a length near 200 and large for a length near 3. The calculator reports the deviation. You decide whether that size matters.

This is a descriptive number for the list you typed. It is not a confidence interval, a test of significance, or a forecast. Adding or removing a value changes both the mean and the deviation, and the calculator recomputes both from the list in front of it.

How the Calculator Works

Enter numbers separated by spaces, commas, semicolons, or line breaks. A token that is not a finite number stops the calculation and names the token. Blank input is rejected. A minus sign is allowed and is part of the number. The calculator does not turn a word into zero.

The values are added and divided by the count to produce the mean. Each value is subtracted from the mean, the sign is removed, and those distances are averaged. Division uses the count of values you entered, including values that happen to equal the mean. A distance of zero still belongs in the average.

Results are rounded to 12 decimal places. A repeating fraction such as 2 divided by 3 is shown at that precision rather than as a fraction. The steps list the mean, the distances, and the final division so you can see the rounding in context.

One value is a valid list. Its mean is itself and its mean absolute deviation is zero. That is not an error. There is no distance from a center that is the only point. Weights are not accepted. If the values should not count equally, this is the wrong average. The Weighted Average Calculator is built for weights. This page gives every value the same weight.

The Formula

For values x1 through xn, the mean is (x1 + … + xn) / n. The mean absolute deviation is (|x1 − mean| + … + |xn − mean|) / n. The vertical bars are absolute value. The same n appears in both divisions. This is the average distance from the mean, not the square of the distance and not a division by n − 1.

The formula is sometimes written with the median as the center. That is a different statistic, the mean absolute deviation from the median. This calculator does not use the median. If you need that version, find the median yourself and average the distances from it. Do not label this page’s result as a median deviation.

Absolute value is why the result cannot be negative. A point 4 below the mean and a point 4 above the mean contribute the same 4. The mean of the signed deviations is zero for any list, aside from rounding, which is why the signs have to be removed before the average is useful as a measure of spread.

The calculator shows the sum of the absolute distances as well as the average. Multiply the headline by the count and you should land on that sum, within the rounding of the last digit. That check is the formula read backwards.

Worked Examples

The list 1, 2, 3 has the sum 6 and the count 3, so the mean is 2. The distances are 1, 0, and 1. Their sum is 2. The mean absolute deviation is 2 / 3, shown to 12 decimal places as 0.666666666667. The middle value sits on the mean and adds nothing to the spread. The other two values sit one unit away.

The list 5, 5, 5 has the mean 5 and three distances of 0. The mean absolute deviation is 0. Equal values are not a special case the calculator rejects. They are a list with no spread.

The list 10 and 20 has the mean 15. Each point is 5 units from 15. The mean absolute deviation is 5. Order does not matter. 20, 10 produces the same mean and the same deviation. A negative list such as −2, 0, 2 has the mean 0 and distances 2, 0, and 2, so the deviation is 4 / 3.

Comparing two lists by their deviations is fair only when the lists measure the same thing in the same unit. A deviation of 5 dollars and a deviation of 5 percent are not the same kind of number. For a relative comparison of two single figures, a percentage comparison is a different tool. The Percentage Difference Calculator compares two numbers symmetrically. It does not summarize a list.

Mean absolute deviation for four lists
Values Mean Mean absolute deviation
1, 2, 3 2 0.666666666667
5, 5, 5 5 0
10, 20 15 5
−2, 0, 2 0 1.333333333333

How to Enter Values

Separate numbers with a comma, a space, a semicolon, or a new line. Mixing the separators is allowed. “1, 2 3” is three numbers. Do not include the unit in the box. Type 12, not 12 cm. The unit belongs in your notes so you can read the result in that unit.

Decimals are allowed. A leading minus is allowed. A thousands separator is not. 1,000 is the two numbers 1 and 0, because the comma separates values. Type 1000 or 1000.0. A fraction such as 1/2 is not a decimal and is rejected. Convert it to 0.5 first.

A very long integer, beyond 12 digits before the decimal point, is outside the range the arithmetic keeps. Split the problem or scale the data into a range you can check by hand, and say that you scaled it. Do not expect the calculator to return infinity.

Common Mistakes to Avoid

Dividing by n − 1 is the mistake that comes from confusing this average with a sample standard deviation. This page divides by n, the number of values you typed. There is no toggle for a sample correction. If a textbook asks for division by n − 1, it is asking for a different formula.

Hand arithmetic on the side can still help you trust a small list. Addition and division are enough to recompute the mean. The 4 Function Calculator can do that arithmetic one operation at a time. Bring the mean back and check one distance if you want a second look. This page already averages every distance.

Tips for Reading the Result

Read the mean and the deviation together. A deviation of 4 around a mean of 5 is a wide list. A deviation of 4 around a mean of 500 is a tight list in relative terms, even though the absolute number is the same 4. The calculator will not divide the deviation by the mean unless you do that yourself and label it as a relative figure.

If the values are observations along a scale and you need a value between two known points rather than a spread, deviation is the wrong tool. The Linear Interpolation Calculator estimates a point on a straight line. It does not describe the spread of a cloud of numbers.

Limitations

The calculator assumes each typed value is one observation with equal weight. Grouped data, such as “12 appears 30 times,” must be expanded or handled with weights. Typing 12 once understates the group. There is no frequency column.

Scale, Units, and Comparing Lists

Two deviations can be compared only when the lists share a unit and a situation. A deviation of 3 grams and a deviation of 3 kilograms are not interchangeable, and the calculator will not see the unit you left in your notebook. Write the unit beside the copied sentence. If you scaled the data, write the scale too. A list you divided by 100 before typing has a deviation that must be multiplied by 100 before it describes the original measurements.

Checking a Result

For a short list, add the values and divide by the count. That is the mean line. Subtract the mean from each value and drop the signs. Average those distances. They should match the headline at the displayed precision.

If the textbook answer differs, compare the center and the divisor before you assume a typing error. A median center, a squared distance, or a division by n − 1 will not match this page, and it should not. The Interpolation Calculator will also not match, because interpolation builds a new point between known points rather than a spread around a mean.

Frequently Asked Questions

What is mean absolute deviation?

It is the average of the absolute distances between each value and the arithmetic mean of the list. Distances are positive, so the average is zero only when every value equals the mean.

What formula does this calculator use?

It adds the values and divides by n to get the mean. It then averages the absolute value of each value minus that mean, dividing by the same n.

Does it divide by n or by n − 1?

It divides by n, the count of numbers you entered. It does not apply a sample correction.

Is this the same as standard deviation?

No. Standard deviation squares the distances before averaging them, then takes a square root. This page averages the distances themselves and does not square them.

Can the result be negative?

No. Absolute distance drops the sign. A value below the mean and a value the same amount above the mean contribute the same distance.

What if every value is the same?

The mean is that value and every distance is zero, so the mean absolute deviation is 0.

What if I enter one number?

The mean is that number and the deviation is 0. A single point has no spread around itself.

Are negative numbers allowed?

Yes. A leading minus sign is part of the number. The mean can be negative. The deviation is still an average of distances and is not negative.

How do I separate numbers?

Use spaces, commas, semicolons, or line breaks. Do not use a comma as a thousands separator, because a comma starts a new value.

What happens to a word in the list?

The calculation stops and names the token. Words are not treated as zero.

Does order matter?

No. The mean and the distances do not depend on the order of the values.

Can I weight some values more than others?

Not on this page. Every value counts once. A weighted average is a different calculation.