Standard Deviation Calculator (2026)

Standard deviation tells you how spread out a set of numbers is around its average — a value used everywhere from grading curves and lab results to stock volatility and quality control. Enter any list of numbers below and this calculator instantly returns the mean, variance, and both population and sample standard deviation, with every intermediate step shown so you can check your work or actually understand the math, not just get an answer.

Quick Answer
Standard deviation = square root of the average squared distance of each data point from the mean.

Population formula: σ = √(Σ(x − μ)² / N)
Sample formula: s = √(Σ(x − x̄)² / (n − 1))

Use the sample formula unless your data represents literally every member of the group you're studying — in almost all real-world statistics (surveys, experiments, test scores from a subset of students), the sample formula is correct.
This calculator computes descriptive statistics using standard formulas taught in introductory statistics: the arithmetic mean, sum of squared deviations, population variance/standard deviation (dividing by N), and sample variance/standard deviation with Bessel's correction (dividing by n − 1). These definitions match those used in AP Statistics, most college-level statistics courses, and standard references such as NIST's Engineering Statistics Handbook.
▼ Enter your data set
Data
Numbers (comma, space, or line-separated):
Calculation Type
Standard Deviation:
Count (n)
Sum
Mean
Variance
Value (x)Deviation (x − mean)Squared Deviation

What Is Standard Deviation?

Standard deviation is a measure of how much individual values in a data set typically differ from the data set's mean (average). It answers a simple but essential question: are these numbers clustered tightly together, or spread far apart? A small standard deviation means most values sit close to the average; a large standard deviation means values are widely scattered.

  • Standard deviation is expressed in the same units as the original data (dollars, points, cm, etc.)
  • It is the square root of variance — variance is harder to interpret because it's in squared units
  • A standard deviation of 0 means every value in the data set is exactly identical
  • Two data sets can share the same mean but have very different standard deviations
  • Standard deviation is one of the most widely used measures of statistical dispersion
  • It underlies concepts like z-scores, confidence intervals, and control charts in quality management

Population vs. Sample Formulas

There are two versions of the standard deviation formula, and choosing the right one matters:

Population standard deviation: σ = √( Σ(xᵢ − μ)² / N )
Sample standard deviation: s = √( Σ(xᵢ − x̄)² / (n − 1) )
PropertyPopulation (σ, N)Sample (s, n − 1)
Use when...Your data covers the entire group of interestYour data is a subset used to estimate a larger population
DenominatorN (total count)n − 1 (Bessel's correction)
Typical examplesEvery student's score in one specific class examA survey sample used to estimate a country's average
Result vs. true valueExact, if data is the full populationUnbiased estimator of the population value

Why divide by n − 1 for a sample? Because a sample's own mean is calculated from the same data used to measure spread, the sample slightly underestimates the true population variance. Dividing by a slightly smaller number (n − 1 instead of n) corrects for this bias — a technique known as Bessel's correction.

How to Calculate Standard Deviation (Step by Step)

  • Step 1: Find the mean (average) of all values — add them up and divide by the count.
  • Step 2: Subtract the mean from each value to get each value's deviation.
  • Step 3: Square every deviation (this removes negative signs and emphasizes larger gaps).
  • Step 4: Add up all the squared deviations.
  • Step 5: Divide that sum by N (population) or n − 1 (sample) to get the variance.
  • Step 6: Take the square root of the variance — that result is the standard deviation.

Worked Example

EXAMPLE
Data set: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8)

Mean = (2+4+4+4+5+5+7+9) / 8 = 40 / 8 = 5
Deviations: −3, −1, −1, −1, 0, 0, 2, 4
Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16 → sum = 32
Population variance = 32 / 8 = 4 → Population SD = √4 = 2
Sample variance = 32 / 7 ≈ 4.571 → Sample SD = √4.571 ≈ 2.138

Try this exact data set in the calculator above (it's the pre-filled default) to see every step reproduced automatically.

Variance vs. Standard Deviation

Variance is the average of the squared deviations — it's the number you compute right before taking the final square root. The problem with variance on its own is that it's expressed in squared units (e.g. "dollars squared," which has no intuitive meaning), so standard deviation — the square root of variance — is almost always the number reported and interpreted, because it returns to the original, meaningful unit of the data.

Interpreting Results: The Empirical Rule

For data that follows a roughly normal (bell-curve) distribution, the 68-95-99.7 empirical rule gives a fast way to interpret standard deviation:

RangeApprox. % of Data Contained
Mean ± 1 standard deviation≈ 68%
Mean ± 2 standard deviations≈ 95%
Mean ± 3 standard deviations≈ 99.7%

This is why a value more than 2–3 standard deviations from the mean is often flagged as an outlier — under a normal distribution, such values are rare.

Standard Deviation vs. Standard Error

These two terms are commonly confused. Standard deviation describes the spread of the individual data points themselves. Standard error of the mean (SEM) describes how precisely your sample mean estimates the true population mean, and is calculated as SEM = s / √n. As your sample size increases, standard deviation stays roughly the same (it reflects the population's true spread), but standard error shrinks — larger samples give more precise estimates of the mean.

Real-World Uses

FieldHow Standard Deviation Is Used
Finance & investingMeasures volatility/risk of a stock, fund, or portfolio's returns
EducationInterprets test score spread; underlies grading on a curve and z-scores
Manufacturing & QAPowers control charts to detect when a process drifts out of tolerance
Sports analyticsMeasures consistency of a player's or team's performance over time
Scientific researchReports variability alongside means; feeds into confidence intervals
Weather & climateDescribes how much temperatures typically vary from seasonal averages

Common Mistakes

  • Using the wrong formula. Applying the population formula (÷N) to sample data slightly understates the true variability — use the sample formula (÷n−1) unless you truly have the full population.
  • Forgetting to square deviations. Averaging raw (unsquared) deviations always produces zero, because positive and negative deviations cancel out.
  • Confusing variance and standard deviation. Variance is in squared units; take the square root to get standard deviation, the interpretable version.
  • Treating standard deviation and standard error as interchangeable. They measure different things — see the dedicated section above.
  • Assuming the empirical rule always applies. The 68-95-99.7 rule only holds for approximately normal distributions — skewed data won't follow it precisely.

Limitations of This Calculator

  • Assumes numeric, one-dimensional data. Enter plain numbers only; this tool does not handle grouped/binned frequency data.
  • Requires at least 2 values for a sample calculation. Sample standard deviation is undefined for n = 1 (division by n − 1 = 0).
  • Descriptive statistics only. This tool does not perform hypothesis tests, confidence intervals, or regression — it computes mean, variance, and standard deviation only.
  • Sensitive to outliers. Like the mean, standard deviation can be heavily influenced by a small number of extreme values.

Glossary

Mean (x̄ or μ)
The arithmetic average of a data set — the sum of all values divided by the count.
Deviation
The difference between an individual data point and the mean of the data set.
Variance
The average of the squared deviations from the mean; standard deviation is its square root.
Bessel's Correction
Dividing by n − 1 instead of n when calculating sample variance/standard deviation, to correct for bias in estimating the population value.
Empirical Rule (68-95-99.7)
A guideline for normally distributed data describing what percentage of values fall within 1, 2, and 3 standard deviations of the mean.
Standard Error (SEM)
A measure of how precisely a sample mean estimates the true population mean; equals standard deviation divided by the square root of sample size.
Outlier
A data point that lies unusually far from the mean, often flagged when it exceeds roughly 2–3 standard deviations away.

Frequently Asked Questions

Q: What is the formula for standard deviation?

A: Population: σ = √(Σ(x − μ)² / N). Sample: s = √(Σ(x − x̄)² / (n − 1)).

Q: What is the difference between population and sample standard deviation?

A: Population divides by N; sample divides by n − 1 to correct for bias when your data is only a subset of a larger group.

Q: What does a high or low standard deviation mean?

A: Low means values cluster near the mean; high means values are spread out over a wider range.

Q: What is the empirical rule (68-95-99.7 rule)?

A: For normal distributions, about 68% of data falls within 1 standard deviation of the mean, 95% within 2, and 99.7% within 3.

Q: Is standard deviation the same as standard error?

A: No — standard deviation measures spread of raw data; standard error measures precision of a sample mean estimate (SD ÷ √n).

Q: Why do we square the deviations instead of just averaging them?

A: Because raw deviations always average to zero — squaring makes every value positive so spread can actually be measured.

Q: Can standard deviation be negative?

A: No, it's always zero or positive, since it's a square root of an average of squared values.

This tool is provided for general educational and informational use. For research, academic, or regulatory statistical reporting, verify results against dedicated statistical software.