Skip to calculator
Calculate This

Mean, median and mode calculator

Paste a list of numbers to get the mean, median, mode and range, plus count, sum and standard deviation, with the sorted list shown.

Defaults to your region. Switch to compare any other scale.

Result

5.5

Mean (average)

Exact: 5.5

  • Median4.5
  • Mode4 (3 times)
  • Range (max − min)8 (10 − 2)
  • Count (n)8
  • Sum44
  • Minimum2
  • Maximum10
  • Standard deviation (sample, n−1)2.6186
  • Standard deviation (population, n)2.4495
  • Variance (sample)6.8571
  • Sorted values2; 4; 4; 4; 5; 7; 8; 10

Mean vs median

The median is the middle value and ignores extreme outliers; the mean uses every value. If they differ a lot, your data is skewed.

About this tool

Mean

Add all values and divide by how many there are. For 2, 4, 4, 5, 10 the mean is 25 ÷ 5 = 5.

Median

Sort the values and take the middle one. With an even count, average the two middle values. For 2, 4, 4, 5, 10 the median is 4.

Mode and range

The mode is the value that appears most often (4 in the example). A list can have several modes or none. The range is the largest minus the smallest value: 10 − 2 = 8.

Formula

  • Mean = Σx ÷ n
  • Median = middle value of the sorted list (average of the two middle values if n is even)
  • Mode = most frequent value
  • Range = max − min
  • s = √(Σ(x − mean)² ÷ (n − 1))

How it is calculated

  1. Type or paste your numbers.
  2. Separate them with commas, spaces or new lines.
  3. Read the mean, median, mode and range.
  4. Check the count, sum and standard deviation below.

Questions

How do I find the median of an even number of values?

Sort the values and average the two in the middle. For 3, 5, 8, 10 the median is (5 + 8) ÷ 2 = 6.5.

Can a data set have more than one mode?

Yes. If two values tie for most frequent, both are modes (bimodal). If every value appears once, there is no mode.

Sample or population standard deviation?

Use the sample value (divide by n − 1) when your numbers are a sample of a bigger group, and the population value (divide by n) when they are the whole group. Both are shown.

Sources

Related calculators