Variance Calculator - Sample & Population Variance

Compute variance, standard deviation, mean, median, mode, and IQR for any data set — choose sample or population formula.

Enter numbers separated by commas or spaces, choose sample or population, and get a complete statistical summary instantly.

Variance Calculator - Sample & Population Variance
Compute variance, standard deviation, mean, median, mode, and IQR for any data set — choose sample or population formula.

About the variance calculator

Variance is the average of the squared differences between each data point and the mean of a data set. It quantifies how spread out the values in a distribution are. A variance of zero means every value is identical; a large variance means the data points are widely scattered around the mean. Variance is expressed in squared units, which is why its square root — the standard deviation — is often more intuitive to report, but variance itself is essential in statistical theory because it is additive and underlies many advanced techniques. The variance calculator distinguishes between two fundamentally different use cases. Population variance (σ²) divides the sum of squared deviations by n, the total count of values. Use it when your data set is the complete population you want to describe — for example, the heights of every student in a single class. Sample variance (s²) divides by n − 1 instead, applying Bessel's correction, which compensates for the fact that a sample's mean is itself an estimate and therefore slightly underestimates the spread of the underlying population. For any finite sample, the corrected value is always slightly larger than the uncorrected one. Whenever your numbers are a sample drawn from a larger group, sample variance is the standard choice. Beyond variance, this calculator computes a full descriptive-statistics summary. The mean is the arithmetic average: sum divided by count. The median is the middle value when data is sorted, or the average of the two middle values for even-length sets; it is resistant to outliers and often more informative than the mean for skewed distributions. The mode is the value (or values) that appear most frequently; if every number appears once, the data is described as having no mode. The range is the difference between the maximum and minimum values. The interquartile range (IQR) is the spread of the middle 50 percent of data, from the 25th to the 75th percentile, and is especially useful for identifying outliers via the fence method. Variance and its companions — standard deviation, IQR, and range — are used everywhere data is analyzed. Quality engineers use variance to monitor production consistency and flag batches that deviate from specification. Investment analysts use variance as a measure of portfolio volatility: the higher the variance of returns, the riskier the asset. Educators use it to see whether test scores are clustered tightly (low variance, consistent class) or scattered (high variance, mixed understanding). Epidemiologists use population variance to characterize the distribution of disease incidence across regions, and social scientists use it to compare inequality across demographic groups. This tool handles any list of numbers — integers, decimals, positive, negative — and computes all statistics in a single step. For very large or very small numbers the results are displayed with up to six significant decimal places to balance readability and accuracy.

Variance calculator examples

Three worked examples showing how variance changes with different data distributions.

Data setVarianceDetails
Sample: 85, 92, 78, 88, 95, 81, 74s² ≈ 57.24Seven student test scores. Mean ≈ 84.71, s ≈ 7.57. Moderate spread around the mean.
Population: 25, 32, 28, 45, 38, 29, 33, 51σ² ≈ 70.36Ages of all 8 employees in a department. Mean = 35.125, σ ≈ 8.39. Higher variance because of two outliers at 45 and 51.
Sample: 250.5, 252.1, 249.8, 255.3, 254.7, 251.9, 253.2, 256.0s² ≈ 5.10Eight days of stock closing prices. Mean ≈ 252.94, s ≈ 2.26. Low variance — prices are tightly clustered.

How to use the variance calculator

  1. Type or paste your numbers into the data field, separated by commas, spaces, or new lines.
  2. Choose Sample if your data is a subset of a larger population, or Population if it includes every member.
  3. Click Calculate to compute variance, standard deviation, mean, median, mode, IQR, and range.
  4. Read the Variance row for the squared spread and the Standard Deviation row for the same spread in the original units.
  5. Click Reset to clear all inputs and start a new calculation, or load an example to see a worked data set.

Variance calculator FAQ

What is variance and what does it measure?
Variance measures how spread out a set of numbers is around their mean. It is calculated as the average of the squared differences between each value and the mean. A higher variance means greater dispersion; a variance of zero means all values are identical.
What is the difference between sample and population variance?
Population variance divides by n and is used when your data includes every member of the group. Sample variance divides by n − 1 (Bessel's correction) and is used when your data is a subset drawn from a larger population. The correction prevents underestimating the true population spread.
How is variance related to standard deviation?
Standard deviation is the square root of variance. Variance is in squared units (e.g., squared dollars or squared kilograms), which makes it hard to interpret directly. Taking the square root returns the measure to the original units, making standard deviation more intuitive for most comparisons.
When should I report variance instead of standard deviation?
Variance is preferred in theoretical work and in techniques like ANOVA, regression, or portfolio theory where additivity matters — the variance of the sum of independent variables equals the sum of their variances. Standard deviation is preferred for communicating spread to a general audience because it shares the data's units.
What does a high or low IQR indicate?
The IQR is the range of the middle 50 percent of data. A small IQR means the central values are tightly packed; a large IQR means they are spread out. It is more robust than variance and standard deviation because it ignores extreme outliers that would inflate those measures.
Can variance be negative?
No. Variance is the sum of squared terms divided by a positive number, so it is always zero or positive. A variance of zero means all values in the data set are identical. If you see a negative result somewhere, it indicates a calculation error.