Statistics Calculator

Enter a list of numbers and get the mean, median, mode, range, variance, and standard deviation instantly. The CalcNova statistics calculator shows both population and sample values, so you always know which one you are looking at.

Statistics calculator

How the statistics calculator works

Type your numbers into the box, separated by commas, spaces, or line breaks. The calculator reads every value as you type and updates all of the results immediately. There is nothing to submit and no page to reload.

It first sorts your numbers from smallest to largest. From that sorted list it finds the middle value (the median), the smallest and largest values (for the range), and counts how often each value appears (for the mode). It then adds all the values to get the sum, divides by how many there are to get the mean, and measures how far each value sits from the mean to get the variance and standard deviation.

If you type something that is not a number, the calculator tells you which entry is invalid instead of guessing. An empty box simply asks you to enter at least one number.

Formulas

For a list of n numbers x1, x2, …, xn:

  • Mean: (x1 + x2 + … + xn) / n
  • Median: the middle value of the sorted list; if n is even, the average of the two middle values
  • Mode: the value that appears most often; there can be more than one, or none
  • Range: maximum – minimum
  • Population variance: average of the squared differences from the mean, dividing by n
  • Population standard deviation: the square root of the population variance
  • Sample variance: sum of the squared differences from the mean, dividing by n – 1
  • Sample standard deviation: the square root of the sample variance

Use the population values when your numbers are the entire group you care about. Use the sample values when your numbers are a sample drawn from a larger group; dividing by n – 1 corrects for the fact that a sample tends to underestimate the spread of the whole group.

Worked examples

Example 1: 1, 2, 3, 4. The sum is 10 and there are 4 numbers, so the mean is 10 / 4 = 2.5. The sorted list is already 1, 2, 3, 4; with an even count the median is the average of the two middle values, (2 + 3) / 2 = 2.5. Every value appears once, so there is no mode. The range is 4 – 1 = 3. The squared differences from the mean are 2.25, 0.25, 0.25, 2.25, which sum to 5. The population variance is 5 / 4 = 1.25 and the population standard deviation is about 1.1180. The sample variance is 5 / 3 = 1.6667 and the sample standard deviation is about 1.2910.

Example 2: 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40 and the mean is 40 / 8 = 5. The sorted list is 2, 4, 4, 4, 5, 5, 7, 9, so the median is (4 + 5) / 2 = 4.5. The value 4 appears three times, more than any other, so the mode is 4. The range is 9 – 2 = 7. The squared differences from the mean sum to 32. The population variance is 32 / 8 = 4 and the population standard deviation is 2. The sample variance is 32 / 7 = 4.5714 and the sample standard deviation is about 2.1381.

Example 3: 10, 20, 30. The sum is 60 and the mean is 60 / 3 = 20. The median is the middle value, 20. No value repeats, so there is no mode. The range is 30 – 10 = 20. The squared differences are 100, 0, and 100, summing to 200. The population variance is 200 / 3 = 66.6667 and the population standard deviation is about 8.1650. The sample variance is 200 / 2 = 100 and the sample standard deviation is 10.

Common mistakes

  • Mixing up population and sample standard deviation. Many calculators show only one. If you are working with a sample and report the population value (or the reverse), your answer will be wrong. This calculator shows both, clearly labeled.
  • Assuming the mode always exists. If every value appears the same number of times, there is no mode. That is a valid result, not an error.
  • Forgetting to sort before finding the median. The median is the middle of the sorted list, not the middle of the order you typed the numbers in.
  • Using the range as a measure of typical spread. The range only looks at the two extreme values, so a single outlier can make it misleading. The standard deviation uses every value.
  • Typing commas inside numbers. Write 1500, not 1,500, because the comma is treated as a separator between two numbers.

Privacy and accuracy

This calculator runs entirely in your browser. The numbers you enter are never sent to a server, stored online, or shared with anyone. Results are computed with standard double-precision arithmetic and displayed rounded to 10 decimal places; tiny rounding differences in the last displayed digit are normal and do not affect the mathematics.

Frequently asked questions

Should I use the population or the sample standard deviation?

Use the population value when your numbers are the complete group you are describing, such as every test score in a class. Use the sample value when your numbers are a subset of a larger group, such as 50 voters surveyed out of a whole city. When in doubt, check what your textbook or assignment asks for.

What does it mean when there is no mode?

It means no value appears more often than the others. For example, in 1, 2, 3, 4 every value appears exactly once, so there is no mode. This is a normal outcome, not a mistake.

Can a data set have more than one mode?

Yes. If two or more values tie for the highest frequency, the calculator lists all of them. For example, 1, 1, 2, 2, 3 has two modes: 1 and 2.

Why is the sample variance larger than the population variance?

Because the sample variance divides by n – 1 instead of n. Dividing by a smaller number gives a larger result. This adjustment compensates for the tendency of a sample to underestimate the spread of the full population.

How many numbers can I enter?

There is no fixed limit; the calculator handles anything from a single number to hundreds of values. With one number, the range is 0 and the sample variance is undefined, which the calculator shows as a dash.

Do I need to sort my numbers first?

No. The calculator sorts a copy of your numbers internally to find the median, minimum, and maximum. Type them in any order.

Related tools

  • Online scientific calculator – the main CalcNova calculator with scientific, graphing, matrix, and fraction modes.
  • Equation Solver – solve linear and quadratic equations with the discriminant and roots shown.
  • Unit Converter – convert length, weight, temperature, area, volume, and speed.
  • 6 Month Calculator – find the date exactly six months from any day.
  • CalcNova FAQ – answers about CalcNova, privacy, accuracy, and the tools.