STATISTICS CALCULATOR

Standard Deviation Calculator

Calculate the mean, variance, and standard deviation of a dataset using either the population or sample method.

Standard deviation formula

Population standard deviation is σ = √[Σ(x − μ)² ÷ N]. Sample standard deviation is s = √[Σ(x − x̄)² ÷ (n − 1)]. The correct choice depends on whether your values are the whole population or a sample.

Worked example

For 10, 12, 15, 18, 20, the mean is 15. The population variance is 14.8, so the population standard deviation is approximately 3.847. A sample calculation uses n − 1 and produces a larger estimate.

What standard deviation means

Standard deviation describes the typical scale of variation around the mean, in the same units as the original data. A larger standard deviation indicates more spread under the same measurement context.

Population vs sample standard deviation

Population SD describes the complete set. Sample SD is commonly used to estimate population variability from a sample and uses n − 1 in the denominator.

FAQ

Can standard deviation be negative? No. Standard deviation is the non-negative square root of variance.

Does standard deviation use the same units as the data? Yes.

Why are population and sample results different? They use different denominators because they answer different statistical questions.

Related calculators

Variance Calculator · Standard Error · Z-Score Calculator · Confidence Interval

Understanding standard deviation

Standard deviation describes the typical spread of observations around their mean. A smaller value indicates that observations are more tightly grouped, while a larger value indicates greater dispersion.

Population vs sample standard deviation

Use population standard deviation when the data represent the entire population of interest. Sample standard deviation uses a degrees-of-freedom adjustment when the observations are treated as a sample used to estimate a population parameter.

Example

Two datasets can have the same mean but different standard deviations. The dataset with values closer to its mean has the smaller spread.

Standard-deviation FAQ

Can standard deviation be negative?

No. Standard deviation is zero or positive because it is derived from squared deviations from the mean.

Formula and calculation method

The calculator first finds the mean, then sums each observation's squared distance from that mean. Population variance divides that sum by N; sample variance commonly divides by n − 1. Standard deviation is the square root of the selected variance, returning the spread to the original data units.

Practical example

For values 2, 4 and 6, the mean is 4 and the squared deviations sum to 8. Population variance is 8 ÷ 3 ≈ 2.6667 and population standard deviation is approximately 1.633. Sample variance is 8 ÷ 2 = 4 and sample standard deviation is 2.

Frequently asked questions

When should I choose sample standard deviation?

Use it when your observations are a sample used to estimate variability in a wider population; it uses the n − 1 denominator.

Can standard deviation be negative?

No. It is zero or positive because it is the square root of a non-negative variance.

Why do the two methods give different results?

They divide squared deviations by different denominators. The sample method applies a degrees-of-freedom adjustment.