Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Sample Variance (s²)
182
based on n - 1 divisor
Population variance (σ²) 151.6667
Sample standard deviation (s) 13.4907
Population standard deviation (σ) 12.3153
Mean (x̄) 18
Sum of squares (Σ(x-x̄)²) 910
Sum 108
Count (n) 6

What is the Variance and Standard Deviation Calculator?

This calculator takes a list of numbers and computes both the population and sample variance, along with their corresponding standard deviations. Variance measures how far each value lies from the mean, while standard deviation expresses that spread in the original units of the data.

How to use it

Enter your data set separated by commas or spaces (for example 4, 8, 15, 16, 23, 42) and submit. The tool returns the mean, sum, sum of squares, both variances, and both standard deviations.

The formula explained

The population variance divides the sum of squared deviations by N: $$\sigma^2 = \frac{\sum (x_i - \mu)^2}{N}.$$ The sample variance uses \(n - 1\) (Bessel correction) to give an unbiased estimate from a sample: $$s^2 = \frac{\sum (x_i - \bar{x})^2}{n - 1}.$$ Standard deviation is simply the square root of the variance.

Data points on a number line with deviations measured from the mean
Variance averages the squared distances of each data point from the mean.

Worked example

For 4, 8, 15, 16, 23, 42 the mean is \(108/6 = 18\). The squared deviations sum to \(196 + 100 + 9 + 4 + 25 + 576 = 910\)... wait, recompute: \((4-18)^2=196\), \((8-18)^2=100\), \((15-18)^2=9\), \((16-18)^2=4\), \((23-18)^2=25\), \((42-18)^2=576\), sum = 910. Population variance = $$\frac{910}{6} \approx 151.67.$$ The sample variance = $$\frac{910}{5} = 182.$$

Bar chart with a mean line illustrating spread of values around the average
Larger spread around the mean produces a larger variance and standard deviation.

FAQ

When should I use sample vs population variance? Use population variance when your data covers the entire group; use sample variance when your data is a sample drawn from a larger population.

Why divide by n − 1? Dividing by \(n - 1\) corrects the downward bias that occurs when estimating a population variance from a sample.

Can I use negative numbers? Yes, any real numbers are accepted.

Last updated: