Understanding the normal distribution calculator — concept and principle
A normal distribution calculator finds the probability that a normally distributed variable falls between two values, below a lower value or above an upper value. You enter the mean μ, the standard deviation σ and the two bounds. It is used for test scores, measurement errors, manufacturing tolerances, heights and any quantity that clusters symmetrically around an average.
How it is calculated
- Convert each bound to a z-score: z = (x − μ) ÷ σ. The z-score says how many standard deviations the value lies from the mean.
- Look up the standard normal cumulative distribution function Φ(z), the area under the bell curve to the left of z.
- P(lo < X < hi) = Φ(z_hi) − Φ(z_lo)
- P(X < lo) = Φ(z_lo)
- P(X > hi) = 1 − Φ(z_hi)
x, μ and σ must share the same unit (points, cm, kg). σ must be positive. For a continuous variable, P(X = x) is zero, so "<" and "≤" give the same answer.
The principle
The normal density is f(x) = 1/(σ√(2π)) · e^(−(x−μ)²/(2σ²)). Every normal curve is the same shape, only shifted by μ and stretched by σ, so subtracting μ and dividing by σ turns any normal variable into the standard normal Z with mean 0 and SD 1. Φ(z) has no closed form; it is computed numerically from the error function, Φ(z) = ½[1 + erf(z/√2)]. The normal curve appears so often because of the central limit theorem: sums and averages of many small independent effects tend toward it.
Worked example
- Inputs: μ = 100, σ = 15, lower x = 85, upper x = 115.
- z_lo = (85 − 100) ÷ 15 = −1 and z_hi = (115 − 100) ÷ 15 = 1.
- Φ(1) ≈ 0.841345 and Φ(−1) ≈ 0.158655.
- P(85 < X < 115) = 0.841345 − 0.158655 ≈ 0.6827 (68.27%).
- P(X < 85) = P(X > 115) ≈ 0.1587 each, and the z-scores are −1, 1.
| Upper x | P(lo < X < hi) |
|---|---|
| 28.8 | -0.1586542368 |
| 57.5 | -0.1563519878 |
| 86.2 | 0.0210034152 |
| 115 | 0.6826894921 |
| 144 | 0.8395757778 |
| 172 | 0.8413440747 |
| 230 | 0.8413447461 |
How to read the result
The empirical rule is a useful check: about 68.27% of values lie within ±1σ, 95.45% within ±2σ and 99.73% within ±3σ. A tail probability below 0.05 means the value is unusual under the assumed distribution; below 0.003 it is very rare. The three outputs always add up to 1.
Common mistakes
- Entering the variance (σ²) instead of the standard deviation.
- Forgetting that P(X > hi) is 1 minus the left area, not the left area itself.
- Applying the normal model to strongly skewed data such as incomes or waiting times.
Frequently asked questions
What is the probability within one standard deviation of the mean?
About 0.6827, whatever the values of μ and σ, because the z-scores are always −1 and 1.
Can I use the sample mean and sample SD?
Yes, as estimates. With a small sample the true μ and σ are uncertain, so treat the probabilities as approximate.
How do I get a probability for a single value?
For a continuous variable it is zero. For rounded data, use a small interval, for example 99.5 to 100.5 for a score of 100.
Sources: NIST/SEMATECH e-Handbook of Statistical Methods, Section 1.3.6.6.1 Normal Distribution · Abramowitz, M. and Stegun, I. A., Handbook of Mathematical Functions (1964), Chapter 26