ZestCalc
Appearance
Language

Standard Deviation Calculator

Calculate population or sample standard deviation with a step-by-step walkthrough.

Enter your data

Calculation mode

Use when you have the entire dataset. Divisor: N.

Numbers separated by commas, spaces, or newlines.

Results

Std Deviation(σ)

2.467793

Count(N)

10

Sum

51

Min

1

Max

9

Mean(μ)

5.1

Variance(σ²)

6.09

Standard Deviation — What It Measures and How to Use It

Standard deviation is the most widely used measure of spread in a dataset. It quantifies how far the individual values typically stray from the mean. A small standard deviation means the values cluster tightly around the mean; a large one indicates they are spread out.

What Is Standard Deviation?

Given a set of NN values {x1,x2,,xN}\{x_1, x_2, \ldots, x_N\}, the calculation follows five steps:

  1. Find the mean xˉ=i=1NxiN\bar{x} = \dfrac{\sum_{i=1}^{N} x_i}{N}
  2. Compute each deviation di=xixˉd_i = x_i - \bar{x}
  3. Square each deviation di2d_i^2
  4. Average the squared deviations to get the variance
  5. Take the square root to get the standard deviation

The square root in the final step brings the unit back to the same scale as the original data, making standard deviation directly interpretable alongside the mean.

For a population (you have all NN values in the group):

σ=i=1N(xiμ)2N\sigma = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \mu)^2}{N}}

For a sample (your NN values are drawn from a larger group):

s=i=1N(xixˉ)2N1s = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \bar{x})^2}{N - 1}}

Why Sample Standard Deviation Uses N−1 (Bessel's Correction)

When you have only a sample, the sample mean xˉ\bar{x} is slightly closer to the sample values than the true population mean μ\mu is. This causes the raw squared deviations to be slightly smaller than they should be — in other words, dividing by NN would give a biased (systematically low) estimate of the population variance.

Dividing by N1N - 1 instead corrects for this bias. This adjustment is known as Bessel's correction, and it makes s2s^2 an unbiased estimator of the population variance σ2\sigma^2.

The intuition: with a sample of size NN, only N1N - 1 deviations are genuinely "free" — once you fix the first N1N - 1 deviations and the mean, the last deviation is determined. You therefore have N1N - 1 degrees of freedom.

As the sample size grows, NN and N1N - 1 become nearly equal and the distinction disappears — which makes sense, because a very large sample is practically the same as the whole population.

From a Sample to the Population: Standard Error

The sample standard deviation ss describes the spread of values inside your sample. But researchers are often more interested in how accurately the sample mean xˉ\bar{x} estimates the population mean μ\mu.

The answer is the standard error of the mean (SEM):

SEM=sN\text{SEM} = \frac{s}{\sqrt{N}}

The SEM shrinks as you collect more data (it scales with 1/N1/\sqrt{N}), which formalises the intuition that larger samples give more reliable estimates.

For example, if a sample of N=25N = 25 students has a score standard deviation of s=10s = 10, then the SEM is 10/25=210 / \sqrt{25} = 2. A 95% confidence interval for the true mean score is approximately xˉ±1.96×SEM\bar{x} \pm 1.96 \times \text{SEM}, where 1.96 is the critical value from the standard normal distribution that captures the central 95% of the area.

How to Use This Calculator

  1. Enter your values in the text area, separated by commas, spaces, or newlines.
  2. Choose the mode — use Population if your data represents the entire group you care about; use Sample if it is a subset of a larger population.
  3. Click Calculate (or leave the default values to see an example).
  4. Read the results — the card shows count, sum, mean, variance, and standard deviation with the appropriate symbols (μ\mu/xˉ\bar{x}, σ2\sigma^2/s2s^2, σ\sigma/ss).
  5. Expand the Step-by-Step Solution section to trace through the full derivation, rendered in LaTeX.

Interpreting the Results

StatisticPopulation symbolSample symbolMeaning
CountNNNNNumber of values
Sumxi\sum x_ixi\sum x_iTotal of all values
Meanμ\muxˉ\bar{x}Average value
Varianceσ2\sigma^2s2s^2Average squared deviation
Std Deviationσ\sigmassTypical distance from the mean

A standard deviation close to zero means the values are nearly identical. A standard deviation larger than the mean often signals high relative variability.