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
Mean
Variance σ²
Standard deviation σ
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
| Symbol | Meaning |
|---|---|
list | Data (space or comma separated) |
mean | Mean |
var | Variance σ² |
sd | Standard deviation σ |
More formulas in this category
- Mean and Median
- Permutations and Combinations
- Binomial Distribution
- Probability of at Least One Success (Drop Rates)
- Expected Value
- Normal Distribution
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