Variance Calculator
Calculate variance and standard deviation for a set of numbers. Choose population variance (σ²) or sample variance (s²).
Did this tool work for you?
How to use this calculator
Variance measures the average squared deviation from the mean. Population variance divides by N; sample variance divides by N−1 (Bessel's correction) to give an unbiased estimate.
- 1
Enter your numbers separated by commas or new lines in the text area.
- 2
Choose whether your data is a full population or a sample.
- 3
Variance, standard deviation, mean, count, and range are calculated instantly.
- 4
Sample variance uses N−1 in the denominator (Bessel's correction) for an unbiased estimate.
Frequently asked questions
When should I use population vs. sample variance?
Use population variance (σ²) when your data includes every member of the group you care about — e.g., the heights of all employees in a 50-person company. Use sample variance (s²) when your data is a subset drawn from a larger population — e.g., 50 people surveyed from a city of 1 million. Sample variance uses N−1 to correct for the underestimation bias that occurs when estimating spread from a sample.
What is Bessel's correction (the N−1 denominator)?
A sample's values tend to cluster closer to the sample mean than to the true population mean (because the sample mean is chosen to minimize the sum of squared deviations within the sample). This causes the simple N denominator to underestimate the true variance. Dividing by N−1 instead of N corrects for this bias, producing an unbiased estimator of the population variance.
What does standard deviation tell me that variance does not?
Standard deviation is the square root of variance, so it is in the same units as the original data (e.g., meters, dollars). Variance is in squared units, which is harder to interpret. A standard deviation of 5 cm means the typical data point is about 5 cm from the mean — immediately intuitive. Variance of 25 cm² is mathematically convenient but less directly interpretable.
How is variance related to the normal distribution?
For a normal (bell-curve) distribution, variance σ² completely specifies the spread. About 68% of data falls within ±1σ, 95% within ±2σ, and 99.7% within ±3σ (the empirical rule). These percentages are fixed regardless of the mean — only σ determines how wide or narrow the bell curve is.
Variance and standard deviation calculator
Variance as average squared deviation
Variance quantifies how spread out a dataset is. Each data point contributes its squared distance from the mean: (xᵢ − μ)². Squaring makes all contributions positive (so negative and positive deviations do not cancel) and gives extra weight to outliers. The average of these squared deviations is the variance. Taking the square root recovers the standard deviation, which is in the original units.
Computational formula vs. definitional formula
The definitional formula σ² = Σ(xᵢ−μ)²/N requires knowing the mean first. An equivalent computational formula σ² = [Σxᵢ² − (Σxᵢ)²/N]/N avoids a separate mean calculation and is more numerically stable for large datasets — it was important before calculators. This calculator uses the definitional formula because it is more transparent and modern hardware has no performance concern.
Applications in finance, quality control, and science
In finance, portfolio variance measures investment risk; lower variance means more predictable returns. In quality control (Six Sigma), variance and standard deviation quantify process variability — a manufacturing process is "in control" when measurements stay within ±3σ of the target. In science, standard error (= σ/√n) measures how precisely you have estimated the population mean from a sample — the foundation of confidence intervals and hypothesis testing.
Learn more from an authoritative source:
WikipediaCorrelation Coefficient Calculator
Calculate Pearson correlation coefficient (r) between two variables. Measures strength and direction of linear relationships.
Linear Regression Calculator
Calculate the linear regression line (y = mx + b) for a dataset. Find slope, intercept, and predict Y for any X value.
Z-Score Calculator
Calculate the z-score (standard score) and percentile rank for any value in a normal distribution. Convert raw scores to z-scores instantly.
T-Test Calculator
Perform a one-sample t-test to determine if a sample mean is significantly different from a known population mean. Returns t-statistic and p-value.
Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →