Free Standard Deviation Calculator

Standard Deviation Calculator

Calculate population or sample standard deviation from a list of values. The result also shows the mean, variance, count, and range. For another measure of center, use the Median Calculator.

σ Populations Sample Variance & mean Stable algorithm

Calculator

Measure data spread

Choose whether your values represent a complete population or a sample, then paste or type the data set.

Separate values with commas, spaces, semicolons, or new lines. Sample mode requires at least two values.

Advertisement

What is a standard deviation calculator?

A standard deviation calculator measures how spread out a set of values is around its arithmetic mean. It can describe a complete population or estimate variability from a sample. To calculate the mean or weighted average separately, use the Average Calculator.

How does the standard deviation calculator work?

The calculator uses Welford's incremental algorithm to update the mean and the sum of squared deviations as each value is processed. This avoids a less stable formula that subtracts two potentially large, nearly equal quantities.

What formulas are used?

Population variance: σ² = Σ(x − μ)² / N
Population standard deviation: σ = √σ²
Sample variance: s² = Σ(x − x̄)² / (n − 1)
Sample standard deviation: s = √s²

The Square Root Calculator can be used for a focused square-root calculation.

Advertisement

Population vs. sample standard deviation

Use Population when the values are the complete group you want to describe. Use Sample when the values are a sample from a larger population and the goal is to estimate that population's variability. The sample formula uses n − 1 in the denominator.

How do you use this standard deviation calculator?

  1. Select Population or Sample.
  2. Enter the data values.
  3. Select Calculate Standard Deviation.
  4. Review the standard deviation, mean, variance, count, and range.

Standard deviation example

For the population 2, 4, 4, 4, 5, 5, 7, 9, the mean is 5, the population variance is 4, and the population standard deviation is 2. For sorted center comparisons, see the Median Calculator.

How should you interpret standard deviation?

A value of zero means all observations are identical. Larger standard deviations indicate more dispersion around the mean, but whether a value is “large” depends on the units and context of the data. Percentage comparisons can be calculated with the Percentage Calculator.

What are the calculator's limits?

Up to 10,000 finite values are accepted. Sample mode requires at least two observations. Browser double-precision arithmetic is used, so extremely large values or very fine differences near the limits of floating-point precision can reduce accuracy.

Frequently asked questions about standard deviation

Standard deviation measures how far values typically spread from their mean. A smaller value indicates tighter clustering, while a larger value indicates greater spread.
Population standard deviation divides the sum of squared deviations by N. Sample standard deviation divides by n − 1 to estimate population spread from a sample.
Choose Population when the entered values are the full population you want to describe. Choose Sample when the values are a sample used to estimate variability in a larger population.
No. Standard deviation is the square root of a variance, so a valid real standard deviation is always zero or positive.
It means every entered value is identical, so there is no spread around the mean.
Yes. The calculator accepts finite negative values, positive values, zero, and decimals.
The sample formula divides by n − 1. With only one observation, the denominator would be zero and the sample standard deviation is undefined.
The calculator uses Welford's one-pass algorithm for the mean and squared deviations, which is generally more numerically stable than subtracting two large nearly equal sums.

Methodology and calculation scope

The calculation uses Welford's online algorithm for the running mean and M2 value. Population variance is M2/N; sample variance is M2/(n−1). Small negative variance values caused only by floating-point noise are clamped to zero before taking the square root.

Privacy note: The data is calculated locally in your browser and is not submitted to a calculation server.
Advertisement