Mean, Median, Mode Calculator

This calculator computes the mean (arithmetic average), median (middle value), and mode (most frequent value) for any dataset. Enter a comma-separated list of numbers, and the calculator displays all three measures along with range (max - min) and count (number of values). The sorted list is shown for reference. These three statistical measures each provide different insight into a dataset: the mean is the center of gravity, the median is the middle position (unaffected by outliers), and the mode is the most common value. Understanding all three helps you interpret data accurately.

Enter numbers separated by commas
Count--
Mean (average)--
Median (middle)--
Mode (most frequent)--
Range (max - min)--

Formulas

Mean = sum of all values / count
Median = middle value when sorted (or average of two middle values)
Mode = most frequently occurring value
Range = maximum - minimum

Worked example

Dataset: 2, 4, 6, 6, 8

  • Count: 5 values
  • Mean: (2 + 4 + 6 + 6 + 8) / 5 = 26 / 5 = 5.2
  • Sorted: 2, 4, 6, 6, 8. Median: 6 (middle value)
  • Mode: 6 (appears twice, others appear once)
  • Range: 8 - 2 = 6

Mean, median, mode calculator: frequently asked questions

What is the mean?

The mean (or arithmetic average) is the sum of all values divided by the count of values. For example, the mean of 2, 4, 6 is (2 + 4 + 6) / 3 = 4. The mean is useful for understanding the typical value in a dataset, but it is affected by outliers.

What is the median?

The median is the middle value when numbers are sorted in order. For an odd number of values, it is the middle one. For an even number, it is the average of the two middle values. The median is less affected by outliers than the mean.

What is the mode?

The mode is the value that appears most frequently in a dataset. A dataset can have one mode (unimodal), two modes (bimodal), or no mode if all values appear equally often. The mode is useful for categorical data and identifying the most common value.

What is the range?

The range is the difference between the largest and smallest values in a dataset: range = max - min. It measures the spread of data but is affected by outliers. A larger range indicates more variability.

When should I use mean vs. median?

Use the mean for symmetric distributions without outliers. Use the median when data has outliers or is skewed (e.g., income data). The median is more robust and resistant to extreme values. In skewed distributions, the median often better represents the typical value.

Official sources

Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.