Standard Deviation Calculator
Paste a list of numbers into this standard deviation calculator to get the mean, population and sample standard deviation, variance and sum, with every step of the working shown.
No valid numbers found. Enter at least one number, for example 2, 4, 4, 4, 5, 5, 7, 9.
Results
- Count (n)
- -
- Sum
- -
- Mean
- -
- Population standard deviation (σ)
- -
- Population variance (σ²)
- -
- Sample standard deviation (s)
- -
- Sample variance (s²)
- -
Calculation steps
| # | Value (x) | x − mean | (x − mean)² |
|---|---|---|---|
| Total | Mean: |
Only the first 50 rows are shown. All of your numbers are used in the results above.
How to use the standard deviation calculator
- Type or paste your data into the box. Separate numbers with commas, spaces, semicolons or line breaks, so you can paste a column straight from a spreadsheet.
- Read the results as you type: count, sum, mean, and both the population and sample versions of the standard deviation and variance.
- Open the step table below the results to see each value, its distance from the mean, and that distance squared. The total of the last column is what the formulas divide.
- Pick the right version for your problem (see below), then copy the summary if you need it elsewhere.
Standard deviation formulas
Standard deviation measures how far values typically sit from their mean. A small value means the numbers are bunched together, and a large value means they are spread out.
Mean: μ = ∑x ÷ n
Population: σ = √( ∑(x − μ)² ÷ n )
Sample: s = √( ∑(x − mean)² ÷ (n − 1) )
Variance is the same calculation without the square root, so the standard deviation is the square root of the variance. The sample version divides by n − 1 instead of n, which corrects for the fact that a sample tends to understate the spread of the larger group it came from. It needs at least two values, so for a single number the calculator shows N/A for the sample results.
Worked example 1: eight values
Take the numbers 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40 and n is 8, so the mean is 5. The distances from the mean are −3, −1, −1, −1, 0, 0, 2 and 4. Squared, they are 9, 1, 1, 1, 0, 0, 4 and 16, which total 32. For the population, the variance is 32 ÷ 8 = 4 and the standard deviation is 2. For a sample, the variance is 32 ÷ 7 ≈ 4.5714 and the standard deviation is ≈ 2.1381.
Worked example 2: test scores
Suppose eight quiz scores are 10, 12, 23, 23, 16, 23, 21 and 16. The sum is 144, so the mean is 18. The squared distances total 192. The population variance is 192 ÷ 8 = 24, giving a standard deviation of ≈ 4.899. The sample variance is 192 ÷ 7 ≈ 27.4286, giving a sample standard deviation of ≈ 5.2372.
Population or sample: which one do you need?
- Use population when your list contains every member of the group you are describing, such as the final scores of all students in one small class.
- Use sample when your list is a subset used to estimate a bigger group, such as a survey of 40 people from a city.
- Spreadsheet functions follow the same split: STDEV.P is the population version and STDEV.S is the sample version.
Notes and limits
Commas are read as separators, so write 1500 rather than 1,500. Entries that are not numbers are ignored and listed in a warning so you can fix a typo. The step table shows the first 50 rows to keep the page readable, while the results always use every number you entered. Results are shown to up to six decimal places. Standard deviation describes spread only. It does not tell you whether the data is normally distributed, and a few extreme values can inflate it, so look at your data as well as the summary.
Frequently asked questions
What is the difference between population and sample standard deviation?
Population standard deviation divides the sum of squared deviations by n and is used when your numbers are the whole group you care about. Sample standard deviation divides by n minus 1 and is used when your numbers are a sample drawn from a larger group. The sample version is always a little larger.
Which one should I use for a class or homework problem?
If the problem says the data is a sample, or the numbers come from a survey or experiment meant to represent something larger, use the sample value. If the data is every member of the group, such as all scores in one small class, use the population value. When in doubt, check the wording in your textbook or ask your instructor.
Why is the sample standard deviation not shown for one number?
The sample formula divides by n minus 1, which is zero when you have a single value, so it is undefined. The calculator shows N/A in that case. The population standard deviation of one number is 0.
How do I enter my numbers?
Type or paste them separated by commas, spaces, semicolons or line breaks. Decimals and negative numbers work. Because commas are treated as separators, type 1500 and not 1,500. Anything that is not a number is ignored and listed in a warning.
Is my data sent anywhere?
No. The calculation runs in your browser, and nothing you paste is uploaded or stored by this site.