Statistics

Mean, Median, Mode Calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a mean, median, mode calculator?

A mean, median, mode calculator is a statistics tool that takes a list of numbers and instantly reports the most common measures of central tendency and spread: the mean (arithmetic average), the median (middle value), the mode (most frequent value), the range (the gap between the largest and smallest value), and the count (how many values you entered).

These five numbers are the foundation of descriptive statistics. The mean, median, and mode each describe the “center” of a data set from a different angle, while the range gives a quick sense of how spread out the values are. Instead of working through each formula by hand, you simply type your numbers and the calculator does the arithmetic for you, which is especially handy for large data sets where manual counting becomes error-prone.

How does it work?

The calculator reads every number you enter, ignores any blank rows, and then applies the standard definitions below to the cleaned list.

Mean

The mean is the sum of all values divided by how many values there are:

Mean=i=1nxin\text{Mean} = \frac{\sum_{i=1}^{n} x_i}{n}

where xix_i is each value and nn is the count.

Median

The median is the middle value once the data is sorted in ascending order. With an odd count, it is the single middle value; with an even count, it is the average of the two middle values:

Median={x(n+1)/2n oddxn/2+xn/2+12n even\text{Median} = \begin{cases} x_{(n+1)/2} & n \text{ odd} \\[4pt] \dfrac{x_{n/2} + x_{n/2 + 1}}{2} & n \text{ even} \end{cases}

Mode

The mode is the value (or values) that appears most often. If every value occurs exactly once, there is no mode and the calculator reports “None”. If two or more values tie for the highest frequency, the data set is multimodal and every winning value is listed.

Range

The range measures spread as the difference between the maximum and minimum values:

Range=max(xi)min(xi)\text{Range} = \max(x_i) - \min(x_i)

Count

The count is simply nn, the number of valid values in your list.

Worked examples

Example 1: a five-number set

Take the data set 1,2,2,3,41, 2, 2, 3, 4.

  • Mean: 1+2+2+3+45=125=2.4\dfrac{1 + 2 + 2 + 3 + 4}{5} = \dfrac{12}{5} = 2.4
  • Median: the sorted middle value is 22.
  • Mode: 22 appears twice, more than any other value, so the mode is 22.
  • Range: 41=34 - 1 = 3.
  • Count: 55.

Example 2: no repeated values

Take the data set 5,3,8,15, 3, 8, 1.

  • Mean: 5+3+8+14=174=4.25\dfrac{5 + 3 + 8 + 1}{4} = \dfrac{17}{4} = 4.25
  • Median: sorted, the set is 1,3,5,81, 3, 5, 8; the two middle values are 33 and 55, so the median is 3+52=4\dfrac{3 + 5}{2} = 4.
  • Mode: every value appears once, so there is no mode (the calculator shows “None”).
  • Range: 81=78 - 1 = 7.

Example 3: more than one mode

Take the data set 1,2,2,3,31, 2, 2, 3, 3. Here both 22 and 33 appear twice, tying for the highest frequency, so the data set is bimodal and the mode is reported as 2,32, 3.

Practical notes

  • Outliers move the mean, not the median. When a data set contains a few extreme values, the median is often a more representative “typical” value than the mean. Comparing the two is a fast way to spot skew.
  • The mode is best for categories. For shoe sizes, survey responses, or any value that repeats, the mode tells you what is most common; for continuous measurements that rarely repeat, “None” is a normal result.
  • Blank rows are ignored, so you can leave extra rows empty without affecting the results.

If you only need the average of your numbers, the dedicated tool at https://www.mega-calculator.com/statistics/average/ is a quicker option, while https://www.mega-calculator.com/statistics/standard-deviation/ and https://www.mega-calculator.com/statistics/critical-value/ help once you move from describing a sample to measuring its spread and making inferences about a population.

Report a bug

This field is required.