Standard Deviation Calculator

Enter your numbers, one per line, to get the variance and standard deviation. Both the population (divide by n) and the sample (divide by n − 1) versions are shown.

Put each number on its own line (recommended), or separate them with spaces or semicolons. A comma works as a separator only when a space follows it (2, 4, 5). A comma with no space, such as 1,000 or 2,4,5, is not accepted because it could mean a thousands separator, two numbers or a decimal comma. Write 1000 for one thousand, and use a period for decimals (1.5).
Basic values
Count (n)—
Mean—
Sum of squared deviations (the squared differences from the mean, added up)—

Population (divide by n)

Population variance—
Population standard deviation (square root of the population variance)—

Sample (divide by n − 1)

Sample variance—
Sample standard deviation (square root of the sample variance)—
The values copied are the displayed values (7 significant digits, no commas). A standard deviation is a square root, approximated to 40 decimal places; when the square root is exact (a perfect square), it is labeled "exact value".

How variance and standard deviation are calculated

Variance and standard deviation both describe how spread out the data is. The standard deviation is the square root of the variance, so it has the same unit as the data.

Population or sample?

If you are not sure, your data is usually a sample, so the sample version (n − 1) is the usual choice. With a lot of data, the two values are close.

The names in Excel

Shown here Divided by Excel function
Population variance n VAR.P
Sample variance n − 1 VAR.S
Population standard deviation n STDEV.P
Sample standard deviation n − 1 STDEV.S

Some textbooks use the words "sample variance" for the version that divides by n, so check the definition your course or software uses. This calculator labels each result with its divisor (n or n − 1) to avoid confusion.

Examples

Notes

Frequently asked questions

Should I use the population or the sample standard deviation?

Use the population version when your data is the entire group you are describing, and the sample version when your data is only part of a larger group. If you are unsure, the sample version (n − 1) is the usual choice.

When is the standard deviation 0?

When all the values are the same. There is no spread, so the standard deviation is 0.

Why is the standard deviation shown as a "rounded value"?

The square root of the variance often does not end as a decimal. It is approximated to 40 decimal places, which is far more precise than the 7 significant digits displayed.

Why is 1,000 not accepted?

A comma with no space after it could be a thousands separator (1,000 = 1000) or a separator between two numbers (1 and 000), and some countries also use it as a decimal comma. Instead of guessing, the calculator asks you to write 1000, or to put each number on its own line.