Math · Averages & data

Mean, Median & Mode Calculator

Paste a list of numbers to get the mean, median, mode, and range together. The sorted dataset and frequency table show the middle position and the most common value instead of hiding them behind the result.

Dataset

5 values read. Commas, spaces, and line breaks separate values. Up to 1,000 numbers, each within ±1,000,000,000,000. A comma is a separator, not a thousands separator, so enter 1500 rather than 1,500.
Calculated in your browser.
Dataset summary

7.2

Mean of 5 values

Median8position 3 of 5
Mode8occurs 2 times
Range610 − 4
Count5values read
Step by stepMean = (4 + 8 + 6 + 10 + 8) ÷ 5 = 7.2Median = sorted position 3 = 8Mode = 8 occurs 2 timesRange = 10 − 4 = 6. Calculations keep full precision; results are rounded for display.

The mean uses every value, the median uses the middle position, the mode uses the highest frequency, and the range uses only the two extremes.

Sorted dataset

5 values · 4 distinct

4, 6, 8, 8, 10

Frequency

How often each value occurs in the dataset
ValueCountShare
4120%
6120%
8240%
10120%

Sorted values show the order the median works from; the frequency table shows which value wins the mode. Both views use the full dataset, including when the list scrolls.

Four readings from one list

How to use the mean, median, and mode calculator

Type or paste numbers into the dataset field. Commas, spaces, tabs, and line breaks all separate values, and blank entries are ignored. The five-number example 4, 8, 6, 10, 8 is loaded on first visit and is replaced by your own list as soon as you type. Reset values restores it, and the URL keeps the list in a data parameter.

All four statistics use the same list. The result panel shows the mean first, then the median, mode, range, and count, with the arithmetic for each one below. The sorted dataset under the calculator shows the order the median works from; the frequency table shows how often each value occurs, which is what decides the mode. Neither view changes the data: they expose the steps.

What mean, median, mode, and range measure

Each statistic answers a different question about the same list. The mean describes what each entry would be if the total were spread evenly. The median describes the middle position. The mode describes the most frequent value. The range describes how far apart the extremes are.

Mean (arithmetic average)Mean = Σx ÷ nMedianMedian = middle value of the sorted list (odd count)Median = (two middle values) ÷ 2 (even count)ModeMode = value or values with the highest frequencyRangeRange = maximum − minimum

Here n is the number of values. The mean and range are always defined for a non-empty list; the mode is not defined when every value is different, and the calculator says so rather than inventing one.

Worked example: 4, 8, 6, 10, 8

Sort the five values first: 4, 6, 8, 8, 10. Sorting does not change the mean, but it makes the median and the repeated value visible.

Sorted dataset4, 6, 8, 8, 10
Mean36 ÷ 5 = 7.2
Medianthird of five values = 8
Mode8, which occurs twice
Range10 − 4 = 6

The frequency table shows 4 once, 6 once, 8 twice, and 10 once. The 8 row holds 2 of the 5 values, or 40% of the dataset. These are the numbers the result panel reports, so the example can be reproduced by hand.

Even counts, tied modes, and no mode

An even count has two middle values

Take six values: 4, 6, 6, 8, 8, 10. The third and fourth values are 6 and 8, so the median is (6 + 8) ÷ 2 = 7. That median is not one of the entered values. Averaging the middle pair is the definition of the median for an even count, not a rounding step, so the exact value 7 is used even when it falls between two integers.

Ties are reported, not broken

In the same six-value list, 6 and 8 both occur twice, so the list has two modes: 6 and 8. The calculator reports every value tied at the highest frequency. It does not pick the smaller one, the first one entered, or the one nearest the mean. Three or more values can tie in the same way.

No repeats means no mode

When every value occurs exactly once, the list has no mode. The result panel shows “No mode” and keeps the mean, median, and range. A list without repeats is not a list with a mode of zero, and the tool does not fall back to the smallest value.

Equality is numeric

Values are grouped by numeric value: 1, 1.0, and 1.00 are the same entry and count together, while 1 and 1.0001 are different entries. Leading zeros, a plus sign, and a trailing decimal point do not create a separate value. This matters for a mode when the same number is pasted in different formats.

Reading the sorted list and frequency table

The sorted dataset is a text list of every value in ascending order. It is the sequence the median calculation works from, and duplicates are easier to see there than in the original input order. Sorting does not alter the mean, the range, or the frequency counts.

The frequency table has one row per distinct value, with its count and its share of the dataset. The share is count ÷ n × 100, rounded for display; it describes the entered list rather than a probability. The shares always add to 100% for the values entered.

Both views are read-only. In a long list the sorted values and the table scroll, but every entered value still contributes to every statistic. Values are listed in ascending order, so a repeated value cannot hide between unrelated entries.

When to use mean, median, or mode

Use the mean when every observation should count in proportion to its size and the list is not dominated by extremes — test scores, daily totals, or measurements without outliers. It uses all the data, which is also why one unusual value can move it.

Use the median when the list is skewed or contains values you cannot exclude: incomes, home sale prices, response times, or ages. The median changes only when a value crosses the middle, so a single very large entry does not drag it the way it drags the mean.

Use the mode when repeats carry the meaning: the most common shoe size, the most frequent score, or the typical rating in a survey. A mode can sit away from the mean and median, and a list can have more than one. Use the range as a quick width check and report it with the median or mean. Two lists can share a range of 6 while one is tightly clustered and the other is not, because the range says nothing about the values in between.

What these statistics do not tell you

These are descriptive statistics for the entered list. They do not estimate a population, test a hypothesis, or say whether a difference between groups is statistically significant. The page does not compute variance, standard deviation, quartiles, interquartile range, or skewness, and it does not fit a distribution.

The mean is the same calculation for a sample and a population; the sample/population distinction matters in variance and standard deviation, which are not calculated here. The tool also treats every value as one observation. If one row represents many observations, enter the observations or use a weighted calculation; grouped input such as “8 × 20” is not supported.

Calculations keep full precision while displayed values are rounded: most results show at most six decimal places, and very small values keep enough decimal digits to remain readable. The median of an even count is the exact average of the two middle values before display rounding. Input is limited to 1,000 values, each finite and within ±1,000,000,000,000. Commas separate values, so 1,500 is read as 1 and 500; enter 1500. Text and unit labels are rejected rather than guessed.

Mean, median, and mode FAQs

Can a dataset have two medians?

No. An even count has two middle values, but the median is their average, a single number. A dataset can have two or more modes, which is a different statistic and does not affect the median.

What if every number appears only once?

There is no mode. The tool reports “No mode” rather than picking the smallest value or the first one entered, and the mean, median, and range are still calculated from the same list.

How are tied modes handled?

Every value with the highest frequency is reported. If 6 and 8 both occur twice and no value occurs three times, the modes are 6 and 8. There is no tie-break by size, position, or input order.

Is the median always one of the entered values?

No. With an odd count it is the middle entered value, but with an even count it is the average of the two middle values, which can fall between them. The list 4, 6, 6, 8, 8, 10 has a median of 7, and 7 is not in the list.