Statistics Calculator

Paste your numbers and get the mean, median, mode, range, standard deviation and variance in one go, with the sorted data shown underneath.

Separate numbers with commas, spaces or new lines. Negative numbers and decimals are fine.

Quick answer. A statistics calculator summarizes a list of numbers. For 10, 12, 23, 23, 16, 23, 21 and 16 the mean is 18, the median is 18.5, the mode is 23, the range is 13, and the sample standard deviation is 5.2372.

What you get from one list of numbers

Paste in anything you have measured: test scores, daily sales, delivery times, prices. The calculator gives the usual summary in one pass. Mean, median and mode say where the middle of the data is. Largest, smallest and range say how far it stretches. Standard deviation and variance say how tightly the values cluster around the mean. The sorted list at the bottom makes it easy to spot a typo or an outlier you did not expect.

A worked example you can check by hand

The starting numbers are 10, 12, 23, 23, 16, 23, 21, 16. There are 8 of them and they add up to 144, so the mean is 144 ÷ 8 = 18. Sorted, they read 10, 12, 16, 16, 21, 23, 23, 23. With an even count, the median is the average of the two middle values: (16 + 21) ÷ 2 = 18.5. The value 23 appears three times, so it is the mode. The range is 23 − 10 = 13. The geometric mean is the eighth root of the product of the numbers, 17.252538362425. If you reach the same results on paper, you know the tool is doing what you expect.

The sorted default data with its mean (18) and median (18.5)Eight values from 10 to 23. The mean is 18, the median is 18.5 and the mode is 23, which appears three times.The sorted default data with its mean (18) and median (18.5)10101212161616162121232323232323
Sorting the data makes the median and mode easy to see.
StatisticResult for the default data
Count8
Sum144
Mean18
Median18.5
Mode23 (3 times)
Largest / smallest23 / 10
Range13
Geometric mean17.252538362425
Population standard deviation (σ)4.8989794855664
Population variance (σ²)24
Sample standard deviation (s)5.2372293656638
Sample variance (s²)27.428571428571

Two standard deviations: which one do you want?

You will see a population figure and a sample figure side by side, and they differ by one small step. If your list is the whole group, such as every student in one class, use the population standard deviation (σ = 4.899 here), which divides by n. If your list is only a sample taken to learn about a bigger group, such as 30 customers out of thousands, use the sample standard deviation (s = 5.2372), which divides by n − 1. When in doubt about real survey or lab data, it is almost always the sample version. The Standard Deviation Calculator goes further, with a margin-of-error table for the mean.

Mean, median or mode: which one tells the truth?

They can disagree, and when they do the gap is a clue. If a few very large values pull the mean far above the median, the data is skewed, which is common for incomes, house prices and waiting times. In that case the median is usually the fairer picture of a typical value. The mode is the right answer when you care about the most common category or size, such as the shoe size to stock most of.

Skewed data: five salaries, one very large (mean vs median)One $250,000 salary pulls the mean to $85,000 while the median stays at $45,000, which is the better picture of a typical salary.Skewed data: five salaries, one very large (mean vs median)Median$45,000Mean$85,000
When data is skewed, the mean can mislead.

When the geometric mean is the right average

The geometric mean multiplies the values and takes the nth root, instead of adding and dividing. Use it for numbers that grow by percentages. An investment that gains 10% one year and 20% the next has growth factors 1.10 and 1.20; their geometric mean is the square root of 1.32, which is 1.1489, so the true average gain is about 14.9% a year, not the 15% a simple average suggests. The geometric mean needs positive values: if the product is negative the calculator says it is undefined, and if any value is zero it is zero. For real investment accounts with deposits and withdrawals, the Average Return Calculator handles the timing.

Average yearly growth factor for +50% then -40%The simple average suggests +5% a year, but $100 became $150 and then $90. The geometric mean, 0.9487, shows the true average change of -5.1% a year.Average yearly growth factor for +50% then -40%Simple average1.0500Geometric mean0.9487
Averages of growth must use the geometric mean.

Small samples and outliers

Statistics from a handful of values can mislead. With fewer than about 10 numbers, treat the standard deviation and the mode as rough guides, and check the sorted list for a single odd value that is doing most of the damage. If a result looks surprising, remove the suspect value and see how much the mean and standard deviation change.

Entering your data

  • Separate numbers with commas, spaces, semicolons or new lines.
  • There is no fixed limit, so you can paste hundreds of values.
  • Letters and symbols are rejected with a message.
  • A single number has a sample standard deviation of “needs at least 2 values”.

What to do with these numbers next

To see how unusual one value is compared with the rest, turn it into a z-score with the Z-score Calculator. To get a range that likely contains the true average of the whole group, feed the mean, sample standard deviation and count into the Confidence Interval Calculator. If you are planning a survey, the Sample Size Calculator tells you how many people to ask, and the Probability Calculator handles the odds of something happening.

Common mistakes

  • Using the population standard deviation for a sample.
  • Reporting the mean of skewed data without the median.
  • Averaging growth rates with the ordinary mean.
  • Forgetting that a mode may not exist, or may have several values.

How to read your result

The large number is the mean. Below it are the count, sum, median, mode, largest, smallest, range, geometric mean and the four spread figures, then the sorted data. Compare the mean with the median first: if they are close, the data is fairly balanced.

These statistics describe the numbers you enter. They do not test whether differences are statistically significant.

What to do next

Common questions

How do I find the mean, median and mode of a list of numbers?

Paste the numbers into the box and press Calculate. The mean is the sum divided by the count, the median is the middle value of the sorted list, and the mode is the value that appears most often.

What is the difference between population and sample standard deviation?

Population standard deviation divides by n and is used when your data is the whole group. Sample standard deviation divides by n minus 1 and is used when your data is a sample from a larger group. The sample value is slightly larger.

What if there are two modes?

Then the data is bimodal and the calculator lists both values with how many times each appeared. If every value appears only once, there is no mode.

Why does the geometric mean say undefined?

The geometric mean is the nth root of the product of your numbers. If the product is negative, which happens with an odd number of negative values, there is no sensible answer. If any value is zero, the geometric mean is zero.

How many numbers can I enter?

There is no fixed limit, so you can paste hundreds of values. Separate them with commas, spaces or new lines.

When is the median better than the mean?

When a few very large or very small values pull the mean away from the typical value, such as incomes or house prices. The median is not affected by extreme values.

Sources: NIST/SEMATECH e-Handbook: Measures of Location; NIST/SEMATECH e-Handbook: Measures of Scale

More Math Calculators

Pick another tool to jump straight to it.