Normal Distribution Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the mean and standard deviation of a normal distribution and two values to get the areas under the bell curve.
Result
P(a < X < b)
z-score of a
- z-score of b
- P(X < a)
- P(X > b)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Mean (μ): enter a number.
- Standard deviation (σ): enter 0 or more.
- Lower value (a): enter a number.
- Upper value (b): enter a number.
- Read the result: P(a < X < b); the panel also shows z-score of a, z-score of b, P(X < a) and P(X > b).
How this calculator works
Each value is standardized with z = (x − μ) ÷ σ. P(X < a) = Φ(z_a), P(X > b) = 1 − Φ(z_b) and P(a < X < b) = Φ(z_b) − Φ(z_a), where Φ is the standard normal cumulative distribution function.
Φ is computed from the error function, Φ(z) = ½(1 + erf(z/√2)), itself evaluated through the regularized incomplete gamma function (Numerical Recipes, Press et al.).
The formula
| Symbol | Meaning |
|---|---|
| Mean | |
| Standard deviation | |
| Lower value | |
| Upper value | |
| z-score of a | |
| z-score of b | |
| P(a < X < b) | |
normcdf(x, m, s) | the probability that a Gaussian variable with mean m and standard deviation s is at most x (mean zero and standard deviation one without m and s). |
Worked example
| Mean (μ) | 100 |
|---|---|
| Standard deviation (σ) | 15 |
| Lower value (a) | 85 |
| Upper value (b) | 115 |
| z-score of a | -1 |
|---|---|
| z-score of b | 1 |
| P(X < a) | 0.1587 |
| P(X > b) | 0.1587 |
P(a < X < b) 0.6827
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What share of values is within one standard deviation of the mean?
About 68.27%: with μ = 100 and σ = 15, P(85 < X < 115) = 0.6827.
Is P(X < a) the same as P(X ≤ a)?
Yes for a continuous distribution such as the normal: the probability of exactly one value is zero.