Skip to content
Advanced Calculator logo

Standard Deviation Calculator

Paste or type a list of numbers to get the standard deviation, variance, mean, median and range, with the working shown, a margin of error for the mean and a frequency table. Handles both samples and whole populations.

Your numbers

Separate values with commas, spaces or new lines — pasting a spreadsheet column works.

These numbers are

Divides by n − 1 (Bessel's correction) to estimate the spread of a larger group.

Result
Sample standard deviation (s)
5.237229
Count (n)8
Sum144
Mean (μ)18
Median18.5
Variance (s²)27.428571
Smallest10
Largest23
Range13
Standard errorStandard deviation ÷ √n1.85164
How it was worked out
  1. 1. Mean: 144 ÷ 8 = 18
  2. 2. Squared deviations: subtract the mean from each value, square it, and add them up: Σ(x − μ)² = 192
  3. 3. Variance: 192 ÷ (8 − 1) = 27.428571
  4. 4. Standard deviation: s = √27.428571 = 5.237229
Margin of error for the mean
ConfidenceMarginRange for the mean
68.3%±1.8516416.14836 to 19.85164
90%±3.04567814.954322 to 21.045678
95%±3.62914814.370852 to 21.629148
99%±4.76950913.230491 to 22.769509
99.9%±6.09287211.907128 to 24.092872

Uses the normal distribution (z-scores). For small samples a t-distribution gives slightly wider ranges.

Frequency table
ValueCountShare
23337.5%
16225%
10112.5%
12112.5%
21112.5%

How to use this calculator

  1. Enter your numbers separated by commas, spaces or new lines. You can paste a column straight from a spreadsheet.
  2. Say whether they are a sample or the whole population.This decides whether the variance divides by n − 1 or by n.
  3. Read the results as you type. Anything that is not a number is skipped and listed so you can fix it.

The formulas

Population: σ = √( Σ(x − μ)² ÷ N )

Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )

Standard error = SD ÷ √n

Margin of error = z × standard error

The calculator finds the mean first and then sums the squared distances from it. This two-pass method stays accurate even when the values are large and close together, where the shortcut formula can lose most of its precision.

Worked example

Eight test results: 10, 12, 23, 23, 16, 23, 21, 16.

  • Mean: 144 ÷ 8 = 18
  • Squared deviations: 64, 36, 25, 25, 4, 25, 9, 4 — total 192
  • Population variance: 192 ÷ 8 = 24, so σ = √24 ≈ 4.899
  • Sample variance: 192 ÷ 7 ≈ 27.43, so s ≈ 5.237

Frequently asked questions