Home/Calculator Tools/Standard Deviation Calculator
📊

Standard Deviation Calculator

FREE

Mean, variance and standard deviation — population and sample

Free · No sign-up required
Loading...

What the standard deviation calculator does

Paste a list of numbers — separated by commas, spaces or new lines — and the calculator returns the count, mean, variance and standard deviation, for both the population and sample definitions. Standard deviation measures how spread out the values are around the mean: a small value means the data cluster tightly, a large one means they are scattered. It is the most common measure of variability in statistics, finance, quality control and science.

The formulas

Mean μ = Σx / n Population variance σ² = Σ(x − μ)² / n Population SD σ = √σ² Sample variance s² = Σ(x − x̄)² / (n − 1) Sample SD s = √s²

The only difference is dividing by n or by n − 1. Use the population formula when your numbers are the entire group you care about (every student in one class). Use the sample formula when they are a sample drawn from a larger group and you want to estimate that group's spread (30 customers out of thousands). Dividing by n − 1 — Bessel's correction — compensates for the sample mean being closer to the sample points than the true mean is, which would otherwise underestimate the spread.

Worked example

xx − mean(x − mean)²
4−416
6−24
800
1024
12416
Σ = 40, n = 5, mean = 8Σ = 40
Population: σ² = 40 / 5 = 8 σ = √8 ≈ 2.828 Sample: s² = 40 / 4 = 10 s = √10 ≈ 3.162

How to read the number

For roughly bell-shaped data, the empirical rule applies: about 68% of values lie within one standard deviation of the mean, 95% within two, and 99.7% within three. If exam scores have a mean of 70 and SD of 8, most students scored between 62 and 78, and a score of 90 (2.5 SD above) is unusual. For skewed data — incomes, house prices, response times — the rule does not hold and the median with quartiles is often more informative.

Where it is used

  • Finance: the SD of returns is the standard measure of an investment's volatility (risk). A fund with 15% annual SD is expected to swing within ±15% of its average return about two years in three.
  • Quality control: Six Sigma aims for the specification limits to sit six SDs from the process mean, giving 3.4 defects per million.
  • Science: error bars on charts are often ±1 SD (or the standard error, SD ÷ √n).
  • Grading: z-scores — (score − mean) ÷ SD — put results from different tests on a common scale.
  • Weather and sport: comparing consistency, not just averages — two runners with the same mean time but different SDs are different athletes.

Related measures

MeasureWhat it isWhen to prefer it
VarianceSD squared; in squared unitsMathematical work, combining independent variances
RangeMax − minQuick look; very sensitive to outliers
Interquartile range75th − 25th percentileSkewed data, outliers present
Mean absolute deviationAverage of |x − mean|Intuitive; less common
Standard errorSD ÷ √nUncertainty of the mean, not spread of data
Coefficient of variationSD ÷ meanComparing spread across different scales

Frequently asked questions

Which should I use — population or sample?

If the numbers are everything you are describing, population. If they are a sample and you want to say something about the wider group, sample. When unsure, sample is the conservative choice and is what Excel's STDEV and most software default to.

Can standard deviation be negative?

No. It is a square root of a sum of squares, so it is zero or positive. Zero means every value is identical.

Why is my SD so large?

Usually one or two outliers — a typo like 1000 instead of 100 inflates it dramatically because deviations are squared. Check the data, or use the interquartile range.

How is SD different from standard error?

SD describes the spread of the data. Standard error (SD ÷ √n) describes how precisely the sample mean estimates the true mean; it shrinks as n grows, SD does not.

What formats does the input accept?

Numbers separated by commas, spaces, tabs or line breaks — so you can paste a column straight from a spreadsheet. Decimals and negatives are fine; non-numeric entries are ignored.

Is my data uploaded?

No. The statistics are computed in your browser.

More tools in this category

📊
Percentage Calculator
Quickly calculate percentages and ratios
📈
Percentage Change Calculator
Percentage increase or decrease between two values
🔬
Scientific Calculator
Trig, logs, powers and roots with correct operator precedence
Fraction Calculator
Add, subtract, multiply and divide fractions in lowest terms
🔄
Unit Converter
Length, weight, volume, temperature and speed between metric and imperial
🏠
Mortgage Calculator
Calculate monthly mortgage payments and amortization