Standard Deviation Calculator: Sample or Population

Find the spread of numeric observations and check how the sample or population denominator changes variance. Review the mean and sum of squared deviations.

Paste up to 1,000 values. Commas separate values; use 1250, not 1,250.

Result

Enter values and select Calculate.

How is this calculated?

Square the distances from the mean, divide by the selected denominator, then take the square root.

Worked example: Find sample spread for three measurements

Values 2, 4 and 6 have mean 4. Squared distances are 4, 0 and 4. Divide 8 by 2 for sample variance 4; its square root is 2.

Method and limits

Select sample to use n−1 in the variance denominator, or population for n. Variance is calculated from exact typed decimal differences before rounding. The margin of error for a sample uses a normal approximation, not a small-sample t interval. A fully observed population has no sampling error; a separate reference margin treats the data as draws from a model. Educational estimates. Confidence intervals require a representative random sample and a justified distribution model; these results do not correct a biased sampling process.

How to use this calculator

  1. Paste numeric observations in a single common unit. Decide if they describe everyone you intend to measure or a subset used to describe a larger group.
  2. Select Sample or Entire population. Read the standard deviation in the original units and examine variance and the squared-deviation total as checks.

Use the right denominator for 2, 4 and 6

The mean is 4 and the squared-deviation total is 8. The sample variance is 8 ÷ 2 = 4. If these are the complete population, the variance is 8 ÷ 3 and the standard deviation is about 1.633.

Spread is not the gap between extremes

For 2, 4 and 6, the range is 4 but the sample standard deviation is 2. Range uses only the endpoints; standard deviation incorporates the squared distance of each observation from the mean.

Select population based on the question

If the three values are every item in a tray and you only want its spread, divide by three. If the tray is a sample for a larger process, the sample formula divides by two. Changing the mode does not change the mean.

Separate spread from uncertainty in a mean

Standard deviation describes the spread of observations. The confidence setting only affects the separate displayed normal margin. For a small sample with unknown population variability, a Student t interval is usually preferred when its assumptions are appropriate.

Frequently asked questions

Why is sample SD unavailable for one value?
The denominator n − 1 would be zero. A fully listed one-value population has variance and standard deviation zero.
What units do I report?
Use the input units for standard deviation and squared input units for variance.
Does changing confidence alter my standard deviation?
No. It only affects the separate normal confidence or model-reference calculation.
Do unusual measurements matter?
Yes. Squaring the distances gives large deviations substantial weight. Verify the measurements rather than deleting them just because they are large.

Common mistakes and limits

Sources & methodology

Related calculators