Calculators.Life Calculator
Statistics

Absolute Deviation Calculator

Input Parameters

Scenarios
Enter numerical values separated by commas, spaces, or new lines.
Calculate deviation from the Mean (MAD) or the Median (Median Absolute Deviation).

Computed Results

Mean Absolute Deviation (MAD)
7
Central Value (Mean / Median)11.5
Sum of Absolute Deviations28
Count (n)4
Median Absolute Deviation (MedAD)7

The absolute deviation calculator determines the average distance between each data point and the center of your dataset. By choosing either the mean or the median as your central value, you can measure data variability, evaluate the spread of your numbers, and identify potential outliers.

Formulas and Calculation Method

Absolute deviation measures how much a set of numbers varies from its central point. Depending on your analysis, you can calculate this deviation using either the mean (average) or the median (middle value) of the dataset.

The Mean Absolute Deviation (MAD) is calculated by finding the absolute difference between each data point and the central value, summing those differences, and dividing by the total number of values:

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

Where:

The calculator also determines the Median Absolute Deviation (MedAD). Instead of averaging the absolute differences, MedAD finds the median of those differences. This metric is highly resistant to extreme outliers.

Verified Calculation Examples

Here is how the calculator processes different datasets based on the chosen measure of central tendency:

Example 1: Standard Dataset (Mean)

If you enter the values 2, 7, 15, 22 and select the mean as your central tendency, the calculator determines a central value of 11.5. The sum of the absolute deviations is 28 across 4 values. Dividing 28 by 4 yields a Mean Absolute Deviation (MAD) of 7. The Median Absolute Deviation (MedAD) is also 7.

Example 2: Small Dataset (Median)

Consider the dataset 10, 12, 14, 16, 18 using the median. The central value is 14. The sum of absolute deviations is 12 across 5 values, resulting in a MAD of 2.4. The MedAD for this dataset is 2.

Example 3: Dataset with Outliers (Median)

For a dataset with negative numbers and extreme highs, such as -50, -20, 0, 10, 500, 1000, using the median provides a central value of 5. The sum of absolute deviations is 1580 across 6 values, giving a MAD of 263.3333. Because MedAD is resistant to outliers, it evaluates to 40.

Practical Use Cases

Understanding absolute deviation is useful in various statistical and analytical contexts:

Frequently Asked Questions

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

Mean absolute deviation calculates the average of the absolute differences from the center. Standard deviation squares those differences before averaging them and then takes the square root. Standard deviation gives more weight to extreme outliers, while absolute deviation treats all distances proportionally.

Should I use the mean or the median for absolute deviation?

Use the mean if your dataset is relatively symmetrical without extreme outliers. Use the median if your dataset is skewed or contains extreme high or low values, as the median is less affected by outliers.

Can absolute deviation be negative?

No. Because the calculation uses absolute values (removing any negative signs from the differences), the absolute deviation is always 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.