Sample and Population SD Calculator

Use this sample and population standard deviation calculator to measure how spread out your data is. Paste numbers to get the mean, variance and both standard deviations side by side, with steps. Use sample SD when your data is part of a bigger group.

Standard Deviation (SD) Finder

Sample SD (s)

0.00

Population SD (σ)

0.00

Mean (μ) / Count (N)

0.00 (N=0)

This variance calculator works from your raw data: paste a list of numbers to get the sample and population standard deviation, the mean and the count. Variance is the standard deviation squared, so square the result that fits your data to get the matching variance, as shown below.

How to use the Sample & Population SD Calculator

  1. Type or paste your numbers in Data Set, separated by commas or spaces. You need at least two values.
  2. Press Calculate SD & Statistics.
  3. Read Sample SD (s) and Population SD (σ) (four decimals), plus Mean / Count.
  4. Square the SD that fits your data to get the variance: s² for a sample, σ² for a whole population. The bar chart plots each value so you can spot outliers.

Formula

Mean: x̄ = Σx ÷ n
Sample variance: s² = Σ(x − x̄)² ÷ (n − 1), and s = √s²
Population variance: σ² = Σ(x − μ)² ÷ n, and σ = √σ²

Variance is the average squared distance from the mean. Dividing by n − 1 (Bessel's correction) gives an unbiased estimate when your numbers are a sample from a larger group.

Example

Data: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 40 ÷ 8 = 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which sum to 32. Population variance = 32 ÷ 8 = 4 (σ = 2.0000). Sample variance = 32 ÷ 7 ≈ 4.5714 (s ≈ 2.1381). The tool shows 2.1381, 2.0000 and 5.00 (N=8).

Frequently asked questions

What is the difference between variance and standard deviation?

Variance is the average of the squared deviations from the mean, so it is in squared units. Standard deviation is the square root of variance, which puts it back in the original units and makes it easier to read.

How do I get variance from standard deviation?

Square it. A sample SD of 2.1381 gives a variance of about 4.5714, and an SD of 3 gives a variance of 9. To go the other way, take the square root of the variance.

Should I use sample or population variance?

Use population variance (divide by n) when your data covers every member of the group. Use sample variance (divide by n − 1) when it is a subset used to estimate a larger group, which is the usual case in surveys and experiments.

Can variance be negative?

No. It is built from squared numbers, so it is always zero or positive. A variance of 0 means every value in the data set is identical.

Related: the Statistics Calculator displays the sample variance directly, along with quartiles.

Find standard deviation

How to use it

  1. Paste your numbers.
  2. Read mean and variance.
  3. Compare sample and population SD.
  4. Check the steps.

More questions

Which one should I use?

Sample SD for a subset, population SD for every member.

Why is sample SD bigger?

It divides by n minus 1 to adjust for a small group.

Can I paste from a spreadsheet?

Yes. Paste a column of numbers straight from your spreadsheet.

Related tools: Standard Deviation Calculator, Z-score Calculator, Mean Median Mode Range Calculator.