How to use the standard deviation calculator
- Paste or type your numbers, separated by commas, spaces or new lines.
- Choose Sample if your data is a sample from a bigger group (the usual case), or Population if it's the whole group.
- Read the standard deviation and variance, and follow the step-by-step table.
Standard deviation formulas
Population: σ = √( Σ(x − μ)² ÷ N )
Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
Dividing by n − 1 for a sample (Bessel's correction) makes the variance an unbiased estimate of the population variance, because a sample tends to be slightly less spread out than the whole population.
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9: the mean is 40 ÷ 8 = 5. The squared differences are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. The population variance is 32 ÷ 8 = 4, so σ = 2. The sample variance is 32 ÷ 7 ≈ 4.571, so s ≈ 2.138.
Only need the mean, median or mode? Use the average calculator.
Frequently asked questions
Standard deviation measures how spread out numbers are around their mean. A small standard deviation means the values are close to the average; a large one means they're spread out. It's in the same units as the data, which makes it easy to interpret.
Use the population formula (divide by n) when your data includes every member of the group you care about, such as all the scores in one class. Use the sample formula (divide by n − 1) when your data is a sample used to estimate a larger group, which is the usual case in surveys and experiments. The calculator shows both.
Find the mean, subtract it from each value, square each difference, and add the squares. Divide that sum by n (population) or n − 1 (sample) to get the variance, then take the square root. For 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5, the squared differences add up to 32, the population variance is 32 ÷ 8 = 4, and the population standard deviation is 2.
Variance is the average squared distance from the mean, so it's in squared units. Standard deviation is the square root of the variance, which puts it back into the original units.
For data that follows a normal (bell-shaped) distribution, about 68% of values fall within 1 standard deviation of the mean, 95% within 2 and 99.7% within 3. It doesn't apply to strongly skewed data.