TL;DR / Summary: The two standard deviation formulas differ only in the divisor. Use n when the numbers you have are the whole population; use n minus one when they are a sample standing in for a larger group. The sample version is always a little larger, and the gap is only large enough to matter on small data sets.
Two formulas that differ by a single denominator
Both formulas start the same way. Find the mean, subtract it from each value, square the differences, and add them. The sum of squares is the shared first half. Then one formula divides by n and the other divides by n minus one.
The square root turns that variance back into the original units, so a standard deviation of two kilograms is in kilograms, not kilograms squared. That is the only reason to prefer it over variance when speaking to someone who is not doing further algebra.
The choice of divisor is not a rounding detail. It changes the answer, and it changes it most when n is small, which is exactly when people are least likely to check.
What the extra degree of freedom is compensating for
When you compute a sample mean, you spend one piece of information estimating the centre. The deviations from that estimated centre are slightly smaller than they would be from the true, unknown mean, because the estimate sits as close to the data as possible by construction.
Dividing by n minus one corrects for that optimism. The result is an unbiased estimate of the population variance in the long run, over many samples, rather than a systematically low one.
This is why the sample formula is the default in most inferential work: the whole point of taking a sample is to say something about a population you cannot measure directly.
How big the gap gets on small samples
With fifty values, the factor between the two results is the square root of fifty over forty-nine, about 1.010. That is a one percent difference and almost never worth a footnote. With five values the factor is the square root of five over four, about 1.118, an eleven percent gap.
With two values the sample formula can barely operate: dividing by one means the sample variance equals half the squared difference, which is a valid estimate but wildly unstable. With one value it is undefined, because there is no spread to measure.
The practical rule is that small samples need the correction and large samples hardly notice it. If the answer changes your conclusion, the sample is probably too small to support the conclusion anyway.
Reading the labels on a calculator or spreadsheet
Spreadsheets usually offer separate functions: one ending in P for population and one ending in S for sample. A standard deviation calculator normally shows both options without explaining which is which.
Statistics textbooks in different fields also have conventions. Quality control and some engineering contexts default to population formulas when the batch is the entire lot. Social science and survey work default to sample formulas. Neither is careless; they are describing different data-generating situations.
Where each convention is the default. If you measured every member of a defined group and want to describe that group only, use the population formula. If the group is a stand-in for something larger, use the sample formula. That question comes before the calculator button, not after.
A worked example with five measurements
Take five readings: 12, 14, 13, 15, and 16. The mean is 14. Deviations are minus two, zero, minus one, one, and two. Squaring them gives 4, 0, 1, 1, and 4, for a sum of squares of 10.
Dividing by five gives a variance of 2 and a population standard deviation of about 1.41. Dividing by four gives a variance of 2.5 and a sample standard deviation of about 1.58. The sample version is roughly eleven percent larger, which matches the factor calculated above.
Both numbers are correct for their own question. Reporting 1.41 as an estimate of a wider population would understate the spread, and reporting 1.58 as the exact description of these five readings would overstate it.
Reporting deviation beside the mean
Write the mean and the deviation together, and say which formula you used. “Mean 14.0, sample standard deviation 1.58, n equals 5” tells a reader everything needed to reproduce the number. “Mean 14, SD 1.5” invites a question you will have to answer later.
Round to the precision the data supports. Readings recorded to the nearest whole number do not justify four decimal places in the spread, and false precision makes a small sample look more authoritative than it is.
If the values are a census of a fixed group, say so. The phrase “all twelve machines in the batch” removes the ambiguity faster than any symbol on the page.
When standard deviation is the wrong summary
Standard deviation assumes something like a symmetric spread and is heavily influenced by outliers, because the differences are squared. A single data entry error can double the reported value. Mean absolute deviation is less sensitive and easier to explain, and the interquartile range ignores the tails entirely.
For skewed data such as incomes, waiting times, or file sizes, a median with an interquartile range is usually more honest than a mean with a standard deviation. The formula is not wrong; the summary is simply answering a question nobody asked.
Reporting the deviation honestly
Decide first whether your numbers are a population or a sample, then pick the divisor, then state the choice next to the result. That order prevents the most common mistake, which is picking the button that looks familiar and inventing a justification afterwards.
If you are unsure which situation you are in, describe the data in plain words and let that sentence decide. The arithmetic will follow, and whoever reads your number will know exactly what it measures.


