Skip to content

Math

Standard Deviation Calculator

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

8 numbers read. Separate them with commas, spaces or new lines.

The numbers are a

Population: the numbers are every value you are interested in. The sum of squares is divided by N.

Population standard deviation, σ

4.8989794855664

σ² = 24, mean μ = 18, N = 8.

Standard deviation, σ
4.8989794855664
Count, N
8
Sum, Σx
144
Mean, μ
18
Variance, σ²
24
Standard error of the mean, σ/√N
1.7320508075689
Smallest value
10
Largest value
23

Steps

σ² = Σ(xi - μ)² / N

= (10 - 18)² + ... + (16 - 18)² / 8

= 192 / 8

= 24

σ = √24

= 4.8989794855664

Every deviation from the mean

Each value, its distance from the mean and the square of that distance
Value (xᵢ)xᵢ − μ(xᵢ − μ)²
10-864
12-636
23525
23525
16-24
23525
2139
16-24
Sum192

Margin of error (confidence interval)

Margin of error around the mean at each confidence level
Confidence levelMargin of errorRangeError bar
68.3% (1 × SEM)18 ±1.732 (±9.62%)16.268 to 19.732
90% (1.645 × SEM)18 ±2.849 (±15.83%)15.151 to 20.849
95% (1.960 × SEM)18 ±3.395 (±18.86%)14.605 to 21.395
99% (2.576 × SEM)18 ±4.462 (±24.79%)13.538 to 22.462
99.9% (3.291 × SEM)18 ±5.7 (±31.67%)12.3 to 23.7
99.99% (3.891 × SEM)18 ±6.739 (±37.44%)11.261 to 24.739
99.999% (4.417 × SEM)18 ±7.65 (±42.5%)10.35 to 25.65
99.9999% (4.892 × SEM)18 ±8.473 (±47.07%)9.527 to 26.473

Ranges are μ ± z × SEM, where SEM = σ / √N. This assumes the mean follows a normal distribution.

Frequency table

How often each value occurs
ValueFrequencyShare
101
12.5%
121
12.5%
162
25%
211
12.5%
233
37.5%

How to use

  1. Type or paste your numbers, separated by commas, spaces or new lines.
  2. Choose Population if the list is every value you care about, or Sample if it is part of a bigger group.
  3. Read the standard deviation, variance, mean and sum, the working, the margin of error at each confidence level and, when values repeat, the frequency table.

Formula

Mean = sum / N. Population variance = sum of (x - mean)^2 / N. Sample variance = sum of (x - mean)^2 / (N - 1). Standard deviation = square root of the variance. Standard error of the mean = SD / square root of N, and the margin of error is z x that, with z = 1.96 for 95%.

Example

For the marks 52, 61, 75, 75, 66, 75, 72, 66 the mean is 67.75 and the sum of squared distances is 475.5. As a population the variance is 59.44 and the standard deviation 7.71; as a sample the variance is 67.93 and the standard deviation 8.24.

A single number has no spread, so at least two are needed. The sample formula is the usual choice when you only measured some of a larger group; it is still biased for very small samples. Margins of error assume the mean is roughly normal, which is reasonable for larger samples. Do not use digit grouping such as 1,00,000 inside the list, because commas separate numbers.