Back to Calculators

Standard Deviation Calculator

Calculate standard deviation of a dataset with step-by-step solution.

You can copy and paste data from spreadsheet applications.

Sample standard deviation is used when data represents a sample of a larger population.

Advertisement

What is Standard Deviation?

Standard deviation is a statistical measure that quantifies the amount of variation or dispersion in a set of values. It represents the average distance of data points from the mean of the dataset.

A low standard deviation indicates that the data points tend to be close to the mean, while a high standard deviation indicates that the data points are spread out over a wider range.

Standard deviation is the square root of variance, which gives it the same units as the original data, making it more interpretable than variance (which has squared units).

How to Calculate Standard Deviation

There are two types of standard deviation: sample standard deviation and population standard deviation.

Population Standard Deviation (σ)

When you have data for an entire population, you use the population standard deviation formula:

σ = √[Σ(xᵢ - μ)² / N]

Where:

  • σ is the population standard deviation
  • xᵢ is each value in the population
  • μ is the population mean
  • N is the size of the population

Sample Standard Deviation (s)

When you have data for only a sample of the population, you use the sample standard deviation formula:

s = √[Σ(xᵢ - x̄)² / (n-1)]

Where:

  • s is the sample standard deviation
  • xᵢ is each value in the sample
  • x̄ is the sample mean
  • n is the size of the sample

The sample standard deviation uses (n-1) in the denominator rather than n to make it an unbiased estimator of the population standard deviation. This adjustment is known as Bessel's correction.

Step-by-Step Calculation

  1. Calculate the mean (average) of your data.
  2. Subtract the mean from each data point to get the deviations from the mean.
  3. Square each of these deviations.
  4. Sum all the squared deviations.
  5. Divide this sum by the total number of data points (for population variance) or by the number of data points minus one (for sample variance).
  6. Take the square root of the result to get the standard deviation.

Example:

For the dataset: 4, 8, 6, 5, 3, 2, 8, 9, 2, 5

  1. Calculate the mean: (4 + 8 + 6 + 5 + 3 + 2 + 8 + 9 + 2 + 5) ÷ 10 = 52 ÷ 10 = 5.2
  2. Find the deviations: 4-5.2=-1.2, 8-5.2=2.8, 6-5.2=0.8, 5-5.2=-0.2, 3-5.2=-2.2, 2-5.2=-3.2, 8-5.2=2.8, 9-5.2=3.8, 2-5.2=-3.2, 5-5.2=-0.2
  3. Square the deviations: (-1.2)²=1.44, (2.8)²=7.84, (0.8)²=0.64, (-0.2)²=0.04, (-2.2)²=4.84, (-3.2)²=10.24, (2.8)²=7.84, (3.8)²=14.44, (-3.2)²=10.24, (-0.2)²=0.04
  4. Sum the squared deviations: 1.44 + 7.84 + 0.64 + 0.04 + 4.84 + 10.24 + 7.84 + 14.44 + 10.24 + 0.04 = 57.6
  5. For population variance: 57.6 ÷ 10 = 5.76
  6. For sample variance: 57.6 ÷ 9 = 6.4
  7. For population standard deviation: √5.76 ≈ 2.4
  8. For sample standard deviation: √6.4 ≈ 2.53

The Normal Distribution and Standard Deviation

In a normal distribution (bell curve), standard deviation has special properties:

  • About 68% of data falls within one standard deviation (±1σ) of the mean
  • About 95% of data falls within two standard deviations (±2σ) of the mean
  • About 99.7% of data falls within three standard deviations (±3σ) of the mean

This pattern is known as the "68-95-99.7 rule" or the "empirical rule." It helps interpret the significance of standard deviation in real-world data distributions.

Example: If heights of adult men in a population follow a normal distribution with a mean of 175 cm and a standard deviation of 7 cm, then:

  • About 68% of men have heights between 168-182 cm (±1σ)
  • About 95% of men have heights between 161-189 cm (±2σ)
  • About 99.7% of men have heights between 154-196 cm (±3σ)

Applications of Standard Deviation

In Finance

Standard deviation is used as a measure of risk in investment portfolios. Higher standard deviation indicates higher volatility and potential risk. It's a key component in Modern Portfolio Theory for assessing risk versus return.

In Quality Control

Standard deviation helps monitor and maintain consistency in manufacturing processes. Control charts use standard deviation to detect when a process drifts out of acceptable limits.

In Scientific Research

Scientists use standard deviation to quantify experimental error and variability in measurements. It's essential for determining whether differences between experimental groups are statistically significant.

In Education

Standard deviation is used in standardized testing to normalize scores and ensure fair comparisons across different test versions or populations. It's also used to determine grading curves.

In Weather Forecasting

Meteorologists use standard deviation to understand variability in temperature, precipitation, and other weather patterns. It helps identify extreme weather events that deviate significantly from typical conditions.

Standard Deviation vs. Other Measures of Dispersion

Standard deviation is one of several measures used to describe the spread of data:

Range

The range is the difference between the maximum and minimum values in a dataset. While simple to calculate, it only considers the two extreme values and ignores all other data points. It's highly sensitive to outliers.

Interquartile Range (IQR)

The IQR is the range between the first quartile (25th percentile) and third quartile (75th percentile). It's more robust against outliers than standard deviation but ignores the tails of the distribution.

Mean Absolute Deviation (MAD)

MAD is the average of the absolute deviations from the mean. It's more intuitive than standard deviation but has less desirable mathematical properties for further statistical analyses.

Variance

Variance is the square of standard deviation. They measure the same concept, but variance uses squared units, making it less immediately interpretable than standard deviation.

Standard deviation is often preferred because it's in the same units as the original data, has well-established statistical properties, and is particularly useful for normally distributed data.

Standard Deviation Formulas

Population Standard Deviation:

σ = √[Σ(xᵢ - μ)² / N]

Sample Standard Deviation:

s = √[Σ(xᵢ - x̄)² / (n-1)]

Computational Formula:

s = √[(Σxᵢ² - (Σxᵢ)²/n) / (n-1)]

Standard Deviation of Linear Transformation:

sd(aX + b) = |a|·sd(X)

The 68-95-99.7 Rule

For a normal distribution, data falls within:

68%
within ±1 standard deviation
95%
within ±2 standard deviations
99.7%
within ±3 standard deviations