Skip to content
SmartDailyCalculator

Standard Deviation Calculator

Enter your data and choose whether it is a sample or a whole population to get the standard deviation and variance.

Separate numbers with commas, spaces or new lines.

Sample standard deviation (s)

2.13809

Sample variance (s²)
4.571429
Mean
5
Count (n)
8
Sum
40
Standard error of the mean
0.755929
Population standard deviation (σ)
2

How to use the Standard Deviation Calculator

  1. Type or paste your data values, separated by commas, spaces or new lines.
  2. Choose whether the data is a sample or the whole population.
  3. Read the standard deviation, the variance and the mean.

Standard deviation and variance formulas

σ=Σ(x−μ)2n
s=Σ(x−x¯)2n−1

Where:

σ
= population standard deviation
s
= sample standard deviation
μ,x¯
= population mean, sample mean
n
= number of values
Show as plain text

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

Find the mean, subtract it from each value and square the result, then add up those squares. Divide by n for a population or n − 1 for a sample to get the variance, and take the square root to get the standard deviation.

Dividing by n − 1 (Bessel's correction) compensates for the fact that a sample tends to underestimate the spread of the population it came from.

Assumptions and limitations

  • Results are rounded to 6 decimal places.

Example: The data set 2, 4, 4, 4, 5, 5, 7, 9

  1. Mean: 40 ÷ 8 = 5.
  2. Squared differences from the mean: 9, 1, 1, 1, 0, 0, 4, 16, which add up to 32.
  3. Population variance: 32 ÷ 8 = 4, so σ = √4 = 2.
  4. Sample variance: 32 ÷ 7 = 4.571429, so s = √4.571429 = 2.13809.

When to use the Standard Deviation Calculator

  • Measuring how spread out test scores, measurements or survey answers are.
  • Comparing the consistency of two processes that have the same average.
  • Preparing summary statistics for a lab report or a school statistics project.

Standard Deviation Calculator FAQs

Should I use sample or population standard deviation?

Use population when your data includes every member of the group you care about, such as the test scores of every student in one class. Use sample when the data is a subset used to estimate a larger group, such as a survey.

What does standard deviation tell me?

It measures how spread out values are around the mean. For data that is roughly normally distributed, about 68% of values fall within one standard deviation of the mean and about 95% within two.

What is the difference between variance and standard deviation?

Variance is the average squared distance from the mean, and standard deviation is its square root. The square root returns to the original units, which makes it easier to interpret. For 2, 4, 4, 4, 5, 5, 7, 9 the population variance is 4 and the standard deviation is 2.

How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.