Standard Deviation Calculator

Standard deviation calculator (SD calculator) for population and sample data. Find the standard deviation, variance, mean, and margin of error with the standard deviation formula worked step by step—learn how to find standard deviation and use it as a variance calculator.

Updated

The data is a
Choose population when the data includes every value you care about. Choose sample when it is a subset used to estimate a larger group.

Population standard deviation, σ

8.55803716

Variance, σ²
73.24
Mean, μ
80.6
Count, N
10
Sum, Σx
806
Minimum
66
Maximum
94

Distribution of values

66 to 71.6: 271.6 to 77.2: 177.2 to 82.8: 282.8 to 88.4: 388.4 to 94: 230μ − σμ + σμ = 80.66694
  • Count of values
  • Mean
  • Within 1 standard deviation

Steps

  1. Mean: μ = Σx ÷ N = 806 ÷ 10 = 80.6
  2. Sum of squared deviations: Σ(xᵢ − μ)² = (72 − 80.6)² + … + (70 − 80.6)² = 732.4
  3. Variance: σ² = Σ(xᵢ − μ)² ÷ N = 732.4 ÷ 10 = 73.24
  4. Standard deviation: σ = √73.24 = 8.55803716

Margin of error (confidence interval)

Standard error of the mean: σμ = σ ÷ √N = 8.55803716 ÷ √10 = 2.70628897

Confidence levelz × SEInterval
68.3%1.000 × SE80.6 ± 2.706 (±3.36%)
90%1.645 × SE80.6 ± 4.452 (±5.52%)
95%1.960 × SE80.6 ± 5.304 (±6.58%)
99%2.576 × SE80.6 ± 6.971 (±8.65%)
99.9%3.291 × SE80.6 ± 8.906 (±11.05%)
99.99%3.891 × SE80.6 ± 10.53 (±13.06%)
99.999%4.417 × SE80.6 ± 11.954 (±14.83%)
99.9999%4.892 × SE80.6 ± 13.239 (±16.43%)

Frequency table

ValueFrequencyShare
66110.00%
70110.00%
72110.00%
78110.00%
81110.00%
85330.00%
90110.00%
94110.00%

Was this tool helpful?

Leave a rating to help us build a better tool.

Average 0.0 / 5 · 0 reviews


What is standard deviation?

Standard deviation measures how spread out a set of numbers is around its mean. A small standard deviation means most values sit close to the average; a large one means the values are scattered over a wider range. It is the square root of the variance, so it is expressed in the same units as the original data—dollars, inches, test points, and so on.

This standard deviation calculator (SD calculator) also works as a variance calculator and a mean and standard deviation calculator: paste a list of numbers, choose population or sample, and it returns the standard deviation, variance, mean, count, sum, the worked steps, a histogram, margins of error for the mean, and a frequency table.

Standard deviation formula

Population standard deviation (σ)

Use the population formula when your data includes every value you are interested in—for example, the scores of every student in one class.

σ = √[ Σ(xᵢ − μ)² ÷ N ]

Sample standard deviation (s)

Use the sample formula when your data is a subset drawn from a larger group and you want to estimate the spread of that whole group. Dividing by N − 1 instead of N (Bessel's correction) makes the sample variance an unbiased estimate of the population variance.

s = √[ Σ(xᵢ − x̄)² ÷ (N − 1) ]

In both formulas, xᵢ is each value, μ or x̄ is the mean, and N is the number of values. The expression inside the square root is the variance: σ² for a population and s² for a sample.

How to find standard deviation

  1. Add up all the values and divide by how many there are to get the mean.
  2. Subtract the mean from each value and square each difference.
  3. Add the squared differences together.
  4. Divide that total by N for a population, or by N − 1 for a sample. This is the variance.
  5. Take the square root of the variance to get the standard deviation.

For example, take the data set 4, 8, 6, 10. The mean is 28 ÷ 4 = 7. The squared differences are 9, 1, 1, and 9, which add up to 20. The population variance is 20 ÷ 4 = 5, so σ = √5 ≈ 2.236. Treated as a sample, the variance is 20 ÷ 3 ≈ 6.667, so s ≈ 2.582.

What the result includes

  • The standard deviation (σ or s), variance, mean, count, sum, minimum, and maximum.
  • The step-by-step calculation from the mean to the square root of the variance.
  • A histogram of the values with the mean and one standard deviation on each side marked.
  • The standard error of the mean (SD ÷ √N) and the margin of error at confidence levels from 68.3% to 99.9999%.
  • A frequency table showing how often each value appears.

About the margin of error

The margin of error table multiplies the standard error of the mean by the two-sided critical value of the standard normal distribution (1.645 for 90%, 1.960 for 95%, 2.576 for 99%, and so on). The remaining critical values come from the inverse of the standard normal cumulative distribution function. This normal approximation works well for larger data sets. For small samples—roughly fewer than 30 values—a t-distribution critical value gives a wider, more accurate interval, so treat the figures here as approximate.

Frequently asked questions

Should I use population or sample standard deviation?

Use population when you have every value in the group you care about. Use sample when the numbers are only part of a larger group, such as a survey of 200 voters used to describe all voters. When in doubt, the sample standard deviation is the safer choice because it does not understate the spread.

What is the difference between variance and standard deviation?

Variance is the average squared distance from the mean, so it is in squared units. Standard deviation is the square root of variance, which puts it back in the original units and makes it easier to interpret.

What does a standard deviation of 0 mean?

A standard deviation of 0 means every value in the data set is identical—there is no spread at all around the mean.

How much data falls within one standard deviation?

For data that follows a normal (bell-shaped) distribution, about 68% of values fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three. Data that is skewed or has outliers may not follow this rule.

What's changed
  • Launched.

References