How the mean, median and mode calculator works
Enter a list of numbers to find three descriptions of its center: the mean, median and mode. The calculator also gives the range, count, sum and frequency of the mode. The working shows how the numbers produce each result.
- 1Type or paste your numbers. Separate values with commas, spaces, tabs or new lines. You can paste a spreadsheet row or column. Include every observation, including repeated values; negative numbers, decimals and zeros are valid.
- 2Check the entries read. Review the count and the numbers recognized under the input box. Correct anything listed as nonnumeric, and check that a spreadsheet header or an accidental separator has not changed your list.
- 3Inspect the working. Step by step shows the sum for the mean, the sorted list with its middle marked for the median, and each number's frequency for the mode. The dot plot shows where the mean and median sit among your observations.
Each entered observation has equal weight. The input is a list of individual values, not grouped intervals or pairs of values and frequencies.
The mean, median, mode and range formulas
Add every observation, then divide by the number of observations. Repeated values and zeros both count.
Sort from smallest to largest and count positions starting at 1. With an odd count, use the value at the middle position. With an even count, average the two middle values.
The middle position is a location, not the median's value. For ten numbers, (10 + 1) ÷ 2 = 5.5 tells you to look between the fifth and sixth values. It does not mean that the median is 5.5.
To find the mode, count how often each distinct number appears. Every repeated number tied for the highest frequency is a mode. This calculator uses the convention that there is no mode when every number appears only once. The mode is the number itself; its frequency is how many times it appears.
Range measures the distance between the extremes. It does not describe how the observations are spread between them.
Worked example: ten numbers
Enter 4, 8, 6, 5, 3, 8, 9, 8, 2, 7. There are ten observations, including three separate occurrences of 8.
- 1Find the mean. The sum is 4 + 8 + 6 + 5 + 3 + 8 + 9 + 8 + 2 + 7 = 60. Divide by the count: 60 ÷ 10 = 6.
- 2Find the median. The sorted list is 2, 3, 4, 5, 6, 7, 8, 8, 8, 9. The fifth and sixth values are 6 and 7, so the median is (6 + 7) ÷ 2 = 6.5.
- 3Find the mode. The number 8 appears three times. Every other distinct number appears once, so the mode is 8 and its frequency is 3.
- 4Find the range. The largest value is 9 and the smallest is 2. Their difference is 9 − 2 = 7.
| Number | Frequency |
|---|---|
| 2 | 1 |
| 3 | 1 |
| 4 | 1 |
| 5 | 1 |
| 6 | 1 |
| 7 | 1 |
| 8Mode | 3 |
| 9 | 1 |
Which measure should you use?
| Your question | Measure | What it uses |
|---|---|---|
| What is the equal-share amount per observation? | Mean | The sum of every observation, divided by the count. |
| What is the middle value despite extreme observations? | Median | The middle position or pair in the sorted list. |
| Which observed number is most common? | Mode | The highest frequency, which may be tied. |
An extreme observation can move the mean substantially. In the worked example, replace 9 with 99: the sum becomes 150 and the mean becomes 15. The median remains 6.5 and the mode remains 8 because neither the middle pair nor the most frequent value changed.
A mean above the median often accompanies right-skewed data, while a mean below it often accompanies left-skewed data. OpenStax notes that these patterns have exceptions, especially in discrete data. Check the dot plot instead of treating the difference as proof of the distribution's shape.
Check your data before interpreting the results
- 1Use comparable observations. Keep the same quantity and unit throughout the list. Convert mixed units first. Numerical category codes, such as product identifiers, do not become meaningful measurements just because they contain digits.
- 2Preserve real repeats and zeros. Do not remove duplicate observations before calculating. A missing observation is not the same as zero, so enter 0 only when it is an actual recorded value.
- 3Expand frequencies into observations. If 4 was observed three times, enter 4, 4, 4. Entering 4, 3 gives the calculator two observations; it does not tell it that 4 has a frequency of 3.
- 4Keep the original precision. Rounding observations before entry can create repeated values and change the mode. Keep the recorded values for the calculation, then round the reported answer to a suitable precision.
Frequently asked questions
Is the mean the same as the average?
In everyday use, average usually means the arithmetic mean: the sum divided by the count. This calculator uses that definition, with equal weight for each entered observation.
How do I find the median with an even number of values?
Sort the values, add the two middle numbers and divide by 2. For 2, 3, 5, 9, the middle pair is 3 and 5, so the median is 4 even though 4 is not in the list.
What does no mode mean?
On this page, no mode means that no number repeats. For example, 1, 3, 5, 7 has no mode under this convention; it does not have a mode of zero.
Can a data set have more than one mode?
Yes, repeated values can tie for the highest frequency. In 1, 2, 2, 3, 4, 4, 5, both 2 and 4 occur twice, so both are modes. Two modes are called bimodal; more than two are called multimodal.
Can I use negative numbers and decimals?
Yes, the same calculations apply to negative numbers, decimals and zeros. For -2, 0.5, 0.5, 3, the sum is 2 and the count is 4, so the mean is 0.5; the median and mode are also 0.5, and the range is 5.
What happens when all the numbers are the same?
For a list such as 7, 7, 7, the mean, median and mode are all 7. The range is 0 because the largest and smallest values are equal.
Sources
- 1Measures of Location · National Institute of Standards and Technology · Accessed November 2026
- 2Measures of Scale · National Institute of Standards and Technology · Accessed November 2026
- 3Introductory Statistics 2e, 2.5 Measures of the Center of the Data · OpenStax · Accessed November 2026
- 4Introductory Statistics 2e, 2.6 Skewness and the Mean, Median, and Mode · OpenStax · Accessed November 2026
- 5Measures of central tendency · Australian Bureau of Statistics · Accessed November 2026