Normal Distribution

A symmetric bell-shaped distribution centred on the mean μ; σ sets its width.

f(x) = 1 ÷ (σ√(2π)) · e^(−(x − μ)² ÷ 2σ²)

About 68% of values lie within ±1σ of the mean, 95% within ±2σ and 99.7% within ±3σ.

z = (x − μ) ÷ σ is the standardized value (z-score).

Calculator

Change a value and the result and picture update instantly.

Result

Density f(x)0.0241971
z-score1

Animated picture

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

Use in game development

Use it when spawn positions or damage should cluster naturally around a middle value.

Code example (JavaScript)

// Box–Muller: two uniform randoms -> one normal random
const z = Math.sqrt(-2*Math.log(u1)) * Math.cos(2*Math.PI*u2);

What the symbols mean

SymbolMeaning
muMean μ
sigmaStandard deviation σ
xx
fDensity f(x)
zz-score

More formulas in this category

Frequently asked questions

What is the formula for Normal Distribution?
The formula for Normal Distribution is f(x) = 1 ÷ (σ√(2π)) · e^(−(x − μ)² ÷ 2σ²). A symmetric bell-shaped distribution centred on the mean μ; σ sets its width.

Math Formula Quiz Probability & Statistics

Sources

Checked: 2026-11-29