Mean Absolute Deviation Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free mean absolute deviation calculator. Paste your numbers to get the MAD about the mean or the median, with each value's deviation shown.
- Centre used
- 0
- Count
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the mean absolute deviation calculator
- Paste or type your numbers, separated by commas, spaces or new lines.
- Choose the centre: the mean, which is the usual choice, or the median.
- Read the mean absolute deviation (MAD).
The mean absolute deviation calculator also shows the centre used, the number of values and, for up to 30 values, a table of each value's absolute deviation from the centre.
What is the mean absolute deviation?
The mean absolute deviation is the average distance between each value and the centre of the data. It's a simple, intuitive measure of spread: how far, on average, the values are from the middle. If the MAD of a set of test scores is 5 points, a typical score is about 5 points away from the average score.
Because it's measured in the same units as the data, MAD is easy to explain, which is why it's often taught before the standard deviation in schools, and why it's used in forecasting and quality control.
The mean absolute deviation formula
MAD = Σ |xᵢ − centre| ÷ n
- Find the centre: the mean (or the median).
- Find each value's absolute deviation: the distance from the centre, ignoring whether it's above or below.
- Average the absolute deviations.
With the default numbers, 2, 4, 6, 8 and 10:
- Mean: 30 ÷ 5 = 6.
- Absolute deviations: 4, 2, 0, 2 and 4.
- MAD: (4 + 2 + 0 + 2 + 4) ÷ 5 = 12 ÷ 5 = 2.4.
On average, the values are 2.4 away from the mean.
Why absolute values?
If you simply averaged the deviations from the mean without taking absolute values, the positive and negative deviations would always cancel out to zero, which tells you nothing. Taking the absolute value, treating every distance as positive, keeps the information about spread. The standard deviation solves the same problem differently, by squaring the deviations.
MAD versus standard deviation
Both measure spread, but they behave differently:
- MAD averages the absolute distances. It's easier to understand and less influenced by extreme values.
- Standard deviation takes the square root of the average squared distance. Squaring gives large deviations much more weight, so outliers have a bigger effect. Standard deviation has convenient mathematical properties, which is why it's used throughout statistics, including in the normal distribution.
For the default data, the population standard deviation is about 2.83 and the MAD is 2.4. For data from a normal distribution, the MAD about the mean is roughly 0.8 times the standard deviation. The standard deviation calculator works out both sample and population standard deviations.
Mean or median as the centre?
The mean absolute deviation is usually calculated about the mean. Measuring it about the median has a useful property: the median minimises the average absolute deviation, so the MAD about the median is never larger than the MAD about the mean. It's also more robust when the data has outliers.
Consider 1, 2, 3, 4 and 100:
- About the mean (22): deviations 21, 20, 19, 18 and 78, giving a MAD of 31.2.
- About the median (3): deviations 2, 1, 0, 1 and 97, giving a MAD of 20.2.
The single outlier pulls the mean far from most of the data, so the MAD about the median better reflects the typical distance for the four ordinary values, though both are inflated by the outlier. Choose the median in the mean absolute deviation calculator to see the second result.
A different "MAD": median absolute deviation
Be careful with the abbreviation MAD. In robust statistics, MAD often means the median absolute deviation: the median of the absolute deviations from the median, rather than their mean. It's even less affected by outliers. For 1, 2, 3, 4 and 100, the median absolute deviation is 1, the median of 2, 1, 0, 1 and 97. The mean absolute deviation calculator computes the mean absolute deviation; if a textbook or software uses MAD, check which one it means.
A worked example: delivery times
A shop records the delivery times for ten orders, in days: 3, 5, 4, 6, 3, 4, 5, 7, 4 and 9.
- Mean: 50 ÷ 10 = 5 days.
- Absolute deviations: 2, 0, 1, 1, 2, 1, 0, 2, 1 and 4.
- MAD: 14 ÷ 10 = 1.4 days.
A typical delivery arrives about 1.4 days earlier or later than the average of 5 days. Enter the ten times in the mean absolute deviation calculator to check.
MAD in forecasting
In business forecasting, a closely related measure, often also called MAD or mean absolute error (MAE), averages the absolute differences between forecasts and actual values. If a company forecast monthly sales of 100, 120 and 110 and actually sold 90, 125 and 115, the absolute errors are 10, 5 and 5, and the mean absolute error is about 6.67 units. It's simple to explain and is used to compare forecasting methods and set safety stock levels. To calculate it, list the absolute errors and take their average; that is a simple mean, not a deviation from the mean, so add them up and divide by the number of forecasts.
Who uses a mean absolute deviation calculator
Students use it for statistics homework, where MAD is often introduced before standard deviation. Teachers use it to create examples. Analysts use it to describe variability in a way non-specialists understand. Operations and supply chain teams use mean absolute error to measure forecast accuracy. Quality engineers use it to monitor the consistency of processes.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Common mistakes
- Forgetting the absolute value, which makes the deviations sum to zero.
- Confusing mean absolute deviation with median absolute deviation.
- Comparing MAD from one data set with standard deviation from another.
- Ignoring units. MAD is in the same units as the data.
Comparing the spread of two groups
MAD is a handy way to compare how consistent two groups are. Suppose two classes take the same test. Class A scores 70, 72, 74, 76 and 78, and Class B scores 50, 65, 74, 85 and 96. Both have a mean of 74. Class A's MAD is (4 + 2 + 0 + 2 + 4) ÷ 5 = 2.4 points, while Class B's is (24 + 9 + 0 + 11 + 22) ÷ 5 = 13.2 points. The averages are the same, but Class B's results are far more spread out. Enter each set of scores in the mean absolute deviation calculator to check. When averages match, a measure of spread like MAD often tells the more interesting story.
Relative spread
When comparing groups with very different averages, it can help to divide the MAD by the mean, much as the coefficient of variation divides the standard deviation by the mean. A MAD of 5 is large for data averaging 10, but small for data averaging 1,000. Expressing spread relative to the average makes such comparisons fairer. The coefficient of variation calculator does the same with the standard deviation.
Grouped data
If your data is given as a frequency table, such as the number of students with each score, you can still find the MAD. Multiply each value's absolute deviation from the mean by its frequency, add those products, and divide by the total frequency. Alternatively, list each value as many times as it occurs and paste the full list into the mean absolute deviation calculator.
Teaching MAD
Many school curriculums introduce MAD before the standard deviation, because each step is easy to see and the answer has a plain meaning: the typical distance from the average. Plotting the data on a number line, marking the mean, and drawing the distances helps students see what the calculation does.
Sources and further reading
- Average absolute deviation on Wikipedia: definitions about the mean and the median.
- Median absolute deviation on Wikipedia: the robust measure with a similar name.
- NIST/SEMATECH e-Handbook of Statistical Methods: Measures of scale, standard deviation, MAD and related measures.
Frequently asked questions
How do I calculate mean absolute deviation?
Find the mean, take the absolute distance of each value from it, and average those distances.
What does MAD tell you?
The average distance between the values and the centre of the data.
Is MAD the same as standard deviation?
No. MAD averages absolute distances; standard deviation uses squared distances and is more affected by outliers.
Should I use the mean or the median?
Usually the mean. The median gives a smaller, more robust result when there are outliers.
What is the median absolute deviation?
A related robust measure: the median of the absolute deviations from the median.
Is the mean absolute deviation calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.