Calculators.Life Calculator
Statistics

Mean Deviation Calculator

Input Parameters

Scenarios
Enter numerical values separated by commas, spaces, or newlines.
Calculate mean deviation about the mean or about the median.

Computed Results

Mean Absolute Deviation (MAD)
2.8
Central Value (Mean/Median)10
Sample Size (N)5
Sum of Values50
Sum of Absolute Deviations14

The mean deviation calculator determines the average absolute distance between each value in a dataset and its central point. By choosing either the mean or the median as your reference, you can measure data dispersion and understand how spread out your numbers are.

How to Calculate Mean Absolute Deviation

Mean absolute deviation (MAD) measures the average spread of a dataset. It is calculated by finding the absolute difference between each data point and a central reference value (either the mean or the median), summing those differences, and dividing by the total number of values.

MAD = (Σ |x − c|) ÷ n

In this formula, x represents each individual data value, c is the chosen central reference point (mean or median), and n is the total sample size. The vertical bars indicate absolute value, meaning all distances are treated as positive numbers regardless of whether they fall above or below the center.

Calculation Examples

To see how the formula works in practice, consider these verified scenarios using different reference points and data formats.

Example 1: Small Dataset Using the Mean

Suppose you have a simple dataset of two values: 10 and 20. If you select the mean as your deviation reference point, the calculator first determines the mean is 15. The absolute deviation for 10 is 5, and for 20 it is also 5. The sum of these absolute deviations is 10. Dividing this sum by the sample size of 2 results in a mean deviation of 5.

Example 2: Dataset Using the Median

Consider a dataset with an outlier: 1.5, 2.5, 3.5, 4.5, 10.5, 20.0, and 50.0. Using the median as the reference point, the central value is 4.5. The absolute deviations from 4.5 are 3, 2, 1, 0, 6, 15.5, and 45.5. The sum of these absolute deviations is 73. Dividing by the sample size of 7 yields a mean deviation of 10.4286.

Example 3: Negative Values

Mean deviation handles negative numbers smoothly because of the absolute value step. For the dataset -100, -50, 0, 50, and 100, the mean is 0. The absolute distances from 0 are 100, 50, 0, 50, and 100. The sum of absolute deviations is 300. Dividing by the sample size of 5 gives a mean deviation of 60.

Practical Use Cases

Mean deviation is a straightforward way to quantify variability in a dataset without heavily weighting extreme outliers. It is frequently used in descriptive statistics to summarize data spread. Analysts often prefer calculating mean deviation around the median when dealing with skewed data, as the median is less affected by extreme values than the mean. This metric provides a clear, intuitive average of how far typical data points stray from the center.

Frequently Asked Questions

What is the difference between mean deviation and standard deviation?

Mean deviation calculates the average of the absolute differences from the center. Standard deviation squares those differences before averaging them and taking the square root, which gives more weight to extreme outliers.

Should I calculate mean deviation using the mean or the median?

Using the mean is standard for datasets with a normal distribution. If your dataset is skewed or contains significant outliers, using the median as the reference point often provides a more representative measure of dispersion.

Can mean deviation be negative?

No. Because the calculation uses absolute values for all differences, the mean deviation will always be zero or a positive number.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.