Statistics Calculator
Find the mean, median, mode, standard deviation (population and sample), sum, minimum and maximum of any list of numbers.
Tip: click any input label to solve for that value instead.
Formula: Mean = sum of values ÷ count
What are these statistics?
A list of numbers can be summarised in a few figures: the centre (mean, median, mode), the spread (standard deviation), and the extremes (minimum and maximum). Together they tell you what is typical, how much the values vary, and whether any value is unusual. This calculator computes all of them from one list.
Mean, median and mode
The mean is the ordinary average: add all the values and divide by how many there are. The median is the middle value when the list is sorted — half the values are below it, half above. The mode is the most frequent value. On most lists they are close together; when they are far apart, the list is skewed. Income is the classic example: a few very high incomes pull the mean far above the median, which is why the median income is the better guide to what a typical person earns.
Standard deviation
The standard deviation measures spread: how far values typically sit from the mean. A small standard deviation means the values cluster tightly; a large one means they are spread out. It is the square root of the variance, which is the average of the squared differences from the mean.
There are two versions. The population standard deviation divides by N, the number of values, and is used when the list is the whole group. The sample standard deviation divides by N − 1, and is used when the list is a sample drawn from a larger group — the −1 corrects for the fact that a sample underestimates the spread of the whole group. On a large list the difference is tiny; on a small list it matters.
Worked example
Take the classic example list 2, 4, 4, 4, 5, 5, 7, 9:
- Sum: 2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40
- Mean: 40 ÷ 8 = 5
- Median: the middle two values are 4 and 5, so (4 + 5) ÷ 2 = 4.5
- Mode: 4 appears three times, more than any other value, so 4
- Population variance: ((2−5)² + 3×(4−5)² + 2×(5−5)² + (7−5)² + (9−5)²) ÷ 8 = 32 ÷ 8 = 4, so the population SD is 2.00
- Sample variance: 32 ÷ 7 ≈ 4.571, so the sample SD is 2.14
- Minimum 2, maximum 9
The mean (5) and the median (4.5) are close, which tells you the list is roughly symmetric, and the standard deviation of 2 tells you a typical value sits about 2 away from the mean.
When to use which
Use the mean for measurements that are roughly symmetric with no extreme values — test scores, heights, temperatures. Use the median when a few very large or small values would drag the average away from the typical value — house prices, incomes, company sizes. Use the mode for the most common category or value — the most common shoe size, the most frequent test score. Use the standard deviation whenever you need to say how consistent something is: a manufacturing process with a small SD is precise, a set of exam scores with a large SD is uneven.
Using this calculator
Enter your values separated by commas, spaces or new lines — at least two values — then press Calculate. The result shows the mean immediately, with the median, mode, both standard deviations, sum, count, minimum and maximum underneath. The defaults are the classic example list 2, 4, 4, 4, 5, 5, 7, 9, so the page already shows a result when it loads.
Frequently asked questions
Population vs sample standard deviation — which one?
Use the population figure when your list is the whole group; use the sample figure when it is a sample drawn from a larger group. They differ only in the denominator: N for population, N-1 for sample. On 2, 4, 4, 4, 5, 5, 7, 9 the population SD is 2.00 and the sample SD is 2.14.
When is the median better than the mean?
When a few very large or small values would drag the average away from the typical value — house prices and incomes are the classic cases. The median is the middle value, so outliers cannot move it.
What if there is no mode?
If every value appears once, there is no most-frequent value. The calculator returns the smallest value in that case; with a tie it returns the smallest of the tied values.