Statistics Calculator
Paste or type a list of numbers separated by commas, and get every common summary statistic at once.
What this calculator does
Paste or type a list of numbers and the calculator returns the count, sum, mean, median, mode, range, sample variance and sample standard deviation in one pass. With the default data 4, 8, 6, 5, 3, 7 it reports a mean of 5.5, a median of 5.5, no mode, a range of 5 and a sample standard deviation of 1.871.
What each statistic tells you
Mean is the arithmetic average — the center of the data. Median is the middle value once the numbers are sorted, and is far more robust to outliers. Mode is the most frequent value, useful for categorical or repeated data. Range is the distance from smallest to largest, the crudest but quickest measure of spread. Each answers a different question, which is why reports quote several at once.
Variance and standard deviation
Variance measures how far values scatter from the mean on average. Standard deviation is its square root, expressed in the same units as the data, so it is the number most people actually use. This tool reports the sample versions, which divide by n−1 — the correct choice when your numbers are a sample from a larger population.
Worked example at the defaults
- Sort the data: 3, 4, 5, 6, 7, 8
- Sum: 4 + 8 + 6 + 5 + 3 + 7 = 33, so the mean is 33 ÷ 6 = 5.5
- Median: average of the middle pair (5 and 6) = 5.5
- Mode: none, because no value repeats
- Range: 8 − 3 = 5
- Deviations from 5.5: −1.5, 2.5, 0.5, −0.5, −2.5, 1.5, whose squares sum to 17.5
- Sample variance: 17.5 ÷ (6 − 1) = 3.5, so the standard deviation is √3.5 ≈ 1.871
The result table reproduces every one of those numbers: count 6, sum 33, mean 5.5, median 5.5, range 5, variance 3.5 and standard deviation 1.871. Notice that the mean and median coincide here — a sign the data is roughly symmetric, which a quick glance at the sorted list confirms.
| Statistic | Value | How it is computed |
|---|---|---|
| Count | 6 | number of values entered |
| Sum | 33 | add every value |
| Mean | 5.5 | 33 ÷ 6 |
| Median | 5.5 | average of 5 and 6 in the sorted list |
| Mode | none | no value appears twice |
| Range | 5 | 8 − 3 |
| Sample variance | 3.5 | 17.5 ÷ 5 |
| Sample standard deviation | 1.871 | √3.5 |
How outliers move each statistic
Replace the 3 with a 30 and the same calculator tells a very different story: the sum jumps from 33 to 60, the mean from 5.5 to 10, and the standard deviation from 1.871 to about 9.899. The median barely budges, moving from 5.5 to 6.5, because it only cares about the middle positions. That contrast is the classic argument for reporting the median with skewed data — one typo or one extreme observation can more than double the mean while leaving the median almost intact.
Sample versus population formulas
The variance shown here divides by n − 1 = 5. The population version would divide by n = 6, giving 17.5 ÷ 6 ≈ 2.917 and a standard deviation of about 1.708 instead of 1.871. The sample version is slightly larger because it corrects for the fact that a sample tends to underestimate the true spread. Use the sample version whenever your data is a subset of something bigger — for example, quiz scores from one class used to describe all classes.
Common mistakes
- Using the population formula on sample data, which underestimates the spread by a factor of about √(n/(n−1))
- Comparing standard deviations across datasets with different units or scales
- Treating the mode as the most typical value — it is only the most frequent one, and with continuous data it often does not exist
- Forgetting to sort before finding the median; the unsorted default list 4, 8, 6, 5, 3, 7 has a false middle of 5
- Entering stray text or double commas, which the parser silently drops, changing the count without warning
Reading the spread in practice
A standard deviation of 1.871 means typical values sit about 1.9 units from the mean of 5.5, so the band 5.5 ± 1.871 runs from about 3.63 to 7.37 and captures the values 4, 5, 6 and 7 — four of the six observations. Spread is also the basis for fair comparisons: two classes can both average 5.5 on a quiz, but one with a standard deviation of 1.87 has students scattered from 3 to 8 while one with 0.8 clusters tightly, and the difference in teaching conclusions between those two pictures is enormous.
Choosing which statistics to report
A compact default for most reports is the count, the mean, the median and the standard deviation. Add the median when the data may be skewed, the mode when categories matter, and the range when you need a quick bound. For the default dataset, quoting “n = 6, mean 5.5, median 5.5, SD 1.87” already answers almost any question a reader will ask, and each figure traces back to a line in the table above.
A quick sanity check ties the numbers together: the standard deviation should never exceed the range (1.871 ≤ 5), and at least half the data always falls within one standard deviation of the mean — here the values 4, 5, 6 and 7 all sit within 1.871 of 5.5. If your hand calculation violates either rule, recheck the sum of squared deviations.
Frequently asked questions
What is the difference between sample and population standard deviation?
The sample version divides by n−1 and is used when your data is a sample of a larger group; the population version divides by n and is used when you have the entire population. This tool reports the sample version.
How do I enter my data?
Type or paste numbers separated by commas, spaces, or new lines. Non-numeric text is ignored automatically.
What if my list has no repeated values?
Then there is no mode, and the breakdown reports “none” — exactly what happens with the default data 4, 8, 6, 5, 3, 7.
Why is the median more robust than the mean?
A single extreme value can pull the mean far off center, but the median depends only on the middle position, so it barely moves. Replacing the 3 with 30 shifts the mean from 5.5 to 10 while the median moves just from 5.5 to 6.5.
What are the default statistics?
For 4, 8, 6, 5, 3, 7: count 6, sum 33, mean 5.5, median 5.5, no mode, range 5, sample variance 3.5 and sample standard deviation 1.871.
Why divide by n−1 instead of n?
Dividing by n−1 corrects for the fact that a sample tends to underestimate the true spread, because the sample mean sits closer to the data than the true population mean does. The correction is called Bessel’s correction.
How many numbers can I paste in?
Thousands. The computation is a single pass, so even a few thousand values return instantly, and the parser accepts commas, spaces and line breaks as separators.
When should I report the median instead of the mean?
Whenever the data is skewed or contains outliers — incomes, house prices and response times are the classic cases, where a handful of extreme values would misrepresent the typical member.
Method and sources
- Sample variance = sum((x - mean)²)/(n-1); sample standard deviation = sqrt(variance).