Standard Deviation CalculatorFree online math calculator — instant results, no sign-up

Sample and population standard deviation of a data set.

Inputs

Count
8
Mean18
Sample SD5.237229
Population SD4.898979
Variance (sample)27.428571

Sign in to save results and favorites.

About the Standard Deviation Calculator

The Standard Deviation Calculator determines the spread and dispersion of a numerical dataset. It computes the total count, arithmetic mean, sample standard deviation, population standard deviation, and sample variance. This tool is commonly used by students, researchers, and data analysts to evaluate variability within measurements or experimental observations.

Numbers
A list of numerical values separated by commas, spaces, or line breaks.

Formula and method

x̄ = (Σ x_i) / n
s = √[ Σ (x_i - x̄)² / (n - 1) ]
σ = √[ Σ (x_i - μ)² / N ]
s² = Σ (x_i - x̄)² / (n - 1)
  • x_iIndividual data value in the dataset
  • n, NTotal count of observations in the sample or population
  • x̄, μArithmetic mean of the sample or population
  • sSample standard deviation (using Bessel's correction, n − 1)
  • σPopulation standard deviation (divided by N)
  • s²Sample variance

The calculator parses the input string into a list of numbers and determines the count. It computes the mean, sums the squared deviations from that mean, and divides by n − 1 for sample metrics or by N for population standard deviation. Final floating-point values are rounded to 6 decimal places.

Worked example

These are the calculator's starting values and the results it actually produces for them.

Inputs

  • Numbers10, 12, 23, 23, 16, 23, 21, 16

Results

  • Count8
  • Mean18
  • Sample SD5.237229
  • Population SD4.898979
  • Variance (sample)27.428571

How to use the Standard Deviation Calculator

  1. 1Parse the input values into an array of individual numbers and count them.
  2. 2Add all values together and divide by the count to determine the arithmetic mean.
  3. 3Subtract the mean from each number, square the resulting differences, and sum them.
  4. 4Divide the sum of squared differences by n − 1 (or N for population) and take the square root.

Reading your result

A low standard deviation indicates that the numbers cluster closely around the mean, while a high standard deviation indicates broad spread across a wider range. Use Sample SD when your data is a subset of a larger group, and Population SD only when you have recorded every member of the target group. Sample variance is expressed in squared units of the original measurement.

Limitations

The calculation does not account for weighted values or grouped frequency tables. It does not flag or exclude outliers, which can heavily skew both the mean and standard deviation. Sample standard deviation requires at least two data points; entering fewer will lead to an undefined division by zero.

Common questions

When should I use Sample SD instead of Population SD?+

Use Sample SD whenever your data is a sample drawn from a larger group, such as a survey or test sample. Use Population SD only if your dataset includes every single item or individual in the entire population being studied.

Why does sample standard deviation divide by n − 1 instead of n?+

Dividing by n − 1 is known as Bessel's correction. It corrects the negative bias that occurs when using the sample mean instead of the true population mean, providing an unbiased estimate of population variance.

Can standard deviation ever be negative?+

No. Because standard deviation is the square root of the sum of squared differences, it is always zero or positive. It equals zero only when every number in the dataset is identical.

Does the calculator save my information?+

Calculations run in your browser. While signed in, inputs and results are automatically recorded in account history; saving a result creates a separate saved record.

Further reading

You might also like

Results are estimates for informational purposes and are not financial, medical or legal advice.