Standard deviation and variance calculator

The standard deviation tells you if numbers sit close to the average or are spread out. Paste your numbers and pick sample or population.

Standard deviation and variance calculator

Separated by “;” or one per line.
Your data is

Result

2Standard deviation

Variance
4
Average
5
How many values
8
Smallest
2
Largest
9
Standard deviation if it were a sample (÷ (n − 1))
2.13809

Standard deviation and variance calculator

Inputs

Your numbers
2; 4; 4; 4; 5; 5; 7; 9
Your data is
The whole population (n)

How it is calculated

Average m = sum ÷ n.

Result

Standard deviation

2
Variance
4
Average
5
How many values
8

How it is calculated

  1. Average m = sum ÷ n.
  2. Variance = Σ(x − m)² ÷ n for a population, ÷ (n − 1) for a sample.
  3. Standard deviation = square root of the variance.
  4. The sum is built step by step (Welford’s method) to stay accurate even with large numbers.

Example

2, 4, 4, 4, 5, 5, 7, 9: average 5, population variance 4, standard deviation 2.

Good to know

  • Choose “sample” if your numbers are only part of a bigger group (the most common case).
  • A sample needs at least 2 values.

When to use it

  • See whether marks, times or measurements are grouped around the average or widely spread.
  • Compute the standard deviation of a sample (n − 1) for a lab report or a study.
  • To also get the median, quartiles and range at once, use the Descriptive statistics calculator.

Frequently asked questions

Should I choose sample or population?

Sample if your values are only part of a larger group, which is the usual case. Population only if you have every value of the group you are studying.

Why does my spreadsheet give a different figure?

Spreadsheets have two functions: STDEV.S for a sample and STDEV.P for a population. Check that you are comparing the same choice.

What is the difference between variance and standard deviation?

The standard deviation is the square root of the variance. It is in the same unit as the data, which makes it easier to read.

What does a standard deviation of 0 mean?

All the values are identical. The larger the standard deviation compared with the average, the more scattered the values are.

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.