Standard Deviation Calculator

Calculate sample & population standard deviation, variance, and data metrics. For comprehensive dataset summaries, see our Statistics Calculator.

Common Statistical Scenarios:
Normal Bell Curve Model68-95-99.7% Rule
-3σ-2σ-1σMean (μ)+1σ+2σ+3σ
Sample Standard Deviation (s)n - 1 denominator
15.8114
Sample Variance (s²): 250
Population Standard Deviation (σ)N denominator
14.1421
Population Variance (σ²): 200.0000
Mean (x̄ / μ)30
Sum (∑x)150
Count (n)5
Standard Error (s / √n)7.071068
Range (Max - Min)40
Standard Deviation Formulas & Direct Answer

How do you calculate standard deviation?

Standard deviation measures data dispersion relative to the mean. Sample standard deviation (s) divides the sum of squared differences from the sample mean by (n - 1) using Bessel's correction to eliminate sampling bias. Population standard deviation (σ) divides by the full population count N.

Sample: s = √[ Σ(x - x̄)² / (n - 1) ] | Population: σ = √[ Σ(x - μ)² / N ]
s: Sample standard deviation (unbiased estimator)
σ: Population standard deviation (exact population spread)
x̄, μ: Sample mean (x̄) and population mean (μ)
n, N: Sample count (n) vs. population total size (N)
Σ(x - mean)²: Sum of squared differences from the average

📐 Step-by-Step Deviations Breakdown

Mathematical Proof

Each individual data point xi, its deviation from the mean (xi - x̄), and squared deviation (xi - x̄)².

Index (i)Value (xi)Deviation (xi - x̄)Squared Deviation (xi - x̄)²

📊 Empirical Rule (68-95-99.7%) & Z-Score Benchmark

Crawlable Statistical Reference

Theoretical coverage of normal distribution intervals and two-tailed critical Z-score thresholds.

Band RangeZ-Score (z)Population CoverageTail Probability (Outside)Practical Engineering Application
μ ± 1σ± 1.00068.27%31.73% (~1 in 3)Typical central spread for exam scores & weather
μ ± 1.96σ± 1.96095.00%5.00% (~1 in 20)Standard 95% scientific confidence intervals (α = 0.05)
μ ± 2σ± 2.00095.45%4.55% (~1 in 22)Traditional quality control warning boundaries
μ ± 2.576σ± 2.57699.00%1.00% (~1 in 100)99% confidence interval threshold in clinical trials
μ ± 3σ± 3.00099.73%0.27% (~1 in 370)Statistical process control (SPC) action limits & outlier cutoff
⚠️

Common Calculation Mistakes & Pitfalls to Avoid

Be aware of these frequent calculation traps, unit errors, and conceptual misunderstandings before relying on mathematical outputs.

1
Using population formula (N) instead of sample (n - 1)

Dividing by n on a sample systematically underestimates true population variance. Bessel's correction (n - 1) provides an unbiased estimator.

2
Vulnerability to extreme outliers

Because deviations are squared, a single extreme outlier disproportionately inflates standard deviation. For heavily skewed data, inspect the Interquartile Range (IQR).

3
Confusing Variance units with Standard Deviation units

Variance is expressed in squared units (e.g. dollars² or cm²). Taking the square root restores the intuitive original scale of measurement.

4
Confusing Standard Deviation (s) with Standard Error (SE)

Standard deviation measures dispersion between individual data points. Standard error measures the precision of the sample mean estimate itself.

Authoritative References & Standards

  • National Institute of Standards and Technology (NIST) (2023):NIST/SEMATECH e-Handbook of Statistical Methods: Measures of Dispersion
    Official Reference

    Definitive federal metrology standard defining sample variance, Bessel's correction, degrees of freedom, and standard deviation estimators.

  • International Organization for Standardization (ISO) (2020):ISO/IEC Guide 98-3: Guide to the Expression of Uncertainty in Measurement (GUM)
    Official Reference

    International guideline on evaluating standard deviation and standard error of the mean for scientific and laboratory repeatability.

Population, sample, and the n−1 you keep seeing

Standard deviation measures typical distance from the mean. Compute the mean, square each deviation from it, average those squares to get the variance, then take the square root to return to the original units. The squaring exists so that deviations above and below the mean cannot cancel to zero.

The division step differs depending on what your data is. Population standard deviation divides by n and applies when you have every member of the group.Sample standard deviation divides by n − 1 and applies when you have a subset and are estimating the wider population. The reduced denominator — Bessel's correction — exists because a sample's own mean sits closer to its own points than the true mean does, which biases the estimate downward. On small samples the difference is substantial; past a few hundred points it barely matters.

For roughly bell-shaped data the empirical rule gives a quick read: about 68% of values lie within one standard deviation of the mean, 95% within two, and 99.7% within three. Note that standard deviation is not robust — a single extreme outlier inflates it sharply, because the deviation is squared before averaging. For skewed data the interquartile range often describes spread more honestly.

Frequently Asked Questions

What is the difference between population and sample standard deviation?

Population standard deviation (σ) divides by N and applies when your data encompasses the entire group. Sample standard deviation (s) divides by (n - 1) using Bessel's correction. This compensates for the fact that sample points sit closer to their own sample mean than to the true population mean, preventing systematic underestimation of variability.

What is the standard error of the mean (SE)?

The standard error of the mean (SE = s / √n) measures how precisely your sample mean estimates the true population mean. While standard deviation describes the spread of individual observations, standard error describes the sampling uncertainty of the average. Multiplying sample size by 4 cuts standard error in half.

What is the Empirical Rule (68-95-99.7 Rule)?

For normally distributed bell-shaped data: approximately 68.27% of all observations fall within 1 standard deviation of the mean (μ ± 1σ), 95.45% fall within 2 standard deviations (μ ± 2σ), and 99.73% fall within 3 standard deviations (μ ± 3σ).

Why do we square deviations instead of taking absolute values?

Squaring turns negative deviations positive while penalizing larger outliers more heavily. Mathematically, squared deviations possess smooth continuous derivatives, enabling calculus-based optimization, linear regression least-squares fitting, and analysis of variance (ANOVA).

Is my data private and secure?

Yes, 100%. All statistical calculations run entirely in your local browser using client-side JavaScript. No datasets or calculations are ever transmitted to any external server.