About the Standard Deviation Calculator
Paste or type your numbers and the calculator returns both the population standard deviation (σ) and the sample standard deviation (s), together with the variance, mean, count and sum. The dropdown picks which one is highlighted in the headline.
Use the population version when your list is every value in the group you care about, and the sample version when the list is a subset used to estimate a larger group. The sample version divides by n − 1 (Bessel’s correction) because a sample’s own mean sits closer to its values than the true mean would, which would otherwise understate the spread.
How to Use the Standard Deviation Calculator
- Enter your numbers separated by commas, spaces or new lines.
- Choose Population or Sample.
- Read the standard deviation, variance and the step-by-step working.
Formula and Method
Population standard deviation
σ = √( Σ(xᵢ − μ)² ÷ N )
Use when the data is the entire population.
Sample standard deviation
s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )
Use when the data is a sample from a larger population.
Worked Example
Eight test scores
Input: 2, 4, 4, 4, 5, 5, 7, 9 (population)
- Mean = 40 ÷ 8 = 5
- Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16 → sum = 32
- Variance = 32 ÷ 8 = 4
- σ = √4 = 2
Result: σ = 2. Treated as a sample, s = √(32 ÷ 7) ≈ 2.138.
Frequently Asked Questions
When should I use sample instead of population standard deviation?
Use the sample formula (n − 1) whenever your numbers are a subset of a bigger group, which is the usual case in surveys and experiments. Use the population formula only when you have every value.
What is the difference between variance and standard deviation?
Variance is the average squared deviation from the mean. Standard deviation is its square root, which puts the spread back into the original units of the data.
Can standard deviation be negative or zero?
It is never negative. It is zero only when every value is identical.
What does a high standard deviation mean?
The values are widely spread around the mean. A low standard deviation means they cluster tightly. Compare it with the mean to judge whether the spread is large for your data.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.