Variance Calculator

Sample or population • Raw list or value:count

Inputs

Separators: comma, space, newline, semicolon. Frequency format: value:count, where count must be a positive integer.
Turn this off to calculate population variance using n.
Large datasets are previewed in compressed form.

Action

Updating…

Use this Variance Calculator to calculate sample or population variance from a numeric dataset. Variance measures how spread out values are around their mean.

Calculation Method

Population variance:

σ² = Σ(x − μ)² ÷ N

Sample variance:

s² = Σ(x − x̄)² ÷ (n − 1)

Example

For:

2, 4, 6, 8

The mean is:

(2 + 4 + 6 + 8) ÷ 4 = 5

The sum of squared deviations is:

9 + 1 + 1 + 9 = 20

Population variance = 20 ÷ 4 = 5

Sample variance = 20 ÷ 3 ≈ 6.67

Important Note

Use population variance when the entered values represent the entire population being described. Use sample variance when the data are a sample used to estimate variability in a larger population.

Source

More of our calculators...

t-statistic Calculator

Use our t-Statistic Calculator to compute the t value, degrees of freedom, and standard error for one-sample, two-sample, Welch, pooled, or paired t-tests.

IQR (Interquartile Range) Calculator

Use our IQR Calculator(Interquartile Range) to find Q1, Q3, median, and interquartile range from a data set. Supports raw numbers, value:count input, and two quartile methods.

Confidence Interval Calculator

Use our Confidence Interval Calculator to find confidence intervals for a mean or proportion with standard error, critical value, margin of error, and lower and upper bounds.

Margin of Error Calculator

Use our Margin of Error Calculator to find margin of error for a mean or proportion from sample size, confidence level, and z value.

Mean Median Mode Calculator

Use our Mean Median Mode Calculator to find the average, median, and mode from any data set. Supports raw numbers, value:count input, and sorted preview.

Chi-Square Calculator

Use our Chi-Square Calculator to run goodness-of-fit and independence tests, or find right-tail p-values and critical χ² values from df and alpha.

Standard Deviation Calculator

Use our Standard Deviation Calculator to find sample or population standard deviation from a data set. Get variance, mean, range, and sorted values fast.

Sample Size Calculator

Use our Sample Size Calculator to estimate sample size for a mean or proportion from confidence level, margin of error, and optional finite population correction.

Z-score Calculator

Use our Z-Score Calculator to standardize a value or sample mean, convert percentile to z, convert z to percentile, and view left-tail and right-tail probabilities.