Standard Deviation Calculator

Population or sample standard deviation, with variance and mean shown.

What does this calculator do?

Standard deviation measures how spread out a data set is around its mean — one of the most widely used measures of dispersion. This calculator supports both conventions: population standard deviation (divide by N) when your data is the whole group, and sample standard deviation (divide by n − 1) when it is a sample used to estimate a larger population.

Formula

Square each deviation from the mean, average them (÷N for population, ÷n−1 for sample), then take the square root:

σ = √( Σ(xᵢ − μ)² ÷ N )    s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )

How to use it

Paste your values and choose the data type. Use Population when you measured everyone (e.g. all students in one class); use Sample when your data represents a bigger group. Sample mode needs at least 2 values.

Worked example

For 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5 and the squared deviations sum to 32. Population variance is 32 ÷ 8 = 4, so σ = √4 = 2. As a sample: 32 ÷ 7 ≈ 4.5714, s ≈ 2.14.

Formula version1.0.0
Formulaσ = √( Σ(xᵢ − μ)² ÷ N ) s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )
Precision4 decimals

Frequently asked questions

When do I use population vs sample?

Population (÷N) when the data IS the entire group you care about. Sample (÷n−1) when the data is a subset used to estimate the group — the n−1 correction (Bessel’s) compensates for the sample mean underestimating spread.

How do outliers affect standard deviation?

Strongly — deviations are squared, so one extreme value can dominate the result. Check the Range calculator and consider whether outliers are errors before relying on σ.

What are the units of standard deviation?

The same units as your data (unlike variance, which is in squared units) — that is why σ is easier to interpret.

Sources

Related calculators

Last updated: 2026-07-30 · v1.0.0 · Report an error