Skip to content
The Calculatorz
Statistics

Standard Deviation and Variance Calculator

Calculate mean, population and sample variance, and population and sample standard deviation for a data set.

Choose the population result when the entered values are the complete group of interest. Choose the sample result when they are a sample used to estimate a larger population. At least two values are required for sample statistics.

Values in the data set

Data value 1

How to use this calculator

Enter the first value, then use Add data value for every additional observation. The calculator reports both population and sample measures so you can select the one that matches the data collection.

Formula

Mean = Σx ÷ n. Population variance = Σ(x − mean)² ÷ n. Sample variance = Σ(x − mean)² ÷ (n − 1). Standard deviation is the square root of variance.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewIfrahMSc Mathematics

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

Why are sample and population results different?

Sample variance divides by n − 1 to correct bias when estimating variability in a larger population.

Can standard deviation be negative?

No. Variance and standard deviation are always zero or positive.

What does a standard deviation of zero mean?

Every entered value is identical, so there is no observed spread.

What is the difference between variance and standard deviation?

Variance is the average squared distance from the mean. Standard deviation is its square root, which puts it back into the same units as the data.

What is the 68–95–99.7 rule?

For normally distributed data, about 68% of values are within one standard deviation of the mean, 95% within two and 99.7% within three.

How do I calculate standard deviation by hand?

Find the mean, subtract it from each value and square the results, then add them up. Divide by n for a population or n − 1 for a sample, and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the population standard deviation is 2.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Illowsky, B., & Dean, S. (2023). Introductory statistics 2e. OpenStax. View source
  2. Croarkin, C., & Tobias, P. (Eds.). (2012). NIST/SEMATECH e-handbook of statistical methods. National Institute of Standards and Technology. View source
  3. Casella, G., & Berger, R. L. (2002). Statistical inference (2nd ed.). Duxbury. View source
  4. International Organization for Standardization. (2019). ISO 80000-2: Quantities and units—Part 2: Mathematics. View source
  5. Olver, F. W. J., Lozier, D. W., Boisvert, R. F., & Clark, C. W. (Eds.). (2024). NIST Digital Library of Mathematical Functions. National Institute of Standards and Technology. View source