Mean, Median, and Mode Calculator
Enter a list of numbers to instantly find the mean, median, mode, and range, along with the count, sum, min, max, and both standard deviations. It's a handy way to summarize any small data set — a batch of test scores, a week of sales numbers, or a set of measurements from a science experiment.
Quick examples:
Mean
Average value
Median
Middle value
Mode
Most frequent value(s)
Range
Max − min
Count (n)
Sum
Min
Max
Standard Deviation
For a full per-value breakdown of these calculations, see the Standard Deviation Calculator.
Sorted Values
Mean vs. Median vs. Mode — What's the Difference?
All three are ways of describing a "typical" value in a data set, but each one answers a slightly different question, and picking the wrong one can paint a misleading picture of your data.
The mean (the average) adds up every value and divides by how many there are. It uses every single number in the calculation, which makes it sensitive to outliers — a few unusually large or small values can pull it far away from where most of the data actually sits. A classic example is household income: imagine ten neighbors where nine earn around $50,000 a year and one earns $2,000,000. The mean income across the group is pulled up to roughly $245,000 — a number that doesn't represent almost anyone in the neighborhood. The median, on the other hand, would still land right around $50,000, because it only cares about the middle value once the numbers are sorted, not how extreme the values at either end happen to be. That's why the median is described as robust to outliers, while the mean is not.
The mode answers a different question entirely: which value shows up most often? It's the only one of the three that works on non-numeric or categorical data (like shoe sizes, survey answers, or favorite colors), which is why it's especially useful outside of pure number-crunching — for example, finding the most commonly ordered menu item, or the most frequent response on a multiple-choice survey.
How to Calculate Each by Hand
Mean: Add up all the values, then divide by the count of values. If your data set is 4, 8, 6, 5, 3, 9, 8, the sum is 43 and there are 7 values, so the mean is 43 ÷ 7 ≈ 6.14.
Median: Sort the values from smallest to largest. If there's an odd number of values, the median is the single value exactly in the middle. If there's an even number of values, there is no single middle value — instead, average the two middle values together. For example, sorted data 2, 4, 4, 6, 8, 10 has six values, so the median is the average of the 3rd and 4th values: (4 + 6) ÷ 2 = 5.
Mode: Count how many times each value appears. The value (or values) that appear most often is the mode. If every value appears exactly the same number of times — including when every value is unique — there is no mode at all. If two or more values are tied for the highest frequency, the data set is multimodal and all of the tied values are reported as modes.
How to Use This Calculator
- Type or paste your list of numbers into the box above. You can separate them with commas, spaces, or line breaks — even a mix of all three works fine.
- Click Calculate to instantly see the mean, median, mode, range, and supporting statistics.
- Check the sorted values list below the results to visually confirm which values landed in the middle for the median.
- If you typed something that wasn't a valid number, a warning will tell you exactly which entries were ignored so you can fix them.
- Use Clear to start over, or try one of the quick example buttons to see the calculator in action.
Frequently Asked Questions
Can a data set have more than one mode?
Yes. When two values are tied for the highest frequency, the data set is called bimodal, and when three or more values are tied, it's called multimodal. This calculator lists every tied value — for example, "3 and 7 (tied)" — rather than arbitrarily picking just one.
What if there's no mode at all?
If every value in your list appears exactly once (or every value appears the same number of times as every other value), there technically isn't a most-frequent value, so the data set has no mode. This calculator will clearly display "No mode (all values are unique)" in that case rather than showing a blank or broken result.
Which measure should I use for skewed data?
For data that's skewed — meaning it has a long tail of unusually high or low values, like incomes, home prices, or reaction times — the median is usually the better choice, because it isn't dragged around by extreme values the way the mean is. The mean is more appropriate for data that's roughly symmetric, where there aren't a handful of extreme outliers pulling it in one direction.
Why are there two standard deviation formulas — population vs. sample?
Population standard deviation divides by the total count (N) and is used when your numbers represent an entire group. Sample standard deviation divides by one less than the count (N − 1) and is used when your numbers are only a subset drawn from a larger group you're trying to estimate. For a deeper explanation of why the sample formula uses N − 1, along with a full per-value deviation breakdown, see the Standard Deviation Calculator.
What happens if I only enter one number?
With a single value, the mean, median, and that value are all identical, and the range is 0. Sample standard deviation is undefined with only one value (dividing by N − 1 would mean dividing by zero), so this calculator displays "N/A (need at least 2 values)" for that result instead of showing an error.
Is my data uploaded anywhere?
No. Every calculation happens locally in your browser using JavaScript — nothing you type is ever sent to a server, logged, or stored anywhere. You can even use this tool offline once the page has loaded.