Population spread
Divide the squared-deviation sum by the full count n.
Use this online standard deviation calculator to measure numerical spread around a mean. Choose population or sample treatment and inspect both variances, both standard deviations, the count and the squared-deviation breakdown.
Results update as you edit. Use comparable numbers in the same unit and review the denominator convention.
Read the result together with the breakdown and calculation assumptions below.
Population uses n; sample uses n − 1. Centered two-pass arithmetic reduces cancellation for large offsets. Values are floating point; input precision already lost cannot be recovered. The table shows up to 50 entries; all entries contribute to the result.
Exact fractions and ratios use integer arithmetic. Decimal approximations use up to 12 places or significant digits; very small approximations may round to zero.
| Value | Deviation | Squared deviation |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
Standard deviation measures spread around a mean, while variance measures squared spread. This sample standard deviation calculator also shows the population alternatives so the denominator choice is visible. A centered two-pass calculation and compensated sums reduce numerical cancellation without hiding input precision limits.
Use the result as a transparent mathematical estimate. The calculation method, input conventions and limitations are explained below so you can compare scenarios with the same assumptions.
Follow four steps to enter consistent inputs, read the estimate and understand the result.
Enter the numeric dataset with a consistent unit.
Choose whether the values describe a full population or a sample.
Read the mean, count, variance and standard deviation; sample outputs need at least two values.
Follow the centered squared-deviation table and the denominator used in the final square root.
Explore the inputs, breakdowns and supported options available in this calculator.
Divide the squared-deviation sum by the full count n.
Use n−1 for sample variance and its square root for sample standard deviation.
Keep the center and dataset size visible beside both spread measures.
Distinguish variance in squared units from standard deviation in the original unit.
Inspect up to 50 values, centered deviations and their squared values.
Use centered arithmetic rather than subtracting two large squared totals.
Standard deviation uses the original data unit, while variance uses its square. A larger value means more spread for comparable datasets; it does not by itself establish quality, risk, normality or a confidence interval.
Identify whether the dataset is the whole population or a sample from a larger group.
Avoid comparing variance directly with a measurement in its original unit.
Follow the squared-deviation sum before the variance division and square root.
Keep arithmetic spread separate from claims about normality, quality or confidence intervals.
Check these definitions and conventions when entering values or comparing estimates.
| Input or Result | Meaning | Main Consideration |
|---|---|---|
| Population | The complete group being described | One value is enough and its spread is zero. |
| Sample | A subset used to estimate population spread | At least two observations are needed for n−1. |
| Variance | Squared deviations divided by the chosen denominator | Its units are squared measurement units. |
| Standard deviation | The square root of variance | It returns to the original measurement unit. |
Compare datasets in the same unit and use the same population or sample interpretation. Population variance divides by n; sample variance divides by n - 1 and requires at least two values. Standard deviation uses the original unit, while variance uses its square.
Use a concrete example and focused comparisons to connect the inputs with the outputs.
For 2, 4, 4, 4, 5, 5, 7 and 9, n = 8 and mean = 5. Squared deviations sum to 32. Population variance is 32/8 = 4 and population standard deviation is 2. Sample variance is 32/7 ≈ 4.57142857143 and sample standard deviation is about 2.1380899353.
For 2,4,4,4,5,5,7,9 the mean is 5, squared deviations sum to 32 and population standard deviation is 2.
The same data give sample variance 32/7 and sample standard deviation about 2.13809.
Five copies of 12 have zero population and sample variance because every deviation is zero.
Read the calculation method alongside its units, precision and input conventions.
Mean μ or x̄ = Σx/n. Population variance σ² = Σ(x−μ)²/n; σ = √σ². Sample variance s² = Σ(x−x̄)²/(n−1); s = √s², n ≥ 2.
To find the standard deviation, first calculate the mean, subtract it from each value, square the deviations, sum them and divide by the appropriate denominator. Finally take the square root. This sample standard deviation calculator uses n−1 for sample variance and n for population variance. A centered two-pass method avoids the unstable shortcut Σx²/n − mean²; compensated sums reduce accumulation error.
At least one value is required for population results and at least two for sample results. Repeated and negative observations are valid. A constant dataset has zero spread.
Sample variance uses n−1 to estimate population variance under the usual sampling assumptions. Taking its square root does not make sample standard deviation an unbiased estimator in general.
The deviation table shows at most the first 50 observations, but every accepted observation contributes to the summary. No outlier removal or data transformation is performed.
Lists support up to 1,000 finite numbers and 20,000 characters per field. Individual absolute values are limited to 1e150; scientific notation is accepted. Computation uses JavaScript floating point with compensated summation and displays up to 12 significant digits. Values outside the finite range are rejected.
Calculations run locally in your browser. The calculator does not send your entered values to a calculation server or store them between visits.
Results describe the stated mathematical relationship. Choose a denominator appropriate to your question, review signed-value conventions and use unrounded values when checking the arithmetic.
Practical answers about the inputs, calculation method and limitations of this estimate.
Choose population when the values are the entire group you want to describe. Choose sample when the observations are a subset used to estimate spread in a larger population. The statistical interpretation depends on how the data were collected.
Estimating the population mean from the same data uses one degree of freedom. Under the usual sampling assumptions, dividing squared deviations by n−1 rather than n makes sample variance an unbiased estimator of population variance.
Population standard deviation is 0 for a one-value dataset. Sample standard deviation is undefined with one observation because its denominator would be zero.
No. Variance is the mean or adjusted mean of squared deviations. Standard deviation is its square root and therefore returns to the original measurement unit.
Floating-point representation, input rounding and the algorithm can affect the final digits. This tool uses centered deviations and compensated sums, then rounds the displayed results to 12 significant digits.