Variance and Standard Deviation

How far the data spreads out from the mean.

σ² = Σ(x − x̄)² ÷ n  σ = √σ²

Here the variance is the average of the squared differences from the mean (population variance). When estimating from a sample, divide by n − 1 instead.

The standard deviation is the square root of the variance and has the same units as the data.

Calculator

Change a value and the result and picture update instantly.

Result

Mean6.85714
Variance σ²8.40816
Standard deviation σ2.89968

Animated picture

The picture follows your values. Some points and shapes can be dragged.

Use in game development

Measure damage spread or win-rate swings when balancing a game.

Code example (JavaScript)

const v = xs.reduce((s, x) => s + (x - mean) ** 2, 0) / xs.length;
const sd = Math.sqrt(v);

What the symbols mean

SymbolMeaning
listData (space or comma separated)
meanMean
varVariance σ²
sdStandard deviation σ

More formulas in this category

Frequently asked questions

What is the formula for Variance and Standard Deviation?
The formula for Variance and Standard Deviation is σ² = Σ(x − x̄)² ÷ n  σ = √σ². How far the data spreads out from the mean.

Math Formula Quiz Probability & Statistics

Sources

Checked: 2026-11-29