Standard Deviation Calculator — Mean & Variance
Enter any list of numbers to instantly calculate the mean, variance, and both population and sample standard deviation ā with the formula shown.
📊 Enter Your Data Set
📊 Result
Disclaimer: This tool performs standard mathematical calculations for educational and reference purposes. Always double-check results independently for graded coursework, exams, or safety-critical applications.
What Standard Deviation Measures
Standard deviation tells you how spread out a set of numbers is from the average. A small standard deviation means most values cluster tightly around the mean; a large one means the values are spread widely. It's the square root of variance, which puts the result back into the same units as your original data (variance is squared units, which is harder to interpret directly).
Population vs. Sample Standard Deviation
Use population standard deviation (divides by n) when your data set already represents the entire group you care about — every student in a class, every transaction in a month. Use sample standard deviation (divides by n−1) when your data is a sample drawn from a larger population and you're estimating that population's spread — a survey of 200 customers out of 50,000, for example. The n−1 adjustment (Bessel's correction) corrects for the fact that a sample slightly underestimates the true population variance.
Worked Example
Data set: 2, 4, 4, 4, 5, 5, 7, 9 (8 values).
- Step 1 — Mean: (2+4+4+4+5+5+7+9) / 8 = 40 / 8 = 5
- Step 2 — Squared differences from mean: 9, 1, 1, 1, 0, 0, 4, 16 (sum = 32)
- Step 3 — Population variance: 32 / 8 = 4, so population SD = √4 = 2
- Step 4 — Sample variance: 32 / 7 ≈ 4.571, so sample SD ≈ 2.138
A Second Worked Example: Test Scores and the Effect of an Outlier
Enter eight quiz scores: 10, 12, 23, 23, 16, 23, 21, 16. The tool reports n = 8, a sum of 144 and a mean of 18. The squared differences from the mean add up to 192, so the population variance is 192 ÷ 8 = 24 and the population standard deviation is 4.8990. The sample variance is 192 ÷ 7 = 27.4286, giving a sample standard deviation of 5.2372. If these eight scores were every score in a small class, report the first figure; if they were a sample from a bigger group, report the second.
Now see how one extreme value changes things. The set 1, 2, 3, 4, 100 has a mean of 22, a population SD of 39.0128 and a sample SD of 43.6177. Yet four of the five values sit between 1 and 4. A single outlier can dominate the result, so look at the mean and the spread together. For a very small set such as 5, 9 the tool gives a population SD of 2.0000 but a sample SD of 2.8284, showing how much the n−1 correction matters when data is scarce.
Common Mistakes
- Using the wrong type for the situation. The headline figure is the population value. If your numbers are a sample, read the sample line instead.
- Entering a single number. At least two values are needed, because the sample formula divides by n−1.
- Mixing units or scales in one list. Combining prices in rupees with prices in thousands, or minutes with hours, produces a spread that means nothing.
- Ignoring outliers. One mistyped value, such as 100 instead of 10, can inflate the standard deviation dramatically. Scan the list before trusting the result.
- Comparing standard deviations of datasets with very different means. A spread of 5 means something different around an average of 20 than around an average of 2,000.
Where You Would Use This
- Classroom results: seeing whether marks are tightly grouped or widely spread.
- Quality checks: measuring how consistent the weight or length of items from a production run is.
- Investment and sales data: describing how much monthly figures vary around the average.
- Science and survey work: reporting variability alongside the mean in a lab report.
Frequently Asked Questions
Calculators that use the same maths
They all build on the mean and standard deviation of a data set.