Statistics & Probability
Standard Deviation Calculator
Paste or type your numbers, choose sample or population, and get the standard deviation and variance with the mean, squared deviations and division shown.
- Population variance 4
- Mean 5
- Sample SD: 2.13809
- n = 8
Step-by-step working 4 steps
- 1Find the mean
x̄ = Σx ÷ n = 40 ÷ 8 = 5
- 2Squared deviations from the mean
(2 − 5)² = 9 (4 − 5)² = 1 (4 − 5)² = 1 (4 − 5)² = 1 (5 − 5)² = 0 (5 − 5)² = 0 (7 − 5)² = 4 (9 − 5)² = 16 Σ(x − x̄)² = 32
Square each distance from the mean so negatives do not cancel positives, then add them all (the sum uses every value).
- 3Population variance: divide by n
σ² = 32 ÷ 8 = 4
Use n when your data is the entire group.
- 4Standard deviation: take the square root
σ = √4 = 2
How to use the standard deviation calculator
- Enter your data.
- Choose sample or population.
- Follow the mean, squared deviations and variance.
- Read the standard deviation.
Formulas
Mean x̄ = Σx ÷ n Population σ = √(Σ(x − μ)² ÷ n) Sample s = √(Σ(x − x̄)² ÷ (n − 1)) Variance = SD²
For roughly bell-shaped data, about 68% of values lie within 1 SD of the mean and about 95% within 2.
Worked examples
Each example below is generated by the same calculator you used above, so the working always matches the answer.
2, 4, 4, 4, 5, 5, 7, 9 (population)
- Population variance 4
- Mean 5
- Sample SD: 2.13809
- n = 8
Step-by-step working 4 steps
- 1Find the mean
x̄ = Σx ÷ n = 40 ÷ 8 = 5
- 2Squared deviations from the mean
(2 − 5)² = 9 (4 − 5)² = 1 (4 − 5)² = 1 (4 − 5)² = 1 (5 − 5)² = 0 (5 − 5)² = 0 (7 − 5)² = 4 (9 − 5)² = 16 Σ(x − x̄)² = 32
Square each distance from the mean so negatives do not cancel positives, then add them all (the sum uses every value).
- 3Population variance: divide by n
σ² = 32 ÷ 8 = 4
Use n when your data is the entire group.
- 4Standard deviation: take the square root
σ = √4 = 2
Same data as a sample
- Sample variance 4.571429
- Mean 5
- Population SD: 2
- n = 8
Step-by-step working 4 steps
- 1Find the mean
x̄ = Σx ÷ n = 40 ÷ 8 = 5
- 2Squared deviations from the mean
(2 − 5)² = 9 (4 − 5)² = 1 (4 − 5)² = 1 (4 − 5)² = 1 (5 − 5)² = 0 (5 − 5)² = 0 (7 − 5)² = 4 (9 − 5)² = 16 Σ(x − x̄)² = 32
Square each distance from the mean so negatives do not cancel positives, then add them all (the sum uses every value).
- 3Sample variance: divide by n − 1
s² = 32 ÷ 7 = 4.571429
Dividing by n − 1 corrects for a sample tending to understate the spread of the whole group.
- 4Standard deviation: take the square root
s = √4.571429 = 2.13809
Test scores
- Sample variance 96.809524
- Mean 80.857143
- Population SD: 9.109313
- n = 7
Step-by-step working 4 steps
- 1Find the mean
x̄ = Σx ÷ n = 566 ÷ 7 = 80.857143
- 2Squared deviations from the mean
(72 − 80.857143)² = 78.44898 (85 − 80.857143)² = 17.163265 (90 − 80.857143)² = 83.591837 (66 − 80.857143)² = 220.734694 (78 − 80.857143)² = 8.163265 (94 − 80.857143)² = 172.734694 (81 − 80.857143)² = 0.020408 Σ(x − x̄)² = 580.857143
Square each distance from the mean so negatives do not cancel positives, then add them all (the sum uses every value).
- 3Sample variance: divide by n − 1
s² = 580.857143 ÷ 6 = 96.809524
Dividing by n − 1 corrects for a sample tending to understate the spread of the whole group.
- 4Standard deviation: take the square root
s = √96.809524 = 9.839183
Tight data
- Population variance 0.4
- Mean 10
- Sample SD: 0.707107
- n = 5
Step-by-step working 4 steps
- 1Find the mean
x̄ = Σx ÷ n = 50 ÷ 5 = 10
- 2Squared deviations from the mean
(10 − 10)² = 0 (10 − 10)² = 0 (11 − 10)² = 1 (9 − 10)² = 1 (10 − 10)² = 0 Σ(x − x̄)² = 2
Square each distance from the mean so negatives do not cancel positives, then add them all (the sum uses every value).
- 3Population variance: divide by n
σ² = 2 ÷ 5 = 0.4
Use n when your data is the entire group.
- 4Standard deviation: take the square root
σ = √0.4 = 0.632456
Where you will use this
- AP Statistics and intro college statistics homework
- Comparing the consistency of two sets of scores
- Science-lab measurement spread
Common mistakes to avoid
Using n instead of n − 1 for a sample
A sample tends to understate spread; dividing by n − 1 corrects that.
Forgetting the final square root
The variance is in squared units. Take its square root to get the standard deviation.
Subtracting without squaring
Deviations from the mean add to zero, so they must be squared first.
Frequently asked questions
What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9?
The mean is 5 and the population standard deviation is 2. The sample standard deviation is about 2.138.
What is the difference between sample and population standard deviation?
Population divides the sum of squares by n; sample divides by n − 1.
Can standard deviation be negative?
No. It is a square root, so it is zero or positive.
Related calculators
Mean, Median & Mode Calculator
Mean, median, mode, range and standard deviation.
Conditional Probability Calculator
P(A | B), Bayes’ theorem and test-accuracy questions.
Binomial Probability Calculator
Exactly, at most or at least k successes in n trials.
Probability Calculator
One event, both events or either event.
Permutation & Combination Calculator
nPr, nCr and repetition cases, exact for big numbers.
Percentage Calculator
% of a number, what percent, original value and % change.
Browse everything in Statistics & Probability or the full calculator list.