Standard Deviation Calculator

Enter your data set to find the standard deviation and variance — both sample and population — along with the mean and count.

Reviewed by the WorldCalcs team · Methodology · Last reviewed: June 2026

Result

Count (N)
8
Mean
5
Sample variance
4.57143
Sample SD
2.13809
Population variance
4
Population SD
2

What is standard deviation?

Standard deviation measures how spread out a set of numbers is around its mean. A small standard deviation means the values cluster close to the average; a large one means they are spread far apart. It is the square root of the variance, which is the average of the squared distances from the mean. There are two versions: population standard deviation, used when your data is the whole group, and sample standard deviation, used when your data is a sample from a larger group. This calculator returns the mean, variance and both standard deviations.

How it's calculated

First find the mean. Then, for each value, subtract the mean and square the result. The population variance is the average of those squared differences (divide by n); the sample variance divides by n - 1 instead, which corrects for using a sample. The standard deviation is the square root of the variance. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the population variance is 4 and the population standard deviation is 2, while the sample variance is about 4.571429 and the sample standard deviation about 2.138090.

Example

For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 40 divided by 8 = 5. The squared differences from 5 are 9, 1, 1, 1, 0, 0, 4, 16, which add up to 32. Dividing by 8 gives a population variance of 4, so the population standard deviation is the square root of 4 = 2. Dividing by 7 (n - 1) gives a sample variance of about 4.571429 and a sample standard deviation of about 2.138090.

All calculations happen in your browser. Nothing is sent, stored, or tracked.

Results are estimates and may contain errors — for general information only, not professional advice. Always verify before relying on them. Disclaimer

How to use

Type your numbers separated by commas, spaces or new lines. Decimals and negatives are fine.

The calculator shows the mean, count, and both sample and population variance and standard deviation. Sample figures need at least two values.

Frequently asked questions

What is the difference between sample and population standard deviation?+

Population divides by n and is used when you have the whole group; sample divides by n - 1 and is used for a sample of a larger group.

Why does the sample version divide by n - 1?+

Dividing by n - 1 (Bessel's correction) removes bias when estimating a population's spread from a sample.

What is variance?+

The average of the squared distances from the mean; the standard deviation is its square root. See our Square Root Calculator.

What does a standard deviation of 0 mean?+

Every value is identical, so there is no spread.

Is a higher standard deviation good or bad?+

Neither by itself; it just means more spread, and whether that is desirable depends on the context.

How do I find the mean first?+

Add the values and divide by the count; this calculator does it automatically. See our Average Calculator.

What units does standard deviation use?+

The same units as the data, unlike variance, which is in squared units.

Can standard deviation be negative?+

No, it is the square root of a non-negative number, so it is always zero or positive.

Which version should I use?+

Use the population version when your numbers are the entire set, and the sample version when they are a sample.