MathPath
Grades 1–13 Math Hub
Interactive Math Tool & Complete Study Guide

Mean, Median, Mode & Std Dev Calculator

Compute mean, median, mode, range, quartiles (Q1/Q3/IQR), variance, and standard deviation with steps. Complete with step-by-step calculation breakdown, plain-English how-to guides, worked examples, common mistakes to avoid, practice questions, and printable worksheets.

Quick Try:
Jump to Guide: How to Find Mean, Median, Mode & RangeSample ($s$) vs. Population ($\sigma$) Standard DeviationWorked ExamplesCommon MistakesRelated Worksheets

Key Formulas & Rules

Arithmetic Mean

$$\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i$$

Sample Standard Deviation

$$s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n - 1}}$$

Interquartile Range (IQR)

$$\text{IQR} = Q_3 - Q_1$$

Mean vs. Median vs. Mode: Which Measure of Center Should You Use?

MeasureHow It's FoundSensitive to Outliers?Best Used When...
Mean ($\bar{x}$)Sum divided by count $n$Yes (pulled strongly)Data is symmetric with no extreme outliers
MedianMiddle value of sorted listNo (resistant)Data is skewed or has outliers (e.g., home prices, salaries)
ModeMost frequent valueNoCategorical data or finding the most popular shoe size/score

How to Find Mean, Median, Mode & Range

Measures of center summarize a typical value in a dataset, while range and standard deviation describe how spread out the values are.

  1. Step 1 — Sort the data from least to greatest: Sorting immediately reveals the minimum, maximum, median, and repeated modes.
  2. Step 2 — Mean: Add all values and divide by the count $n$.
  3. Step 3 — Median: Take the middle value (if $n$ is odd) or average the two middle values (if $n$ is even).
  4. Step 4 — Mode & Range: Mode is the most frequent value; Range $= \text{Max} - \text{Min}$.

Sample ($s$) vs. Population ($\sigma$) Standard Deviation

Standard deviation measures the average distance of data points from the mean.

  1. Find deviations: Subtract the mean from each data point ($x_i - \bar{x}$) and square each difference.
  2. Divide by $n - 1$ for a SAMPLE ($s$): Used when your data is a subset of a larger group (Bessel's correction prevents underestimating spread).
  3. Divide by $n$ for a POPULATION ($\sigma$): Used only when you have every single member of the entire group, then take the square root.

Step-by-Step Worked Examples

Worked Example 1

Dataset: $12, 15, 18, 18, 22, 25, 30$

Sum $= 140$, Mean $= 20$, Median $= 18$, Mode $= 18$, Range $= 18$.

Worked Example 2

Even count: $4, 8, 10, 14$

Middle two values are $8$ and $10$, so Median $= \frac{8 + 10}{2} = 9$.

Worked Example 3

Effect of an outlier: $4, 6, 8, 10, 12, 50$

Mean jumps to $15$, while Median stays $9$—showing why Median is preferred for skewed data.

Worked Example 4

Standard deviation of $2, 4, 6$

Mean $= 4$. Squared deviations: $4 + 0 + 4 = 8$. Sample $s = \sqrt{8/2} = 2$; Population $\sigma = \sqrt{8/3} \approx 1.633$.

Common Mistakes & How to Avoid Them

Common Mistake #1

Finding the median without sorting first

The middle number of an unsorted list is meaningless—always sort from smallest to largest first.

Common Mistake #2

Confusing Sample ($n-1$) and Population ($n$) standard deviation

In most statistics classes and real-world experiments, your dataset is a sample, so divide by $n - 1$.

Common Mistake #3

Assuming every dataset has a mode

If every value appears only once, there is NO mode (do not write 0 unless 0 is actually the most frequent value!).

Quick Practice Questions (Check Your Understanding)

Try solving these on scratch paper first, then expand each card to verify your steps.

Practice #1: Practice Problem 1: Dataset: $12, 15, 18, 18, 22, 25, 30$

Solution: Sum $= 140$, Mean $= 20$, Median $= 18$, Mode $= 18$, Range $= 18$.

Practice #2: Practice Problem 2: Even count: $4, 8, 10, 14$

Solution: Middle two values are $8$ and $10$, so Median $= \frac{8 + 10}{2} = 9$.

Practice #3: Practice Problem 3: Effect of an outlier: $4, 6, 8, 10, 12, 50$

Solution: Mean jumps to $15$, while Median stays $9$—showing why Median is preferred for skewed data.

Frequently Asked Questions

When should I use Median instead of Mean?
Use the median whenever your data contains extreme outliers or is heavily skewed, because a single very large or small number pulls the mean away from the typical value.
What does a larger standard deviation mean?
A larger standard deviation means the data values are more spread out from the mean; a standard deviation of 0 means every value in the dataset is identical.