Tutorial

How to Calculate Mean Absolute Deviation Step by Step

A complete walkthrough you can follow by hand, in a spreadsheet, or verify with the calculator.

Calculating the Mean Absolute Deviation is one of the most straightforward statistical procedures you will ever learn. There are only three real steps, and none of them involve squaring or taking square roots. Once you have done it a couple of times, it becomes almost automatic.

The three steps at a glance

  1. Find the mean of your data set.
  2. Find the absolute difference between each value and that mean.
  3. Average those absolute differences.

That is the entire method. Everything else is just careful arithmetic.

Worked example 1 — Test scores

Let’s use a small set of quiz scores so the numbers stay easy to follow: 12, 15, 18, 20, 22, 25, 30.

Step 1 — Calculate the mean

Add every score: 12 + 15 + 18 + 20 + 22 + 25 + 30 = 142.

There are 7 scores, so the mean is 142 ÷ 7 ≈ 20.2857. We will keep a few decimal places for accuracy and round the final answer sensibly at the end.

Step 2 — Calculate each absolute deviation

Subtract the mean from each score and drop the negative sign (that is what the absolute value does):

  • |12 − 20.2857| = 8.2857
  • |15 − 20.2857| = 5.2857
  • |18 − 20.2857| = 2.2857
  • |20 − 20.2857| = 0.2857
  • |22 − 20.2857| = 1.7143
  • |25 − 20.2857| = 4.7143
  • |30 − 20.2857| = 9.7143

Step 3 — Average the absolute deviations

Add the absolute deviations: 8.2857 + 5.2857 + 2.2857 + 0.2857 + 1.7143 + 4.7143 + 9.7143 ≈ 32.2857.

Divide by the number of observations: 32.2857 ÷ 7 ≈ 4.61.

So the Mean Absolute Deviation of these scores is approximately 4.61 points. On average, each score sits about 4.6 points away from the mean of roughly 20.3.

Worked example 2 — Slightly larger set

Here is a second set you can try yourself or load straight into the calculator: 72, 85, 90, 68, 95, 78, 88, 82.

The mean is 82.25. The absolute deviations sum to 58, and the MAD is 7.25. Notice that the scores range from 68 to 95, yet the average distance from the center is only a little over 7 points. That already gives a useful sense of consistency.

Tips that prevent common mistakes

  • Do not forget the absolute value. If you simply average the positive and negative deviations, they cancel and you get (almost) zero. That is not the MAD.
  • Use the same mean for every deviation. Recalculating a “running mean” or using the median by accident changes the measure.
  • Decide whether you are using n or n−1. Classic Mean Absolute Deviation almost always divides by n. The n−1 correction is mainly used for sample variance and sample standard deviation. This calculator follows the conventional MAD definition (divide by n) while still offering the sample standard deviation for comparison.
  • Watch your rounding. It is safer to carry extra decimal places through the intermediate steps and round only the final MAD.

How to do it in a spreadsheet

In Google Sheets or Excel the calculation is short:

  1. Put your data in a column (say A1:A20).
  2. Compute the mean with =AVERAGE(A1:A20).
  3. In a helper column calculate =ABS(A1 - $B$1) and fill down.
  4. Average the helper column with =AVERAGE(...).

Or use a single array formula if your software supports it. Of course, the fastest way is still to paste the numbers into the MAD Calculator on this site and watch the steps appear automatically.

Why showing the steps matters

Many online calculators simply return a final number. That is fine when you only need the answer, but it is almost useless for learning or for checking homework. Seeing every absolute deviation listed, together with the mean and the final division, lets you verify the arithmetic and understand where the result comes from. Teachers especially appreciate tools that make the process transparent instead of treating statistics like a black box.

Practice suggestion

Open the calculator, click the Random button a few times, and try to compute the MAD by hand before looking at the step-by-step solution. The feedback loop is immediate and the numbers stay manageable. After a handful of practice sets the procedure becomes second nature.

Verify the first example instantly

The scores 12, 15, 18, 20, 22, 25, 30 are already prepared for you.

Load example in calculator →