HomeStatistics & Probability › Normal Distribution Calculator

Normal Distribution Calculator

Computes cumulative probabilities P(X < x), P(X > x) and P(x < X < x2) and the density for a normal (Gaussian) distribution with a given mean and standard deviation.

When to use

You need the probability that a normally distributed quantity falls below, above or between given values, or the z-scores of those values.

Do not use when: The variable is a count of successes or events (use binomial-distribution or poisson-distribution), or you need the value at a given probability from real data (use percentile).

Formula

z = (x − mean) / std_dev; P(X < x) = Φ(z); P(X > x) = 1 − Φ(z); P(x < X < x2) = |Φ(z2) − Φ(z)|; f(x) = exp(−z² / 2) / (std_dev · √(2π))

Φ is computed from the Abramowitz & Stegun erf approximation (absolute error < 1.5·10⁻⁷); results are exact to the displayed decimals. For a continuous distribution P(X ≤ x) = P(X < x).

Inputs

ParameterTypeUnitRequiredDescription
meannumberdefault 0Mean of the distribution (default 0 = standard normal).
std_devnumberdefault 1Standard deviation of the distribution (default 1 = standard normal). Range: > 0
xnumberyesThe value at which to evaluate the distribution.
x2numbernoOptional second value; when given, the probability between x and x2 is also returned.

Outputs

OutputTypeUnitDescription
z_scorenumber(x − mean) / std_dev.
probability_belownumberCumulative probability up to x.
probability_abovenumberUpper-tail probability beyond x.
probability_densitynumberValue of the probability density function at x (not a probability).
z_score_2number(x2 − mean) / std_dev (only when x2 is given).
probability_betweennumberProbability between the two values, in either order (only when x2 is given).

Example

Standard normal, x = 1.96: {"x":1.96}{"z_score":1.96,"probability_below":0.975,"probability_above":0.025,"probability_density":0.05844}

IQ 85 to 115 (mean 100, SD 15): {"mean":100,"std_dev":15,"x":85,"x2":115}{"z_score":-1,"probability_below":0.1587,"probability_above":0.8413,"probability_density":0.01613,"z_score_2":1,"probability_between":0.6827}

GET https://tttkmbb.com/api/v1/calculate/normal-distribution?x=1.96

Machine access

Sources

FAQ

What is the 68–95–99.7 rule?

For a normal distribution about 68.27 % of values lie within 1 SD of the mean, 95.45 % within 2 SD and 99.73 % within 3 SD; the second example (85–115 with SD 15) reproduces the 68.27 % figure.

Why is the density larger than 1 sometimes?

f(x) is a density, not a probability: it can exceed 1 when the standard deviation is small (below 0.399). Probabilities come from areas under the curve, i.e. the CDF outputs.

Related calculators