SD or SE: two different questions
These two get mixed up constantly, in classrooms and in published papers, and the fix is one clean distinction. The standard deviation describes your data: how much individual values differ from one another. Collect more data and it does not shrink; it just gets measured more accurately. The standard error describes your mean: how far the sample average likely sits from the true average you are trying to estimate, and it does shrink, by the square root of the sample size, because averaging lets random errors partly cancel.
Watch it happen. Sample the same population, one whose standard deviation is 20 points, at three sizes. At n = 25 the standard error is 20 / 5 = 4. At n = 100 it is 20 / 10 = 2. At n = 400 it is 20 / 20 = 1. The spread of the data never moved; the precision of the mean halved and halved again, because the square root of n quadrupled from 5 to 10 to 20. That is the whole relationship in three lines, and it is also the honest price list: each halving of the error costs four times the work.
If the spread itself is your question, our standard deviation calculator is the page that owns it. This page is about what happens after you average.
The formula
Here s is the sample standard deviation (computed with n − 1 in the divisor), n is the sample size, and p is a poll result written as a decimal, so 52% is 0.52. Both formulas produce a number in the same units as the thing being estimated: points for a mean of points, percentage points for a proportion.
Worked example
Take the data set 2, 4, 4, 4, 5, 5, 7, 9 (n = 8). The mean is 40 ÷ 8 = 5, and the squared deviations from it sum to 32.
Sample standard deviation: s = √(32 ÷ 7) ≈ 2.1381. We divide by 7, not 8, because the mean was computed from these same eight values and pinned one of them down.
Standard error: SE = 2.1381 ÷ √8 = 2.1381 ÷ 2.8284 ≈ 0.7559. The sample mean of 5 is typically about 0.76 away from the true mean.
And the payoff: mean ± 1.96 × SE gives 5 ± 1.4816, so the 95% confidence interval runs 3.5184 to 6.4816. With a sample this small the 1.96 should really be a t-value, which widens things a little; the confidence interval calculator applies that correction properly.
Polls: where everybody meets standard error
A poll result is a mean in disguise: every answer is a 0 or a 1, and the reported percentage is their average. So the same machinery applies, with the tidy shortcut that the spread of yes/no data is fully determined by the split: SE = √( p(1 − p) ÷ n ). A poll finding 52% among 1,000 people has SE = √(0.52 × 0.48 ÷ 1,000) ≈ 0.0158, which is about 1.6 percentage points, and 1.96 times that is the plus or minus 3 you see in the fine print. Two things worth knowing: a 50/50 split is the noisiest a poll can be, so anything more lopsided is measured slightly better for free; and if you want to run this backwards (how many people for a target margin of error), that is exactly what our sample size calculator does.
Error bars: which story are they telling?
When a chart shows error bars, they may be standard deviations or standard errors, and the two tell different stories. SD bars describe the data: they say how much individuals varied, and they stay the same size no matter how many observations were collected. SE bars describe the estimate: they say how well the mean is known, and they shrink with sample size. That shrinking looks like precision, and it partly is; it is also partly just persistence, because any spread at all can be averaged down to tiny SE bars if someone collects enough data. Neither bar is wrong. The reading mistake is comparing one kind against the other, so before you judge two figures side by side, find the sentence in the caption that says which kind you are looking at.
Degrees of freedom, in plain words
Degrees of freedom count the values that are still free to vary once your summary statistics are pinned down. If five numbers must average 10, you can choose four of them however you like, but the fifth is then forced: the mean ate one degree of freedom. That is the real reason the sample standard deviation divides by n − 1. Measuring spread means measuring distance from the mean, and since the mean came from the sample itself, only n − 1 of those distances carry independent information; divide by n and you flatter yourself about the spread every single time.
The common formulas all follow the same logic: one sample estimating one mean has n − 1 degrees of freedom; two samples estimating two means have n1 + n2 − 2; a chi-square table with r rows and c columns has (r − 1)(c − 1), because the row and column totals pin the rest. Each estimated quantity costs one degree, and what remains is what your variance and t-values are actually built on.
Comparing spread across scales: the coefficient of variation
A standard deviation carries units, which makes it awkward to compare across different scales. Is a spread of 10 points a lot? On a 100-point test it is substantial; on a 1,000-point scale it is barely a wobble; the raw SD of 10 cannot tell those situations apart. The coefficient of variation fixes that by dividing the standard deviation by the mean: 10 / 100 = 10% versus 10 / 1,000 = 1%, and now the comparison is direct. The raw-data mode above reports it automatically. One honest caveat: the CV divides by the mean, so when the mean sits at or near zero the percentage explodes into something that describes nothing, which is why the calculator declines to show it in that case rather than printing a silly number.