Standard Deviation Calculator

Compute mean, variance, sample or population standard deviation, min, max, and range. Shows the per-value deviation table.

Standard deviation (sample)
1.8708
Count (n)6
Sum33.0000
Mean5.5000
Variance3.5000
Σ(x − x̄)²17.5000
Min / Max3 / 8
Range5
Results update as you type
Step-by-step deviation table
xx − x̄(x − x̄)²
4-1.50002.2500
82.50006.2500
60.50000.2500
5-0.50000.2500
3-2.50006.2500
71.50002.2500
Σ0.000017.5000

What this calculator does

This calculator parses a list of numbers and returns count, sum, mean, variance, standard deviation, minimum, maximum, and range. It also shows a step-by-step deviation table so you can see how each data point contributes to the spread.

Formula

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

Population: σ = √( Σ(xᵢ − μ)² ÷ n )

Variable definitions

  • xᵢEach value in the dataset.
  • x̄ / μSample mean / population mean.
  • nNumber of values in the dataset.

Step-by-step calculation

  1. Calculate the mean: sum the values and divide by n.
  2. For each value, subtract the mean and square the result.
  3. Sum the squared deviations.
  4. Divide by (n − 1) for sample or by n for population — this is the variance.
  5. Take the square root of the variance to get the standard deviation.

Worked example

Dataset: 4, 8, 6, 5, 3, 7 (n = 6).

  • Mean: 33 ÷ 6 = 5.5
  • Squared deviations: 2.25, 6.25, 0.25, 0.25, 6.25, 2.25 → sum = 17.5
  • Sample variance: 17.5 ÷ 5 = 3.5; sample SD ≈ 1.871
  • Population variance: 17.5 ÷ 6 ≈ 2.917; population SD ≈ 1.708
  • Min = 3, Max = 8, Range = 5

How to use this calculator

  1. Paste or type your numbers separated by commas, spaces, or new lines.
  2. Choose Sample or Population.
  3. Read the summary and the per-value deviation table.

Common mistakes

  • Sample vs population: using the wrong divisor changes the answer. Use sample (n − 1) unless you have literally every data point in the population.
  • Confusing SD with variance: variance is SD squared and uses the same units squared (e.g. dollars²).

Frequently asked questions

What is standard deviation?

Standard deviation measures how spread out the values in a dataset are from the mean. A small SD means values cluster near the mean; a large one means they're spread far from it.

What's the difference between sample and population standard deviation?

Sample SD divides by (n − 1) and is used when your data is a sample from a larger population. Population SD divides by n and is used when you have the entire population.

How do I calculate standard deviation step by step?

Find the mean, subtract the mean from each value and square the result, sum those squares, divide by n (population) or n − 1 (sample), then take the square root.

What is variance?

Variance is the square of the standard deviation. It's the average of the squared differences from the mean and uses the same n or n − 1 divisor.

Why divide by n − 1 for sample standard deviation?

Dividing by n − 1 (Bessel's correction) makes the sample variance an unbiased estimator of the population variance. Dividing by n alone would systematically underestimate the true spread for small samples.

What format should my data be in?

Numbers separated by commas, spaces, or new lines. The calculator ignores blanks and parses each token as a number.

What are the min, max, and range?

The minimum and maximum are the smallest and largest values in the dataset. Range = max − min. Together they give you a quick sense of the data's spread alongside the SD.

Related calculators

Last updated: June 22, 2026 · Checked against standard formulas and sample test cases. Uses double-precision floats; sums computed with a single pass for each statistic.