📊

Standard Deviation Calculator

Enter your numbers below. Get standard deviation, variance, mean, median, mode, range, and step-by-step work — all updating live.

📊

Enter your data set above

Separate numbers with commas, spaces, or newlines

What Is Standard Deviation and How to Calculate It

Standard deviation is one of the most widely used measures of variability in statistics. It quantifies how spread out a set of numbers is relative to the average (mean). A small standard deviation means the data points cluster tightly around the mean, while a large standard deviation means they are widely dispersed. Understanding standard deviation is essential for anyone working with data — whether you are a student analyzing lab results, an investor evaluating portfolio risk, or a quality engineer monitoring manufacturing tolerances.

Population vs. Sample Standard Deviation

The key distinction when computing standard deviation is whether your data represents an entire population or a sample drawn from a larger population. Population standard deviation (σ) divides by N, the total number of data points. Sample standard deviation (s) divides by N − 1, applying what is known as Bessel's correction. This adjustment compensates for the fact that a sample tends to underestimate the true variability of the population, producing an unbiased estimate of the population variance.

Use the population formula when you have measured every single member of the group — for example, the heights of all 30 students in a classroom. Use the sample formula when you have a subset — for example, the heights of 100 randomly selected adults from a city of one million people.

The Standard Deviation Formula Step by Step

Regardless of whether you use the population or sample version, the calculation follows the same core steps:

  1. Find the mean — add all values and divide by the count (N).
  2. Compute deviations — subtract the mean from each value to see how far each point sits from the center.
  3. Square the deviations — squaring removes negative signs and gives extra weight to outliers.
  4. Sum the squared deviations — combine all the squared differences into a single total.
  5. Divide — by N for population variance, or by N − 1 for sample variance.
  6. Take the square root — the result is the standard deviation, expressed in the same units as the original data.

For example, given the data set {4, 8, 6, 5, 3}, the mean is 5.2. The squared deviations are 1.44, 7.84, 0.64, 0.04, and 4.84, which sum to 14.8. Dividing by 5 (population) gives a variance of 2.96, and the square root is σ ≈ 1.72. Dividing by 4 (sample) gives a variance of 3.7, and s ≈ 1.92.

Practical Use Cases

Standard deviation appears in virtually every discipline that deals with data. In finance, it measures investment volatility — a stock with a standard deviation of 20% in annual returns is far riskier than one at 5%. In manufacturing, it drives Six Sigma quality control by tracking how far products deviate from specifications. In education, standardized test scores use standard deviation to define score bands and percentiles. In science, error bars on charts almost always represent one or two standard deviations from the mean, giving readers a visual sense of data reliability.

Related Measures: Variance, Range, and Mean

Variance is simply the standard deviation squared — it is used more often in theoretical statistics because it has convenient mathematical properties. Range (max minus min) is the simplest measure of spread but is heavily influenced by outliers. The mean provides the center of the data, and standard deviation tells you how far, on average, values fall from that center. Together, the mean and standard deviation give a compact two-number summary of any data set.

Frequently Asked Questions

What is the difference between population and sample standard deviation?
Population standard deviation (σ) divides by N, the total count. Sample standard deviation (s) divides by N − 1 to correct for the bias introduced by estimating the population mean from a sample. If your data includes every member of the group, use population; if it is a subset, use sample.

When should I use sample vs. population standard deviation?
Use population when your data set covers the entire group you are studying — for example, final exam scores for all students in a class. Use sample when your data is drawn from a larger group — for example, survey responses from 200 out of 10,000 customers.

What does a high standard deviation mean?
A high standard deviation indicates that data points are spread far from the mean, suggesting high variability. A low standard deviation means values are tightly clustered around the mean, suggesting consistency.

Can standard deviation be zero?
Yes. A standard deviation of zero means every data point is identical — there is no variation at all.

Is this calculator free to use?
Yes. This standard deviation calculator runs entirely in your browser with no ads, no signup, and no data collection. Your numbers never leave your device.