Skip to main content
🔢 Statistics

Standard Deviation Calculator

Measure how spread out your data is. Get the population and sample standard deviation, the variance and the mean from any list of numbers, with the steps shown.

Sample SD
Population SD
Variance
Mean
100% Free
🔢 Open All Math Calculators 📖 Read the Guide

Standard deviation — Quick answer

Standard deviation is the square root of the average squared distance from the mean — how tightly the data clusters.

population σ = √( Σ(x − μ)² / N )
sample s = √( Σ(x − x̄)² / (n − 1) )

Worked example: 2,4,4,4,5,5,7,9 → mean 5, population SD 2, sample SD 2.1381.

Population vs sample SD

Data setMeanPop. SDSample SD
2,4,4,4,5,5,7,9522.1381
10,12,14,16,18142.82843.1623
1,2,3,4,531.41421.5811

Used for: test scores, quality control, risk, research data.

🔢 Standard Deviation Calculator

Enter your numbers separated by commas, spaces or new lines.

Mean
Sample SD (s)
Population SD (σ)
Count

⚠️ Use sample SD (÷ n−1) when your data is a sample; use population SD (÷ N) only when it covers the whole population. Variance is the square of the SD, in squared units.

Standard deviation tells you how much a data set varies around its mean — the typical distance of a value from the average. It is the square root of the variance (the mean squared deviation). There are two versions: the population SD divides the sum of squared deviations by N, while the sample SD divides by n − 1 to correct the bias that arises when you only have a sample. A small SD means the data is consistent; a large SD means it is spread out.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: the standard variance & SD definitions (Bessel's correction).

The standard deviation equations

Mean
μ = Σx / N (population) · x̄ = Σx / n (sample)
Population SD
σ = √( Σ(x − μ)² / N )
Sample SD
s = √( Σ(x − x̄)² / (n − 1) )

Both start by finding the mean, then summing the squared deviations Σ(x − mean)². The only difference is the divisor: N for a population, n − 1 for a sample. Squaring the deviations stops positive and negative differences cancelling and weights large departures more heavily; the final square root returns the answer to the original units. Variance is the same calculation without that final square root, so variance = SD², expressed in squared units.

Worked example — eight values

Scenario: the data set 2, 4, 4, 4, 5, 5, 7, 9.

Mean & squares
μ = 40 / 8 = 5 · Σ(x − 5)² = 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32
SD
population √(32/8) = 2 · sample √(32/7) ≈ 2.1381

The mean is 5 and the sum of squared deviations is 32. Dividing by N = 8 gives a population variance of 4 and a population standard deviation of 2; dividing by n − 1 = 7 gives a sample variance of about 4.571 and a sample standard deviation of about 2.1381. The sample value is slightly larger — that is Bessel's correction at work, inflating the estimate to remove the bias of using a sample mean. For comparison, the tighter set 1, 2, 3, 4, 5 has a population SD of just 1.4142, and the wider 10, 12, 14, 16, 18 reaches 2.8284, exactly mirroring how scattered each set is.

Frequently Asked Questions

What is standard deviation?

The typical distance of values from the mean — √variance. Small = tight, large = scattered.

Population vs sample?

Population ÷ N; sample ÷ (n − 1). Sample SD is slightly larger (Bessel's correction).

How is it calculated?

Mean → squared deviations → sum → ÷ N or n−1 → square root. 2,4,4,4,5,5,7,9 → 2 or 2.1381.

What is variance?

The mean squared deviation — SD². Here population variance 4, sample variance ≈ 4.571.

Which should I use?

Sample unless your data is the whole population. With large n the two nearly match.

Ready to perform complete calculations?

Use the full AI Calculator suite for statistics, math and data with a professional PDF report.

🔢 Open Math Calculators — Free

No registration required · 350+ calculators · PDF report export