Variance Calculator: what the result means
Calculate sample or population variance, with the mean, squared-deviation sum and divisor shown.
Choose inputs and convention
Choose Sample (n − 1) for the usual sample variance, or Population (n) when describing the entire supplied population. Paste observations into Numeric observations, separated by commas, whitespace or newlines. Keep repeated observations; they contribute to the calculation. Choose Calculate, or load the example to replace the current inputs with the case below.
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9, mean is 5 and the sum of squared deviations is 32. Population variance is 32/8 = 4. Sample variance is 32/7, approximately 4.57142857143.
Calculation rule
Variance averages squared distances from the mean. The population convention divides by n; the sample convention divides by n − 1. Sample variance is commonly used to estimate population variance under random-sampling assumptions, but the calculator does not verify how your observations were collected.
Interpretation and limitations
Variance is measured in squared units: centimetre measurements produce cm² variance. This is a measure of spread, not geometric area. A single observation has population variance zero but cannot produce sample variance. Repeated equal observations have zero variance.
Numeric bounds and precision
The implementation shifts observations around the first value before centering and summing squared deviations. Compensated summation reduces accumulation error, especially when values share a large offset. It cannot recover digits already lost when decimal text is converted to floating-point numbers. Calculated values are shown to 12 significant digits. Inputs may include signs, decimal points or exponent notation such as 1e3, but not unit suffixes or thousands separators. Up to 1,000 observations and 100,000 characters are accepted; absolute values must be at most 1e12 and nonzero magnitudes at least 1e-12. Zero is valid. Empty comma fields are rejected rather than silently converted to zero.
Editing an input or option clears the previous answer. Copy results copies the displayed summary with its sample/population convention; calculate again after edits.
Use Standard Deviation Calculator to express the same spread in the original measurement units.





