How to use the Standard Deviation Calculator
- Paste or type your data values.
- Choose Population if the data covers every member of the group, or Sample if it is a subset used to estimate a larger group.
- Read the standard deviation, variance and mean. The steps show each squared deviation.
Formula
σ = √( Σ(xᵢ − μ)² ÷ N ) s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )
Find the mean, subtract it from each value, square the differences, add them up, divide by N (population) or n − 1 (sample), then take the square root. Dividing by n − 1 (Bessel's correction) compensates for a sample's tendency to underestimate spread.
Worked example: Population: 2, 4, 4, 4, 5, 5, 7, 9
- Mean = 40 ÷ 8 = 5
- Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16 → sum 32
- Variance = 32 ÷ 8 = 4
- σ = √4 = 2
σ = 2 (the sample standard deviation of the same data is ≈ 2.138).
Reading spread
Two classes can share an average score of 70 but feel very different. One with σ = 3 has nearly everyone between 64 and 76, while one with σ = 15 contains both struggling and top students. Spread is often as important as the average.
The coefficient of variation (standard deviation ÷ mean) lets you compare spread between data sets measured on different scales. Start with the Average Calculator for the basic summary.
Assumptions & limitations
- Sample standard deviation needs at least two values.
- The coefficient of variation is undefined when the mean is zero.
- Results are rounded to six decimal places.
Frequently asked questions
Should I use sample or population standard deviation?
Use population when you have every value you care about, such as the scores of all 25 students in your class. Use sample when your data stands in for a bigger group, such as 25 students surveyed out of a whole school.
What does standard deviation tell me?
Roughly how far a typical value sits from the mean. For bell-shaped data, about 68% of values fall within one standard deviation of the mean and 95% within two.
What is variance?
Variance is the square of the standard deviation. It is used heavily in statistics, but standard deviation is easier to interpret because it is in the same units as the data.