Standard Deviation Calculator
Paste your numbers or a frequency table. Sample and population standard deviation update as you type, with the full working table, worked out entirely on your device.
Your data
Separate numbers with commas, spaces or new lines. Decimals and negative numbers are fine.
Each line is a value and how many times it occurs, such as 16, 2. Counts must be whole numbers.
-
Working
Step-by-step table
| x | f | x − mean | (x − mean)² | f·(x − mean)² |
|---|---|---|---|---|
| Σ | - | 0 | - |
How to use the standard deviation calculator
Paste your numbers separated by commas, spaces or new lines, or switch to Frequency table and enter each value with how many times it occurs. Choose Sample if the data is a sample from a larger group (the usual case) or Population if it covers every member of the group. Both standard deviations are always shown, along with the variance, mean, coefficient of variation and standard error, and the table lists every deviation so you can check the working by hand. If variance is the figure you need most, the variance calculator leads with it instead.
Standard deviation formula
Find the mean, subtract it from every value, square the differences and add them up to get the sum of squares, SS = Σ(x − mean)². Then the sample standard deviation s = √(SS ÷ (n − 1)) and the population standard deviation σ = √(SS ÷ n). For a frequency table each squared deviation is multiplied by its count f, and n is the total count Σf. The standard error is s ÷ √n, and the coefficient of variation is the standard deviation divided by the mean, as a percentage.
Worked example
For 10, 12, 23, 23, 16, 23, 21, 16 the mean is 144 ÷ 8 = 18. The deviations are −8, −6, 5, 5, −2, 5, 3 and −2, and their squares add up to 64 + 36 + 25 + 25 + 4 + 25 + 9 + 4 = 192. Sample variance = 192 ÷ 7 ≈ 27.43, so s ≈ 5.2372. Population variance = 192 ÷ 8 = 24, so σ ≈ 4.8990. The standard error is 5.2372 ÷ √8 ≈ 1.8516 and the coefficient of variation is 5.2372 ÷ 18 ≈ 29.1%.
FAQ
What is the difference between sample and population standard deviation?
Population standard deviation divides by n and describes a complete group. Sample standard deviation divides by n − 1 (Bessel's correction), which makes up for a sample's tendency to underestimate the spread of the larger group. In spreadsheets they are STDEV.P and STDEV.S.
What does the standard deviation tell me?
It is the typical distance of a value from the mean, in the same units as your data. For roughly bell-shaped data about 68% of values fall within one standard deviation of the mean and about 95% within two.
When should I use a frequency table?
When many values repeat, such as survey ratings or test scores, it is quicker to enter each value once with its count. The result is exactly the same as listing every value separately.
Is my data sent anywhere?
No. CalculatorFly works everything out in your browser with WebAssembly. Your numbers never leave your device.