Standard deviation calculator
Standard deviation measures how spread out numbers are around their mean. Paste your data and this calculator returns the mean, variance and standard deviation for both a population (σ, divide by n) and a sample (s, divide by n − 1), showing every step. For 2, 4, 4, 4, 5, 5, 7, 9, σ = 2 and s ≈ 2.138.
σ = 2, s ≈ 2.1381
Step by step
- Count the values
- Find the mean
- Square each distance from the mean
- Add the squares
- Population: divide by n, then take the square root
- Sample: divide by n − 1, then take the square root
How the standard deviation calculator works
- Mean: add the values and divide by how many there are.
- Deviations: subtract the mean from each value.
- Square each deviation, so negatives don’t cancel positives.
- Add the squares (the sum of squares).
- Divide: by for a population, by for a sample. This gives the variance.
- Square root of the variance gives the standard deviation.
Sample or population?
Use population () when your data is every member of the group you care about, such as the test scores of everyone in one class. Use sample () when your data is a subset used to estimate a bigger group, such as 50 students surveyed out of a whole school. Dividing by (Bessel’s correction) makes up for a sample usually underestimating the spread. In most homework and science labs, the sample version is expected unless the question says otherwise.
Reading the result
A small standard deviation means values sit close to the mean; a large one means they’re spread out. In roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean.
Common mistakes
- Forgetting to square the deviations (they’d sum to 0).
- Using when the question wants a sample.
- Reporting the variance instead of its square root.
Worked example: test scores (sample)
Five quiz scores:
- Mean:
- Squared deviations:
- Sum of squares:
- Sample variance:
Entering your data
Separate values with commas, spaces or new lines. You can paste a column straight from a spreadsheet. Negative numbers and decimals are fine. If you use a comma as the decimal mark (for example 2,5), separate the values with spaces or new lines instead of commas.
Frequently asked questions
What is the difference between sample and population standard deviation?
Population standard deviation divides the sum of squares by ; sample standard deviation divides by . Use sample when your data is a subset of a bigger group.
How do you calculate standard deviation by hand?
Find the mean, subtract it from each value, square the results, add them up, divide by (or for a sample), and take the square root.
What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9?
The population standard deviation is 2 and the sample standard deviation is about 2.138. The mean is 5.
Is variance the same as standard deviation?
No. Variance is the average squared deviation; standard deviation is its square root, so it's in the same units as your data.