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)
z-score
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
| Symbol | Meaning |
|---|---|
mu | Mean μ |
sigma | Standard deviation σ |
x | x |
f | Density f(x) |
z | z-score |
More formulas in this category
- Mean and Median
- Variance and Standard Deviation
- Permutations and Combinations
- Binomial Distribution
- Probability of at Least One Success (Drop Rates)
- Expected Value
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