Standard Deviation Calculator
Enter a list of numbers to calculate standard deviation calculator with the existing statistics engine.
Calculator
Results
Enter your numbers, then press Calculate.
Your mean, median and mode appear here, together with the working, the frequency table and the advanced statistics.
Frequency table
Advanced statistics
Step by step
Saved calculations
History is stored only in this browser. Nothing is sent to our server, and Clear history removes it.
Results are for educational purposes. Please verify important calculations. Read the disclaimer, the privacy policy and the guide to how to use the calculator.
Learn about standard deviation and variance
What does this calculator measure?
Standard deviation measures how far values usually lie from the mean. Variance is the average squared distance from the mean.
How is it calculated?
For population data, variance is the sum of squared differences divided by N. Standard deviation is the square root of variance. For a sample, the denominator is n minus one.
Can you see a worked example?
For 2, 4, 6, the mean is 4. The squared differences are 4, 0 and 4. Population variance is 8/3, about 2.67, and population standard deviation is about 1.63.
How do you use this calculator?
Enter your numbers separated by spaces or commas. Check the selected result at the top, press Calculate, and read the working. You can change your numbers and calculate again. Other statistics are optional, so you can focus on the result you need.
When is this useful?
This tool is useful for school exercises, practice questions, checking homework and understanding patterns in a small data set. Start with a few values that you can verify by hand. When you use a large data set, check for typing errors before interpreting the answer.
What mistakes should you avoid?
Check negative signs, repeated numbers, decimal points and the number of observations. Do not mix sample and population formulas. Different quartile and percentile conventions can give different answers. Keep your original data and explain the method you used.
How should you explain your result?
Write down what the numbers represent, the units if any, and the statistic you selected. Explain what the result says about the data rather than simply copying a number. For comparisons, make sure both data sets were measured in the same way.
What should you do before sharing a result?
Read the result in the context of your question. A statistic is a summary, not a complete description of every observation. Include the data source and sample size when they are known. If you are making a decision, check whether the data is representative and whether a different summary would be more useful.
How can you check the answer?
Try a short example and calculate the result on paper. Look at the step-by-step working and compare it with your own steps. If your answer differs, check the input and the formula. Read the guide for more background before changing the numbers.
Frequently asked questions
Can I enter negative numbers?
Yes. Enter negative values with a minus sign.
Can I use decimal numbers?
Yes. Use a decimal point for each decimal value.
Do repeated values count?
Yes. Repeated values remain part of your data.
Does the tool change my original numbers?
No. You can edit the input and calculate again.
Can methods differ between tools?
Yes. Check the stated statistical method when comparing results.
Continue learning with the calculation methods guide, statistics practice questions and main calculator.
What is the difference between population and sample standard deviation?
The calculator shows both. Population standard deviation divides the sum of the squared differences by N, and sample standard deviation divides it by n − 1. Use the population value when your numbers are the whole group, and the sample value when they are a sample taken from a larger group.
Population: σ = √( Σ(x − μ)² ÷ N )
Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
Here x is a value, μ and x̄ are the mean, N and n are the number of values, and Σ means add up.
Worked example: 2, 4, 4, 4, 5, 5, 7, 9
The sum is 40 and n is 8, so the mean is 40 ÷ 8 = 5. Subtract the mean from each value, square the results and add them up. The squared differences total 32.
| Value x | x − mean | (x − mean)² |
|---|---|---|
| 2 | −3 | 9 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| Total | 32 |
Population: variance = 32 ÷ 8 = 4, so σ = √4 = 2. Sample: variance = 32 ÷ 7 ≈ 4.5714, so s ≈ 2.1381. The sample value is a little larger because it divides by 7 instead of 8.
What happens if I enter only one number?
The population standard deviation is 0, because a single value does not vary. The sample standard deviation cannot be found, because n − 1 would be 0. The calculator shows a note that the sample standard deviation needs at least two values, instead of a number.
The squared differences also give you the variance. To see how far values sit from the middle, try the outlier calculator, or use the mean, median, mode and range calculator for the centre of the data.
Last updated:
Other calculators
How are these results calculated?
The calculator uses the median-of-halves method for quartiles. For an odd number of values, the middle value is included in both halves. Percentiles use linear interpolation with position (p ÷ 100) × (n − 1). Other tools may use different rules.
Method and references
For an independent explanation of statistical methods, see the NIST/SEMATECH e-Handbook of Statistical Methods. This is a reference for general methods, not a claim of endorsement or external review. Check the calculator’s displayed steps for the exact operation used.