Calculate population or sample standard deviation, variance, mean, standard error, confidence intervals, and a frequency table for any data set.
Enter numbers separated by commas, spaces, or line breaks.
Two radio buttons decide this page's answer, and picking the wrong one changes the number. The list 10, 20, 30, 40, 50 gives a standard deviation of 14.1421 under Population and 15.8114 under Sample. The first treats the five values as the whole group; the second treats them as a draw from a larger group whose spread you are trying to estimate. The choice follows from what the list represents, not from how many numbers it holds, and the rest of this page works through it.
Both options begin identically. Add the values (Σx = 150), divide by the count to get the mean (30), then square each distance from the mean and total them. For 10, 20, 30, 40, 50 the distances are -20, -10, 0, 10, 20, the squares are 400, 100, 0, 100, 400, and the total is 1000. After that the paths split.
Population divides by N: variance σ² = 1000 / 5 = 200, and σ = √200 = 14.1421. Sample divides by N - 1: s² = 1000 / 4 = 250, and s = √250 = 15.8114. The standard error of the mean is that spread divided by √N, so SEM is 6.3246 for Population and 7.0711 for Sample. Tiles show four decimals; the Calculation Steps panel, opened by clicking its heading, shows six.
The gap between the options shrinks quickly as the list grows. The ratio of sample to population deviation is always √(N / (N - 1)). For the five values that is 1.118, about 12% apart. For the whole numbers 1 to 50 it is 1.0102: the page gives 14.4309 for Population and 14.5774 for Sample. For just two values, 4 and 8, the ratio is √2, and the page shows 2 against 2.8284.
The margin-of-error table follows your choice. Under Sample, the standard deviation is an estimate, so the page uses Student t critical values with N - 1 degrees of freedom; here that is 4, and the table's t column reads 2.776 at 95%. The margin is 2.776 x 7.0711 = 19.6324, so the 95% range is 10.3676 to 49.6324, which is 65.44% of the mean. Under Population the deviation is treated as known, so z = 1.96 is used: margin 1.96 x 6.3246 = 12.3961, range 17.6039 to 42.3961. At 99% with only five values, t jumps to 4.604 and the range runs from -2.5559 to 62.5559, wider than the data itself.
A rule for deciding: choose Population when the list contains every member you care about, such as the final marks of all five students in one class. Choose Sample when the list stands in for something larger, such as 40 survey replies standing in for a town. Spreadsheet functions follow the same split: STDEV.P and STDEV.S.
No, a comma separates values, so 3,5 is read as 3 and 5. Use a point for decimals. Anything the page cannot read as a number, such as 12kg or a stray word, stops the calculation with a message that names the entry, so you can fix it.
Further than most people expect. Replace the 50 in 10, 20, 30, 40, 50 with 500 and the mean rises from 30 to 120, the population standard deviation from 14.1421 to 190.263, and the sample one to 212.7205. Check a surprising spread for a typo before relying on it.
No. Standard deviation needs at least two numbers, and the sample divisor N - 1 would be zero for one. You get the message asking for at least 2 numbers, and no results are drawn.
The column header and the multiplier follow your Type choice together. A sample of five values gives a rough spread estimate, so the t multiplier is wider (2.776 against 1.96 at 95%) to compensate. With 120 or more values the two are close.
The margin divided by the absolute mean, times 100. For the example in Sample mode at 95%, 19.6324 against a mean of 30 is 65.44%, which says the estimate of the mean is loose. When the mean is exactly 0, the column shows a dash.