Standard Deviation Calculator

Enter a list of numbers to calculate standard deviation, variance, mean, median, mode, and more. Results update instantly.

Separate numbers with commas or spaces. Example: 2 4 4 4 5 5 7 9

Enter at least two numbers to see statistics.

What Is Standard Deviation?

Standard deviation is one of the most widely used statistics in data analysis, science, finance, and everyday decision-making. It tells you how spread out the values in a data set are around the mean (average). A standard deviation of zero means all values are identical. A large standard deviation means the data is widely dispersed.

For example, consider two groups of test scores: Group A scores 70, 70, 70, 70, 70 and Group B scores 50, 60, 70, 80, 90. Both groups have a mean of 70, but Group A has a standard deviation of 0 (no variation) while Group B has a standard deviation of about 15.8 (wide spread). Standard deviation captures this difference that the mean alone cannot.

Population vs Sample Standard Deviation

There are two versions of the formula, and choosing the right one matters.

Population Standard Deviation (sigma)

Use this when your data set represents the entire population you are studying — every single member is included. The formula divides the sum of squared deviations by n (the total count). Examples: the heights of all players on a specific basketball team, the exact temperatures recorded by a sensor over one week, the scores of every student in a class.

Sample Standard Deviation (s)

Use this when your data is a random sample drawn from a larger population. The formula divides by (n - 1) instead of n. This adjustment, called Bessel's correction, compensates for the fact that a sample tends to underestimate the true spread of the population. Examples: polling 1,000 voters from millions, measuring 50 parts from a production run of thousands, a clinical study with 200 participants.

In practice, most real-world analysis uses sample standard deviation because you rarely have access to every data point in a population. Excel's STDEV() function calculates sample standard deviation, while STDEVP() calculates population standard deviation.

How Standard Deviation Is Calculated

The calculation follows these steps:

  1. Find the mean (average) of all values.
  2. For each value, subtract the mean and square the result.
  3. Find the average of those squared differences. For population SD, divide by n. For sample SD, divide by (n - 1). This average is called the variance.
  4. Take the square root of the variance. This is the standard deviation.

Variance

Variance is the square of the standard deviation. It measures the average squared distance from the mean. The problem with variance is that its units are squared — if you are measuring weights in kilograms, the variance is in kilograms squared, which is difficult to interpret. Standard deviation solves this by taking the square root, returning to the original unit.

Both population variance and sample variance follow the same relationship to their respective standard deviations: variance = SD squared.

Standard Error of the Mean

The standard error of the mean (SEM) estimates how much the sample mean is likely to vary from the true population mean. It equals the sample standard deviation divided by the square root of n. As sample size increases, SEM decreases — larger samples give you a more reliable estimate of the population mean. SEM is widely used in scientific papers to indicate measurement precision and to construct confidence intervals.

Mean, Median, Mode, and Range

This calculator also computes descriptive statistics that give additional context about your data set:

  • Mean — the arithmetic average: sum of all values divided by count.
  • Median — the middle value when data is sorted. Less affected by extreme outliers than the mean.
  • Mode — the value that appears most frequently. A data set can have no mode (all values appear once), one mode, or multiple modes.
  • Range — the difference between the maximum and minimum values. A simple measure of spread.

Real-World Applications

Standard deviation appears in many fields:

  • Finance — measuring investment volatility. A stock with high SD carries more risk.
  • Quality control — monitoring manufacturing consistency. Six Sigma processes target fewer than 3.4 defects per million.
  • Medicine — clinical trials report mean and SD to describe treatment effects.
  • Education — grading on a curve uses mean and SD to normalize scores.
  • Weather — climate scientists use SD to measure how much temperatures deviate from historical averages.
  • Sports — player consistency is measured by SD of their performance statistics.

FAQ

Standard deviation is a measure of how spread out numbers are around the mean. A low standard deviation means values are close to the mean; a high standard deviation means they are spread over a wider range. It is the square root of variance.
Population standard deviation (sigma) is used when your data set contains every member of the group you are studying. Sample standard deviation (s) is used when your data is a subset of a larger population. Sample SD divides by (n - 1) instead of n to correct for bias — this is called Bessel's correction.
Use population standard deviation when you have data for every member of the group (e.g., all test scores in a class, every product off an assembly line). Use sample standard deviation when your data is a random sample from a larger group (e.g., a survey of 1,000 voters, a clinical trial with a subset of patients). When in doubt, use sample standard deviation.
Variance is the average of the squared differences from the mean. Standard deviation is the square root of variance. Variance uses squared units, which are harder to interpret directly, so standard deviation is preferred for communication because it returns to the original unit of measurement.
The standard error of the mean (SEM) measures how precisely the sample mean estimates the true population mean. It equals sample standard deviation divided by the square root of n. A smaller SEM indicates a more reliable sample mean estimate. SEM decreases as sample size increases.