Skip to content
CalculatorFly

Variance and Standard Deviation Calculator

Paste your numbers. Sample and population variance and standard deviation update as you type, with every step shown, worked out entirely on your device.

Your numbers

Separate numbers with commas, spaces or new lines. Decimals and negative numbers are fine.

Sample variance
-
Sample standard deviation
-
-Population variance (σ²)
-Population standard deviation (σ)
-Mean
-Count (n)
-Sum of squares (SS)
-Sum
-Standard error of the mean
-Coefficient of variation

Working

    Deviations table

    xx − mean(x − mean)²
    Σ0-

    How to use the variance calculator

    Paste your numbers, separated by commas, spaces or new lines. Choose Sample if your numbers are a sample drawn from a bigger group (the usual case) or Population if they are every member of the group. Both results are always shown. The table lists each value's deviation from the mean and its square, so you can check every step by hand. This page is also a standard deviation calculator: the standard deviation is simply the square root of the variance.

    Variance and standard deviation formulas

    First find the mean and the sum of squared deviations, SS = Σ(x − mean)². Then sample variance s² = SS ÷ (n − 1) and population variance σ² = SS ÷ n. The standard deviation is the square root: s = √s² and σ = √σ². Dividing by n − 1 (Bessel's correction) makes the sample variance an unbiased estimate of the population's. The calculator does the arithmetic exactly for ordinary decimals, so large values such as 1000000004 and 1000000007 don't lose precision.

    Worked example

    For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 40 ÷ 8 = 5. The deviations are −3, −1, −1, −1, 0, 0, 2 and 4, and their squares add up to 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32. Population variance = 32 ÷ 8 = 4, so σ = 2. Sample variance = 32 ÷ 7 ≈ 4.5714, so s ≈ 2.1381.

    FAQ

    Should I use sample or population standard deviation?

    Use the population formula only when your data includes every member of the group you care about, such as the scores of everyone in one class. If the numbers are a sample used to describe something bigger, such as 50 customers out of thousands, use the sample formula. Spreadsheets call these STDEV.S and STDEV.P (VAR.S and VAR.P for variance).

    Why is variance in squared units?

    Because it averages squared deviations. If your data is in centimetres, the variance is in square centimetres. The standard deviation takes the square root to get back to centimetres, which is why it's easier to interpret.

    What does the standard error tell me?

    The standard error of the mean, s ÷ √n, estimates how much the sample mean would vary between samples of the same size. It shrinks as you collect more data.

    Is my data sent anywhere?

    No. CalculatorFly works everything out in your browser with WebAssembly. Your numbers never leave your device.