Calculate the standard deviation and variance of a data set, for both sample and population data.
📖 Standard Sample & Population Variance FormulasFill in the fields on the left with your information, then press Calculate to see your result instantly. No sign-up required, and no data is sent anywhere — everything is calculated right in your browser.
Standard deviation is a fundamental measure of how spread out or dispersed values in a dataset are from their mean; the smaller the standard deviation, the closer the values are to the mean, and the larger it is, the more spread out the values are. It's calculated by taking the difference between each value and the mean, squaring this difference, summing all the squared differences, then taking the square root of the final result. This calculator offers two options: "Sample," which divides by (n−1) and is used when the data is a sample from a larger population, and "Population," which divides by n directly and is used only when the data represents the entire population without exception. Choosing between these two options is not a minor technicality — using the population formula on sample data systematically underestimates the true variability, which is exactly why the (n−1) adjustment, known as Bessel's correction, exists in the first place.
Standard deviation answers a question the mean alone cannot: how tightly clustered, or how spread out, are the individual values around that average? Two datasets can share an identical mean while looking completely different in practice — one tightly clustered around it, the other swinging wildly between extremes — and standard deviation is the number that captures this difference.
The calculation squares each value's distance from the mean before averaging, rather than simply averaging the raw distances. Squaring serves two purposes: it eliminates negative signs (a value below the mean and a value equally above it would otherwise cancel out to a misleadingly small average distance), and it disproportionately weights larger deviations, which is a deliberate design choice that makes standard deviation more sensitive to genuine outliers than a simple average distance would be.
The distinction between sample and population standard deviation is one of the more commonly confused points in introductory statistics, but the underlying reason is straightforward. A population standard deviation (dividing by n) is appropriate only when the data in hand represents every single member of the group being studied — every student in a specific class, every product from a completed manufacturing run. A sample standard deviation (dividing by n−1) is appropriate whenever the data is a subset drawn from a larger group the researcher cannot fully measure — a survey of 500 voters standing in for an entire electorate, or a batch of 50 tested products standing in for an entire product line.
Dividing by the smaller number (n−1) rather than n produces a slightly larger standard deviation, which corrects for a genuine mathematical tendency: a sample's own mean is, by construction, closer to the sample's data points than the true population mean would be, which would otherwise make a sample systematically underestimate the population's real variability if the same formula were used for both. This adjustment is known as Bessel's correction, and using the wrong version of the formula for a given situation is a common, avoidable source of error in statistical coursework and research.
Standard deviation underlies an enormous range of applied statistics: confidence intervals, hypothesis testing, quality control charts in manufacturing, and financial risk measures like a portfolio's volatility all depend directly on it, which is why getting the sample-versus-population choice right at this first step matters for everything calculated afterward.
Use 'Sample' if your data is a subset representing a larger group (most common case), and 'Population' only if your data covers every member of the group with no exceptions.
Dividing by n−1 (Bessel's correction) corrects for the bias that occurs when estimating a population's variance from a smaller sample.
It means all the values in the data set are identical, with no variation at all.