The three measures explained
Mean, median, and mode are the three primary measures of central tendency—they each describe where the "center" of a dataset lies, but in different ways. Together with range, they give you a complete snapshot of how your data behaves.
The formula
Mean = (sum of all values) ÷ (count of values) | Median = middle value when sorted | Mode = most frequently occurring value | Range = maximum − minimum
Worked example
Suppose you collect the weekly study hours from 7 students: 5, 8, 6, 9, 8, 7, 15
Finding the mean: Sum = 5 + 8 + 6 + 9 + 8 + 7 + 15 = 58 Count = 7 Mean = 58 ÷ 7 = 8.29 hours
Finding the median: Sort the data: 5, 6, 7, 8, 8, 9, 15 With 7 values (odd count), the median is the 4th value: 8 hours
Finding the mode: The value 8 appears twice; all others appear once. Mode = 8 hours
Finding the range: Maximum = 15, Minimum = 5 Range = 15 − 5 = 10 hours
Interpretation: The typical student studies about 8 hours weekly (median). On average it's 8.29 hours (mean), pulled up slightly by one student who studied 15 hours. The spread is 10 hours—quite wide, indicating varied study habits.
Why each measure matters
Mean gives you the mathematical average and is useful for totals and comparisons across groups. However, it's sensitive to extreme values. In the example above, the one student studying 15 hours raises the mean noticeably.
Median is the "middle ground" and resists outliers. It's ideal when your data includes unusually high or low values that don't reflect the typical case. Here, 8 hours feels more representative than 8.29.
Mode shows the most common value—useful for categorical or frequency-based questions. "What's the most popular study duration?" The answer is 8 hours. Mode can reveal clusters in your data.
Range quantifies variability. A range of 10 hours tells you there's significant diversity. Combined with mean or median, it hints at whether your data is tightly grouped or spread out.
Common mistakes to watch
Forgetting to sort before finding the median: The median only works correctly if values are in order first. Unsorted data will give you a wrong answer.
Confusing mean with median: They're often close but not identical, especially in skewed datasets. Always check which one the question asks for.
Assuming there's always a mode: In uniformly distributed data, no value repeats. That's okay—just note "no mode."
Ignoring outliers in the mean: If one extreme value exists, mention it. The mean alone doesn't flag that your data might be unusual. Report both mean and median for a fuller picture.
This calculator handles the arithmetic instantly, but understanding why each measure exists helps you choose the right one for your analysis.