Skip to content
Advertisement
Hosinger Special Offer

Variance Calculator

Variance Calculator from Gizcalc helps you estimate results quickly within the Math & Statistics category.

  • Instant results
  • Charts & tables
  • Save & compare
  • Private – runs in your browser
Variance —

Sample inputs are pre-filled so you can see a result quickly. Results are estimates only and may not be accurate because prices, interest rates, taxes, fees, fuel costs, tariffs, market returns, medical costs, and local rules can change. Please verify current values before making financial, tax, legal, medical, or business decisions.

Formula used

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

  • x̄, μ = the sample or population mean
  • Σ(x − x̄)² = the sum of squared deviations
  • n − 1 = degrees of freedom for a sample

About the Variance Calculator

What is the Variance Calculator?

Variance is the average of the squared distances of each value from the mean. Squaring makes every deviation positive and gives extra weight to values far from the mean. It is the foundation of standard deviation, ANOVA, regression and portfolio risk calculations.

Enter your data and choose sample or population. The calculator shows every step: the mean, the sum of squared deviations, the variance and its square root, the standard deviation.

How to use the Variance Calculator

  1. Data Values (separated by commas or spaces) — separate numbers with commas, spaces or line breaks. (sample: 10, 12, 23, 23, 16, 23, 21, 16)
  2. Data Type (sample: Sample (s², divide by n − 1))
  3. Press Calculate Variance (results also refresh as you type). The result card shows the Variance, along with Standard deviation, Mean, Sum of squared deviations and Count.

Formula used

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

  • x̄, μ = the sample or population mean
  • Σ(x − x̄)² = the sum of squared deviations
  • n − 1 = degrees of freedom for a sample

Dividing by n − 1 for a sample corrects for the fact that a sample's own mean is used, which would otherwise make the spread look slightly too small.

Worked example

These are the sample values already filled in the calculator above, and the result it returns for them:

InputSample value
Data Values (separated by commas or spaces)10, 12, 23, 23, 16, 23, 21, 16
Data TypeSample (s², divide by n − 1)
ResultValue
Variance27.4286
Standard deviation5.2372
Mean18
Sum of squared deviations192
Count8

Tips for using the Variance Calculator

  • Variance is in squared units (for example ₹² or cm²); take the square root to get back to the original units.
  • Adding the same constant to every value does not change the variance; multiplying every value by k multiplies the variance by k².
  • For two independent variables, the variance of their sum is the sum of their variances.

Frequently asked questions

Find the mean, subtract it from each value, square the results, add them up and divide by n − 1 (sample) or N (population). For 10, 12, 23, 23, 16, 23, 21, 16 the mean is 18, the squared deviations sum to 192 and the sample variance is 192 ÷ 7 ≈ 27.43.

Squaring stops positive and negative deviations cancelling out and gives it convenient mathematical properties, such as variances of independent variables adding together.

No. It is an average of squares, so it is always zero or positive. It is zero only when every value is identical.