Skip to content

Mean, Median & Mode Calculator — Step-by-Step Solutions

0 values detected

Your calculations will appear here

The Mean, Median & Mode Calculator computes the three measures of central tendency for any dataset. It finds the arithmetic mean (average), the median (middle value), and the mode (most frequent value), along with the range.

Enter your data values separated by commas and get instant results. The calculator sorts your data, shows the frequency distribution, and provides step-by-step explanations for each measure.

How to Use the Mean, Median & Mode Calculator

  1. Enter your data values separated by commas (e.g., 5, 8, 12, 3, 8, 15).
  2. Click "Calculate" to compute the mean, median, mode, and range instantly.
  3. Review the step-by-step working for each measure, including the sorted data and frequency distribution.
  4. Use the results to summarise your dataset or compare it with other datasets.

Formula and Theory

The mean (arithmetic average) is the sum of all values divided by the count. It is sensitive to extreme values (outliers). When a dataset is symmetric and has no outliers, the mean is typically the best measure of central tendency.

The median is the middle value when the data is sorted in ascending order. For an even number of values, the median is the average of the two central values. The median is more robust than the mean when outliers are present, making it the preferred measure for skewed distributions such as household income data.

The mode is the value that appears most frequently. A dataset can be unimodal (one mode), bimodal (two modes), multimodal (several modes), or have no mode at all if every value occurs with equal frequency. The mode is the only measure of central tendency that can be used with categorical (non-numeric) data.

Worked Examples

Example 1: Computing the mean

Problem: Find the mean of: 4, 8, 6, 5, 3, 10.

Solution: Sum = 4 + 8 + 6 + 5 + 3 + 10 = 36. Count = 6. Mean = 36 / 6 = 6.

Answer: Mean = 6

Example 2: Finding the median with an odd count

Problem: Find the median of: 12, 3, 7, 9, 5.

Solution: Sort the data: 3, 5, 7, 9, 12. The middle value (position 3 out of 5) is 7.

Answer: Median = 7

Example 3: Identifying the mode

Problem: Find the mode of: 2, 5, 3, 5, 7, 5, 8, 3.

Solution: Frequencies: 2 appears once, 3 appears twice, 5 appears three times, 7 appears once, 8 appears once. The most frequent value is 5.

Answer: Mode = 5

Example 4: Real-world: comparing salary data

Problem: A team of 5 employees earns 30k, 32k, 35k, 37k, and 150k. Which measure best represents the "typical" salary?

Solution: Mean = (30 + 32 + 35 + 37 + 150) / 5 = 56.8k. Median = 35k (middle value). The 150k outlier inflates the mean.

Answer: The median (35k) better represents the typical salary because the mean (56.8k) is skewed by the outlier.

Frequently Asked Questions

When should I use the mean versus the median?
Use the mean when the data is roughly symmetrical with no extreme outliers. Use the median when the distribution is skewed or contains outliers, as it is not affected by extreme values. For example, median household income is more representative than mean household income.
Can a dataset have more than one mode?
Yes. A dataset with two modes is called bimodal, and one with more than two is called multimodal. For example, the dataset {1, 2, 2, 3, 3, 4} is bimodal with modes 2 and 3.
What is the range?
The range is the difference between the maximum and minimum values in a dataset. It is the simplest measure of spread but is sensitive to outliers. For the data {3, 7, 12}, the range is 12 - 3 = 9.
What happens if all values are the same?
If every value in the dataset is identical, the mean, median, and mode are all equal to that value, and the range is zero.
Is the mean always a value that appears in the dataset?
No. The mean is a calculated average and often produces a value not present in the original data. For instance, the mean of {1, 2, 4} is 2.33, which does not appear in the dataset.

Related Statistics Calculators

Related Articles