Standard Deviation Calculator

Find the sample or population standard deviation from a list of data. See the mean, variance, range, histogram, and each calculation step.

Enter your values

STATISTICS

Enter your data

Separate values with commas, spaces, semicolons, or new lines. Decimals and negative numbers are supported.

Tip: press Ctrl + Enter to calculate
Try an example
Your result will appear here.Enter a data set and calculate to see its standard deviation, variance, mean, and distribution.
Overview

What is a standard deviation calculator?

Standard deviation measures how spread out numerical observations are around their mean. This calculator accepts a list of finite data values and computes either the population standard deviation or the sample standard deviation, along with the matching variance and useful summary statistics.

Important terms

Population standard deviation
The square root of the average squared deviation for every member of a population, using N in the variance denominator.
Sample standard deviation
An estimate of population spread from a sample, using n − 1 in the variance denominator (Bessel's correction).
Variance
The average squared distance from the mean. Standard deviation is its square root, so it returns to the data's original units.
Mean
The arithmetic average: the sum of all observations divided by the number of observations.

When this method is useful

  • Summarize variability in a complete data set or sample.
  • Compare the spread of measurements, test scores, or repeated observations.
  • Check variance and standard deviation calculations while learning descriptive statistics.
Formula

Formula and variables

sigma=sqrt{ rac{sum_{i=1}^{N}(x_i-mu)^2}{N}},qquad s=sqrt{ rac{sum_{i=1}^{n}(x_i-ar{x})^2}{n-1}}
xᵢ
the i-th observed value
μ / x̄
the population mean μ or sample mean x̄
N / n
the number of population values N or sample values n
σ / s
the population standard deviation σ or sample standard deviation s

First find the arithmetic mean, subtract it from every observation, square each difference, and add those squared differences. Divide by N for a complete population or by n − 1 for a sample estimate. Take the square root so the final spread is measured in the same units as the original data.

Domain note: Use population mode when the entered values are the entire group of interest. Use sample mode when they are a sample used to estimate a larger population; sample mode needs at least two values. Values must be finite real numbers. This calculator treats each entered value as one observation and does not apply frequency weights.

How it works

How to use this calculator

  1. 1

    Enter observations separated by commas, spaces, semicolons, or line breaks. Negative values and decimals are allowed.

  2. 2

    Choose Population when the list contains the whole group; choose Sample when it is a sample from a larger group.

  3. 3

    Select the display precision and calculate. The tool uses a numerically stable running-variance method.

  4. 4

    Read standard deviation first, then the corresponding variance and other summary measures. Use the histogram to inspect the distribution.

Worked examples

Step-by-step examples

Example 1

Problem: Find the population standard deviation of 2, 4, 4, 4, 5, 5, 7, 9.

Substitution: The mean is 40 ÷ 8 = 5. The squared deviations sum to 32, so the population variance is 32 ÷ 8 = 4.

Result: σ = √4 = 2.

The observations have a population standard deviation of 2 data units around their mean of 5.

Example 2

Problem: Find the sample standard deviation of 3, 5, 7.

Substitution: The sample mean is 5. The squared deviations sum to (3−5)² + (5−5)² + (7−5)² = 8. Divide by n−1 = 2 to get sample variance 4.

Result: s = √4 = 2.

Using n−1 estimates the spread of a broader population from these three observations.

Example 3

Problem: Find the population spread of 12, 12, 12, 12.

Substitution: Every value equals the mean, so each deviation and each squared deviation is zero.

Result: Population variance = 0; σ = 0.

There is no observed variation when all values are identical.

Method knowledge

Rules, edge cases, and related ideas

The denominator depends on what the list represents

Population variance divides by N because every member is included. Sample variance divides by n − 1 to correct the tendency of a sample mean to understate population spread.

Squaring removes signs

A value below the mean has a negative deviation and a value above it has a positive deviation. Squaring makes both contribute nonnegative amounts to spread.

The square root restores units

Variance is in squared units, such as points² or cm². Its square root, standard deviation, is in the original units.

Edge cases and limitations

  • Sample standard deviation is undefined for fewer than two observations.
  • A one-value population has standard deviation zero.
  • Identical observations have zero variance and standard deviation.
  • Non-finite values and inputs containing nonnumeric tokens are rejected instead of silently ignored.
  • At most 5,000 values are accepted in one calculation to keep the interactive chart responsive.

How this differs from a related concept

Range uses only the minimum and maximum, so it ignores how values between them are distributed. Standard deviation uses every observation's distance from the mean. The mean absolute deviation instead averages absolute distances and is less influenced by squaring large deviations.

Interpretation

Understand the result

A small standard deviation means values tend to lie close to the mean; a larger one means the values are more dispersed in the data's units. Standard deviation alone does not describe the shape of a distribution or guarantee that values follow a normal distribution. Inspect the histogram and the original observations as well.

Common mistakes

  • Using N for a sample when the goal is to estimate population variance; the standard sample formula uses n − 1.
  • Confusing variance with standard deviation; variance is in squared units, standard deviation is not.
  • Comparing standard deviations from data measured in different units without first converting units.
  • Assuming a small standard deviation proves the data are normally distributed.
  • Removing outliers without checking whether they are valid observations; extreme values can strongly affect standard deviation.

Frequently asked questions

Should I choose sample or population standard deviation?

Choose population if your list includes every member of the group you want to describe. Choose sample if the list is a subset used to estimate the spread of a larger population.

Why does the sample formula divide by n − 1?

The sample mean is estimated from the same observations, which tends to make squared deviations too small. Dividing by n − 1, called Bessel's correction, makes sample variance an unbiased estimator of population variance under the usual independent random-sampling assumptions.

Can standard deviation be negative?

No. Variance is nonnegative, and its square root is also nonnegative.

What does standard deviation tell me?

It gives a scale for the typical distance of observations from their mean. It is most directly interpreted alongside the data's units, distribution, and possible outliers.

Can I enter a frequency table?

This version treats each entered number as one observation. Repeat a value according to its frequency, or expand the data first; frequency-weighted input is not currently included.

References & technical sources

Keep calculating

Related calculators