One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Standard Deviation Calculator

Quick Answer

Standard deviation measures how spread out numbers are around their mean. Find the mean, square each value’s distance from it, average those squares (divide by n for a population, n − 1 for a sample), then take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the population SD is 2.

Separate values with commas, spaces or new lines.
Result

The population standard deviation is 2

Variance4
Mean5
Count (n)8
Sum40
Sample SD (s)2.1380899
Population SD (σ)2
Step-by-step calculation
  1. Mean = 40 ÷ 8 = 5
  2. Sum of squared deviations = Σ(x − mean)² = 32
  3. Variance = 32 ÷ 8 = 4
  4. Standard deviation = √4 = 2

About the Standard Deviation Calculator

Paste or type your numbers and the calculator returns both the population standard deviation (σ) and the sample standard deviation (s), together with the variance, mean, count and sum. The dropdown picks which one is highlighted in the headline.

Use the population version when your list is every value in the group you care about, and the sample version when the list is a subset used to estimate a larger group. The sample version divides by n − 1 (Bessel’s correction) because a sample’s own mean sits closer to its values than the true mean would, which would otherwise understate the spread.

How to Use the Standard Deviation Calculator

  1. Enter your numbers separated by commas, spaces or new lines.
  2. Choose Population or Sample.
  3. Read the standard deviation, variance and the step-by-step working.

Formula and Method

Population standard deviation

σ = √( Σ(xᵢ − μ)² ÷ N )

Use when the data is the entire population.

Sample standard deviation

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

Use when the data is a sample from a larger population.

Worked Example

Eight test scores

Input: 2, 4, 4, 4, 5, 5, 7, 9 (population)

  • Mean = 40 ÷ 8 = 5
  • Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16 → sum = 32
  • Variance = 32 ÷ 8 = 4
  • σ = √4 = 2

Result: σ = 2. Treated as a sample, s = √(32 ÷ 7) ≈ 2.138.

Frequently Asked Questions

When should I use sample instead of population standard deviation?

Use the sample formula (n − 1) whenever your numbers are a subset of a bigger group, which is the usual case in surveys and experiments. Use the population formula only when you have every value.

What is the difference between variance and standard deviation?

Variance is the average squared deviation from the mean. Standard deviation is its square root, which puts the spread back into the original units of the data.

Can standard deviation be negative or zero?

It is never negative. It is zero only when every value is identical.

What does a high standard deviation mean?

The values are widely spread around the mean. A low standard deviation means they cluster tightly. Compare it with the mean to judge whether the spread is large for your data.

Related Calculators

All Math & Statistics Calculators →

Sources and Further Reading

Accuracy and Scope

Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.