How to use the Mean, Median, Mode and Range Calculator
- Paste up to 1,000 numbers separated by commas, spaces or new lines.
- Calculate the mean, median, mode and range.
- Expand the sorted data and frequency table to inspect your values.
Mean, Median & Mode formula
The mean uses every value and can be strongly affected by outliers. The median is the middle value of the sorted list. The mode is the most frequent value. A dataset with one distinct value has that value as its mode. When several distinct values all have equal frequencies, this calculator reports no unique mode. The range is the largest value minus the smallest.
Mean = sum of values ÷ number of values
What the terms mean
- Sum
- All data values added together.
- Count (n)
- The number of values, including repeated values.
- Sorted data
- The values arranged from smallest to largest.
Median
Odd count: middle sorted value. Even count: average of the two middle sorted values.
Sort the data before finding the middle. Repeated values each occupy their own position.
Mode
Mode = value or values with the highest frequency
This calculator reports no unique mode when several distinct values all occur equally often. A dataset with only one distinct value has that value as its mode.
Range
Range = largest value − smallest value
Range describes the distance between the two extremes. It does not describe how the other values are distributed.
Mean, Median & Mode worked examples
An odd number of values
Calculate the summary for 2, 4, 4, 6, 9.
- Sum = 2 + 4 + 4 + 6 + 9 = 25; count = 5.
- Mean = 25 ÷ 5 = 5.
- Median = the third sorted value = 4.
- Mode = 4 because it occurs twice.
- Range = 9 − 2 = 7.
Answer: Mean 5; median 4; mode 4; range 7.
An even number of values
Calculate the summary for 2, 4, 6, 8.
- Mean = (2 + 4 + 6 + 8) ÷ 4 = 5.
- The two middle values are 4 and 6.
- Median = (4 + 6) ÷ 2 = 5.
- Every value occurs once, so this calculator reports no unique mode.
- Range = 8 − 2 = 6.
Answer: Mean 5; median 5; no unique mode; range 6.
Two modes and a large outlier
Calculate the summary for 1, 2, 2, 3, 3, 4, 20.
- Sum = 35; count = 7; mean = 35 ÷ 7 = 5.
- Median = the fourth sorted value = 3.
- Both 2 and 3 occur twice, more often than the other values.
- Range = 20 − 1 = 19.
Answer: Mean 5; median 3; modes 2 and 3; range 19. The large value 20 pulls the mean above the median.
Mean, Median, Mode and Range Calculator FAQs
Can I paste from a spreadsheet?
Yes. Spaces, tabs, commas, semicolons and new lines are accepted as separators. Use a period as the decimal mark and do not include thousands separators.
Are negative values supported?
Yes. Negative values, decimals and scientific notation are accepted. Missing values and nonnumeric labels must be removed.
How are several modes displayed?
Values tied for the highest frequency are shown unless several distinct values all occur equally often, in which case the result says no unique mode. If the dataset contains only one distinct value, that value is the mode.