Statistics and research

Z-score and normal distribution calculator

Convert a value to a z-score and find normal probabilities to the left, right, between two values or in both tails, or find the value for a percentile.

Runs in your browser. What you enter stays on this page and is not uploaded.

Use 0 and 1 for the standard normal distribution.

Results

z2P(X < x)0.97725P(X > x)0.0227501
z-score (x − μ) / σ
2
P(X < x), left tail (percentile)
0.9772498681 (97.725%)
P(X > x), right tail
0.02275013195
P(|Z| > |z|), two tails
0.0455002639
P(|Z| < |z|), between −|z| and |z|
0.9544997361
Density at x
0.0035993978

Method and limits

How to use it

Enter the mean and standard deviation of the normal distribution (0 and 1 for the standard normal), then a value. Switch the mode to find the probability between two values, or the value that has a given cumulative probability (a percentile).

Formulas

  • z = (x − μ) / σ.
  • P(X < x) = Φ(z), the standard normal cumulative distribution; P(X > x) = 1 − Φ(z) = Φ(−z); two tails P(|Z| > |z|) = 2Φ(−|z|).
  • Between a and b: Φ(zb) − Φ(za), computed from the smaller tails to avoid rounding.
  • Percentile: x = μ + σ Φ−1(p).

How it is computed

Φ(−|z|) = ½ Q(½, z² / 2), where Q is the regularized upper incomplete gamma function, so tail areas stay accurate to about 1e-13 relative even at z = −37 (p ≈ 6e-300). The inverse starts from Acklam’s rational approximation and is refined by Halley steps to full double precision.

Assumptions and limits

  • The probabilities are only as good as the normal model for your variable; check a histogram or normal Q–Q plot first.
  • z-scores of a sample (using its own mean and SD) describe position within the sample; probabilities then assume normality.

Worked example

IQ scores are scaled to mean 100 and SD 15. A score of 130 has z = (130 − 100) / 15 = 2; P(X < 130) = Φ(2) = 0.97725 (the 97.7th percentile) and P(X > 130) = 0.02275. The share between 130 and 145 is Φ(3) − Φ(2) = 0.02140. The 95th percentile is 100 + 1.644854 × 15 = 124.67.

References

Related tools

Share this page

Remind me to visit Contifield

Adds a repeating reminder to your calendar, titled “Contifield Reminder: Visit www.contifield.com”.