Standard Deviation Calculator

Calculate the standard deviation and variance of a set of numbers, with a choice of sample or population formulas. Enter your values separated by commas or spaces to see the spread of the data alongside the mean.

Std deviation

5.2372

Variance

27.4286

Mean

18

Who should use it: Students, analysts, and anyone measuring how spread out a data set is.

How to use this calculator

  1. 1Enter your numbers, separated by commas or spaces.
  2. 2Choose "Sample" if your numbers are a sample of a larger population, or "Population" if they are the entire population.
  3. 3Review the standard deviation, variance, and mean.

Understanding the inputs

NumbersTwo or more numeric values, separated by commas or spaces. Non-numeric entries are ignored.
Sample / PopulationSelect Sample to divide by (n − 1), or Population to divide by n. Use Sample when your data represents part of a larger group.

How the calculation works

The calculator first finds the mean of the values. It then computes the variance as the average of the squared differences from the mean — dividing by (n − 1) for a sample or by n for a population. The standard deviation is the square root of the variance, expressing the spread in the same units as the original data.

Variance = Σ(x − mean)² ÷ (n − 1) [sample] or ÷ n [population]; Standard deviation = √variance

Worked example

Scenario: Numbers 10, 12, 23, 23, 16, 23, 21, 16 using the Sample option.

Result: Mean = 18; variance ≈ 27.43; standard deviation ≈ 5.24.

How to interpret your result

The standard deviation tells you how far the values typically are from the mean. A small standard deviation means the values cluster tightly around the mean; a large one means they are spread out. The variance is the squared spread and is less intuitive because it is in squared units. Use the sample option when your data is a sample of a larger population, and the population option when you have every member of the group.

Factors that can affect the result

  • Sample vs population: the sample formula divides by (n − 1) and gives a slightly larger value to correct for sampling; the population formula divides by n.
  • Outliers: extreme values increase the variance and standard deviation because differences are squared.
  • Number of values: with only one value there is no spread, so the result is zero.

Limitations and assumptions

  • Reports standard deviation, variance, and mean only; it does not show the range, interquartile range, or a full distribution.
  • Non-numeric entries are ignored, which changes the count and can affect the result.
  • The sample formula requires at least two values; with a single value the divisor is held at 1 to avoid division by zero and the result is 0.

Frequently asked questions

Related calculators

Methodology

The calculator computes the mean, then the variance as the average squared deviation from the mean using (n − 1) for a sample or n for a population, and takes the square root for the standard deviation.

Sources and references

  • Mathematical basis — sample and population variance and standard deviation are standard definitions in descriptive statistics; no external source is required
Last reviewed: August 2026. Read our editorial policy.

Disclaimer: Results are provided for informational purposes and may vary depending on the values entered, the assumptions described above, and rounding. They are not a substitute for professional advice specific to your situation. Read the full disclaimer.