Standard Deviation Calculator
Standard Deviation Calculator
Sample and population standard deviation, variance and mean — with every step, so you can check which formula your teacher or report expects.
Your result
Formula
Mean = sum / count. Variance (population) = sum of (value − mean)² / n. Variance (sample) = sum of (value − mean)² / (n − 1). Standard deviation = square root of the variance.
How to use this calculator
Choose whether your numbers are a sample of a larger group or the whole population — the divisor changes (n − 1 for a sample, n for a population). Then paste or type your numbers, separated by commas, spaces or new lines. The calculator shows both versions, so you can compare them.
Worked example
Example: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5 and the squared distances from it add up to 32. The population variance is 32 / 8 = 4, so the population standard deviation is 2. The sample variance is 32 / 7 = 4.5714, so the sample standard deviation is 2.1381.
Frequently asked questions
The mean tells you where the centre is; the standard deviation tells you how spread out the values are around it, in the same units as the data. A class scoring 78–82 has a small standard deviation; a class scoring 40–100 has a large one. The one choice that matters is sample or population: the population version divides by n, the sample version by n − 1, and picking the wrong one is the most common student mistake. This calculator shows both, so you can compare them.
Try the worked example: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5 and the squared distances from it add up to 32. The population variance is 32 / 8 = 4, so the population standard deviation is 2. The sample variance is 32 / 7 = 4.5714, so the sample standard deviation is 2.1381. The steps are the same for any list: mean first, then each distance from the mean, squared, added, divided, square-rooted.
Pick population if your list is every value you care about — every score in one class, every measurement in one experiment. Pick sample if your numbers are a subset drawn from a bigger group whose spread you want to estimate. When the data are roughly bell-shaped, about two-thirds of values fall within one standard deviation of the mean. For the centre itself, the Average Calculator shows the mean, median and mode, and for exam marks the Final Grade Calculator works out what you still need.