Standard deviation calculator

Calculate sample or population standard deviation and variance from a list of values.

Data model

Separate numbers with spaces, commas, or newlines. Commas separate values, not thousands. Up to 1,000 values, 20,000 characters; magnitude ≤ 10¹⁰⁰.

Sample: at least 2 values; divides by n − 1.

Assumptions & limits

Sample divides the sum of squared deviations by n − 1 and needs at least two values; Population divides by n and needs one. A single population value or constant data has zero spread. Uses ordinary, unweighted observations; no normal-distribution assumption or inference. Shifted centering and compensated summation reduce floating-point error; spreads whose variance underflows are rejected. Binary floating-point input cannot preserve differences below its precision.

YOUR ANSWER

Sample standard deviation

2.1381

Variance
4.5714
Mean
5
Count (n)
8
Divisor
7
Minimum
2
Maximum
9
How it’s calculatedCalculated on your device

Variance = Σ(x − mean)² / (n − 1). Standard deviation = √variance.

Displayed values may be rounded. Calculations keep the underlying precision.

Use 1–1,000 values (at least two for Sample), up to 20,000 characters and magnitude 10¹⁰⁰. Spaces, commas and newlines separate observations; commas are not thousands separators. Negative values, decimals and e notation are accepted. This is unweighted descriptive statistics, without a normality assumption or confidence interval. Floating-point precision limits apply; a nonzero spread whose variance underflows is rejected.

The formula, made simple

Measure how far observations spread around their mean. Choose Sample when using observations to estimate a larger population's variance, or Population when describing all values in the group of interest.

Population variance = Σ(x − mean)²/n. Sample variance = Σ(x − mean)²/(n − 1). Standard deviation is the square root of the selected variance. Mean = sum/count.

A 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 4 and standard deviation is 2. Sample variance is 32/7 ≈ 4.5714 and standard deviation ≈ 2.1381.

A few useful answers

Why does Sample divide by n − 1?

Estimating the population mean from the same data uses one degree of freedom. The n − 1 divisor corrects the bias of the sample variance estimator under ordinary independent sampling assumptions. The sample standard deviation itself is not an exactly unbiased estimator.

Can the standard deviation be zero?

Yes, when all observations are equal. A single population value has zero variance and standard deviation; a single sample observation cannot provide the n − 1 estimate.

Why are standard deviation and variance in different units?

Standard deviation has the same units as the observations. Variance uses squared units. Neither result is automatically a percentage.

Back to calculator ↑