Standard Deviation

Calculate the standard deviation, variance, and mean of any data set, with both population and sample formulas. A free statistics calculator showing how far data spread from the average.

How to Use

  1. Enter data

    Input numbers separated by commas or one number per line.

  2. Select type

    Choose population or sample standard deviation.

  3. View results

    Click Calculate to see the standard deviation, variance, and mean.

What is standard deviation?

Standard deviation is a measure of dispersion that summarizes, in a single number, how far data values lie from their mean. Two data sets can share the same mean yet behave very differently in terms of stability and risk if their standard deviations differ.

Why it matters

Standard deviation reveals the variability that the mean alone cannot show. A small value means the data cluster tightly around the mean and are highly predictable, while a large value means they are widely spread and carry more uncertainty.

Where it is used

  • Finance: the standard deviation of prices or returns measures investment risk (volatility).
  • Quality control: methods such as Six Sigma manage process spread to reduce defect rates.
  • Testing and research: it gauges the uniformity of score distributions and the error range of experimental measurements.

For a normal distribution, the so-called 68-95-99.7 rule makes interpretation intuitive: about 68% of the data fall within the mean ±1σ and about 95% within ±2σ.

Formula

The population standard deviation is σ = √(Σ(xᵢ − μ)² / N), and the sample standard deviation is s = √(Σ(xᵢ − x̄)² / (N − 1)). Here xᵢ is each data point, μ (or x̄) is the mean, and N is the number of data points.

Step-by-step example

For the data {2, 4, 4, 4, 5, 5, 7, 9}:

  • 1. Mean μ = (2+4+4+4+5+5+7+9) / 8 = 40 / 8 = 5
  • 2. Sum of squared deviations Σ(xᵢ−μ)² = 9+1+1+1+0+0+4+16 = 32
  • 3. Population variance = 32 / 8 = 4 → σ = √4 = 2
  • 4. Sample variance = 32 / (8−1) = 4.5714 → s ≈ 2.138

Because the sample divides by N−1, its standard deviation is always slightly larger than the population value.

Frequently Asked Questions

What is the difference between population and sample standard deviation?
Population standard deviation covers the entire data set and divides by N, while sample standard deviation covers a subset and divides by N-1. N-1 is used for samples to estimate the population variance without bias (an unbiased estimator). For the same data, the sample standard deviation is always slightly larger.
What is the relationship between variance and standard deviation?
Standard deviation is the square root of the variance. Variance is the average of the squared differences from the mean, so its unit is the square of the original data (e.g. dollars²), whereas standard deviation returns to the original unit after taking the square root, making it more intuitive to interpret.
What does a larger standard deviation mean?
A larger standard deviation means the data are spread farther from the mean, indicating greater variability and uncertainty. Conversely, a smaller value means the data cluster near the mean and are stable and predictable.
What does a standard deviation of 0 mean?
It means every data value is identical. Since there is no difference between each value and the mean, the sum of squared deviations is 0, so both the variance and the standard deviation are 0.
Which mode should I choose for my data?
If the data you are analyzing is the entire group (e.g. the scores of every student in one class), choose the population (N) mode. If it is a sample drawn from a larger population (e.g. estimating from 100 survey respondents), choose the sample (N-1) mode. For data used in statistical inference, the sample mode is usually correct.
Why is there no sample standard deviation when there is only one data point?
The sample standard deviation divides by N-1, so with a single data point the denominator becomes 0 and it is undefined. In this case, this calculator safely treats the standard deviation as 0 instead of raising an error. To obtain a meaningful sample standard deviation, you need at least two data points.
Can negative data be calculated?
Yes. Standard deviation squares the differences from the mean, so it is always 0 or greater regardless of sign. For example, the population standard deviation of {-2,-1,0,1,2} is about 1.414 (√2).
How do I interpret a data distribution using standard deviation?
If the data are close to a normal distribution, you can apply the 68-95-99.7 rule. About 68% of the values fall within the mean ±1σ, about 95% within ±2σ, and about 99.7% within ±3σ. Values that fall well outside this range may be suspected as outliers.
Verified 2026 formulas

Related Calculators