Standard Deviation Calculator

Paste a list of numbers to get the standard deviation, variance and mean — sample or population — with every step of the working shown.

Free, no sign-upRuns in your browserUpdated November 2026
Separate numbers with commas, spaces, semicolons or new lines. You can paste a column from a spreadsheet.
Data is a…
Sample standard deviation (s)
—
Mean (x̄)
—
Sample variance (s²)
—
Population SD (σ)
—
Sample SD (s)
—
Count (n)
—
Sum
—
Min – Max
—
Std. error of mean
—

Spread around the mean
RangeNormal distributionFromToYour data inside
Step-by-step working
#xx − x̄(x − x̄)²

How to use the Standard Deviation Calculator

  1. Type or paste your numbers into the box — commas, spaces, semicolons and new lines all work as separators.
  2. Choose Sample if your data is a subset of a larger group (most common), or Population if it is every member.
  3. Read the standard deviation, variance and mean. Both the sample and population figures are always shown for comparison.
  4. Check the step-by-step working and the table of squared deviations; copy the steps or export the table to CSV.
  5. Optionally enter a value to see its z-score — how many standard deviations it sits from the mean.

What standard deviation tells you

Standard deviation measures how spread out numbers are around their average. A small standard deviation means values cluster tightly around the mean; a large one means they are widely scattered. Two classes can both average 70% on a test, but if one has an SD of 3 and the other an SD of 15, they performed very differently. Because standard deviation is in the same units as your data, it is easier to interpret than variance, which is in squared units.

The formulas

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

Both follow the same steps: find the mean, subtract it from every value, square those deviations, add them up (the sum of squares), divide, and take the square root. The only difference is the divisor.

Sample or population?

  • Use population (N) when your data includes every member of the group you care about — for example, the heights of all 25 students in one class when the class is all you want to describe.
  • Use sample (n − 1) when your data is a subset used to estimate a larger group — a survey of 500 voters, 30 parts pulled from a production line, or a clinical trial cohort.

Dividing by n − 1 is called Bessel’s correction. A sample’s values sit, on average, closer to their own mean than to the true population mean, so dividing by n would systematically underestimate the variance. If in doubt, use the sample formula: it is the default in most statistics software and in spreadsheet functions such as STDEV.S (the population version is STDEV.P).

Worked example

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

xx − x̄(x − x̄)²
2−39
4 (×3)−11 each → 3
5 (×2)00
724
9416
Σ032
  1. Mean: 40 ÷ 8 = 5.
  2. Sum of squared deviations: 9 + 3 + 0 + 4 + 16 = 32.
  3. Population variance: 32 ÷ 8 = 4, so σ = 2.
  4. Sample variance: 32 ÷ 7 ≈ 4.5714, so s ≈ 2.1381.

The value 9 has a z-score of (9 − 5) ÷ 2.1381 ≈ 1.87 using the sample SD, so it lies almost two standard deviations above the mean.

Interpreting standard deviation

For data that is roughly bell-shaped (normally distributed), the 68–95–99.7 rule applies:

RangeShare of values (normal distribution)
mean ± 1 SDabout 68%
mean ± 2 SDabout 95%
mean ± 3 SDabout 99.7%

The calculator compares your own data with these benchmarks. Skewed data or data with outliers will not match them, which is itself a useful signal.

The z-score, z = (x − mean) ÷ SD, standardises a value so you can compare across different scales — for example, a score on one exam against a score on another. Values beyond ±2 are unusual and beyond ±3 are rare in normal data. The coefficient of variation (SD ÷ mean) expresses spread as a percentage of the mean, and the standard error of the mean (s ÷ √n) shows how precisely a sample mean estimates the population mean.

Common mistakes

  • Using the population formula on sample data, which understates the spread — most noticeable for small samples.
  • Forgetting to take the square root and reporting the variance as the SD.
  • Letting one outlier dominate: because deviations are squared, a single extreme value can inflate the SD a lot. Check the step table for the largest (x − x̄)².

Need just the mean, median or mode? Try the average calculator.

Frequently asked questions

What is the difference between sample and population standard deviation?
Population SD divides the sum of squared deviations by N, the number of values. Sample SD divides by n − 1 (Bessel’s correction) to correct the bias that comes from estimating the mean from the same sample. Use sample SD unless your data covers the entire group.
How do I calculate standard deviation by hand?
Find the mean, subtract it from each value, square the results, add them up, divide by n − 1 (sample) or N (population), then take the square root. The step table on this page shows each of these numbers for your data.
What is a good or low standard deviation?
There is no universal threshold; it depends on the scale and the context. Compare the SD with the mean (the coefficient of variation) or with other datasets measured in the same units. A lower SD simply means more consistent values.
What is the relationship between variance and standard deviation?
Standard deviation is the square root of variance. Variance is in squared units (e.g. cm²), so the standard deviation, in the original units, is usually easier to interpret.
Can standard deviation be negative?
No. It is the square root of an average of squared numbers, so it is always zero or positive. It is zero only when every value is identical.
What does a z-score mean?
A z-score shows how many standard deviations a value is above (positive) or below (negative) the mean. A z-score of 1.5 means the value is one and a half standard deviations above average.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.