Math & Education
Standard Deviation Calculator (Sample & Population)
Find the standard deviation and variance of a data set — sample (n − 1) and population (n) — with the mean, sum of squares and step-by-step working.
How to use
- 1Paste your numbers separated by commas, spaces or new lines.
- 2Choose sample or population.
- 3Read the standard deviation, variance and the working table.
How it's calculated
Mean x̄ = Σx ÷ n. Sample variance s² = Σ(x − x̄)² ÷ (n − 1); population variance σ² = Σ(x − x̄)² ÷ n. Standard deviation is the square root of the variance.
Frequently asked questions
Sample or population?
Use population if your data includes every member of the group you care about. If it's a sample used to estimate a larger group, use sample (it divides by n − 1).
Why divide by n − 1?
A sample tends to underestimate spread, because its own mean sits closer to its values than the true mean does. Dividing by n − 1 (Bessel's correction) corrects that bias.
What does the standard deviation tell me?
How spread out the values are around the mean, in the same units as the data. In a roughly normal distribution about 68% of values fall within one standard deviation of the mean.
Sample vs population in one example
For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squared deviations add up to 32. Divide by n = 8 and the population variance is 4, so σ = 2. Treat the same numbers as a sample and divide by n − 1 = 7: the variance becomes 4.571 and s = 2.138. The smaller the sample, the bigger that difference.
Reading the result
Standard deviation is in the same units as your data, so a test with a mean of 70 and a standard deviation of 10 means most scores sit roughly between 60 and 80. Variance is the square of that, which is why it's used in formulas but rarely reported on its own.
Related tools
- Mean, Median & Mode Calculator
Paste a list of numbers to get the mean, median, mode, range, sum, standard deviation, variance and quartiles instantly.
- Marks Percentage Calculator
Convert obtained marks into a percentage — for a single exam or a whole result card with several subjects.
- GPA Calculator
Calculate your GPA on a 4.0 scale from letter grades or grade points and credit hours — and your cumulative GPA including previous semesters.
- Scientific Notation Converter
Convert numbers to and from scientific notation (e.g. 0.000452 = 4.52 × 10⁻⁴) and engineering notation, with a chosen number of significant figures.
- Z-Score & Percentile Calculator
Convert a value to a z-score and percentile from the mean and standard deviation — or a percentile back to a value — using the normal distribution.
- T-Test Calculator (Two Samples)
Compare the means of two groups with Welch's t-test (or Student's pooled test) from raw data — t-statistic, degrees of freedom, p-value and mean difference.