Standard Deviation Calculator

Measure how spread out your numbers are — sample and population standard deviation, with every step shown.

—Sample std. deviation (s)
—Population std. deviation (σ)
—Mean
—Sample variance (s²)
—Population variance (σ²)
—Standard error of the mean
—Coefficient of variation
—Count
—Sum
xx − mean(x − mean)²

● Your files are processed locally in your browser and are not uploaded to our servers.

How to use the calculator

Paste your numbers, separated by commas, spaces or new lines (you can paste a column from Excel). You get the sample and population standard deviation, the variances, the mean, the standard error, the coefficient of variation, and a table with each value's distance from the mean.

Worked example

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

  1. Mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 40 ÷ 8 = 5.
  2. Squared distances from the mean: 9, 1, 1, 1, 0, 0, 4, 16. Sum = 32.
  3. Population variance: 32 ÷ 8 = 4 → σ = √4 = 2.
  4. Sample variance: 32 ÷ (8 − 1) = 4.571 → s = 2.138.

Sample or population?

Sample (s)Population (σ)
Divide byn − 1n
Use whenYour data is a sample of a bigger group (a survey, a test batch)You have every value of the group (all employees, all games of a season)
Excel=STDEV.S(A2:A100)=STDEV.P(A2:A100)

In most real-world cases you have a sample, so use s. Dividing by n − 1 (Bessel's correction) avoids underestimating the spread of the whole population.

How to interpret standard deviation

A small standard deviation means values are close to the mean; a large one means they are spread out. For data that follows a normal (bell-shaped) distribution:

Example: test scores with a mean of 70 and a standard deviation of 10 → about 95% of students scored between 50 and 90.

The other results

FAQ

Can standard deviation be negative?

No. It's a square root, so it's always zero or positive. Zero means all values are identical.

How do I calculate the average or median?

Use the Average Calculator or the Median Calculator.

Is my data sent anywhere?

No. All calculations happen in your browser.