Standard Deviation Calculator

Paste your data to get the sample or population standard deviation, variance, mean and standard error, with every step of the calculation shown.

  • Sample and population
  • Step-by-step table
  • Variance, SE and CV

Standard Deviation Calculator

Paste or type your numbers, separated by commas, spaces or new lines.

Data is a

Standard deviation

–

Variance–
Mean–
Count (n)–
Sum–
Sum of squares (SS)–
Standard error of the mean–

Step by step

xx − mean(x − mean)²

Your numbers stay in your browser. Nothing is sent or saved.

How to Calculate Standard Deviation

Standard deviation measures how spread out numbers are around their mean. A small standard deviation means the values sit close to the average; a large one means they are spread out.

  1. Find the mean: add the numbers and divide by how many there are.
  2. Subtract the mean from each number and square the result.
  3. Add the squares. This is the sum of squares (SS).
  4. Divide SS by n for a population, or by n − 1 for a sample. This is the variance.
  5. Take the square root of the variance.
Population: σ = √( Σ(x − μ)² ÷ N ) Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )

Worked Example

Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8). The mean is 40 ÷ 8 = 5.

xx − 5(x − 5)²
2-39
4-11
4-11
4-11
500
500
724
9416
Sum 40032

Population: variance = 32 ÷ 8 = 4, so σ = 2. Sample: variance = 32 ÷ 7 = 4.571, so s = 2.138.

Sample or Population?

Use the population formula when your data includes every member of the group you care about, such as the test scores of every student in one class. Use the sample formula when the data is a subset used to estimate a larger group, such as 50 surveyed customers out of thousands. Dividing by n − 1 (Bessel’s correction) makes the sample variance an unbiased estimate of the population variance. When in doubt, the sample formula is the usual choice in research and coursework.

Variance, Standard Error and CV

MeasureFormulaMeaning
VarianceSD²Average squared distance from the mean
Standard error of the meanSD ÷ √nHow precisely the sample mean estimates the true mean
Coefficient of variationSD ÷ mean × 100%Spread relative to the size of the values

The 68–95–99.7 Rule

For data that follows a normal (bell-shaped) distribution, about 68% of values fall within 1 standard deviation of the mean, about 95% within 2 and about 99.7% within 3. If test scores average 70 with a standard deviation of 10, roughly 68% of students scored between 60 and 80.

Standard Deviation on a Calculator

Scientific and graphing calculators usually show two values: s (often labeled Sx or σn−1) is the sample standard deviation, and σ (σx or σn) is the population standard deviation. Check which one your class or report needs. For the mean alone, use the average calculator.

Frequently Asked Questions

What is the formula for standard deviation?

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

What is the difference between sample and population standard deviation?

The sample version divides the sum of squares by n − 1 instead of n, so it is slightly larger. Use it when your data is a subset of a larger group.

How do I find standard deviation from variance?

Take the square root. A variance of 16 means a standard deviation of 4.

Can standard deviation be negative?

No. It is a square root of a sum of squares, so it is zero or positive. It is zero only when all values are equal.

What is a good standard deviation?

It depends on the data. Compare it with the mean using the coefficient of variation: a CV under about 10% means values are tightly grouped relative to their size.

What does a high standard deviation mean?

The values are spread far from the mean. A low standard deviation means they are clustered near it.

Related Calculators

Sources

  • NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.6: Measures of Scale (variance and standard deviation).

Results are rounded for display. For money, the calculator rounds to the cent at the end; stores may round each step differently.

Scroll to Top