FLXCode Normal Distribution Calculator

FLXCode apps

Appearance

Normal Distribution Calculator

Type a mean and standard deviation to get a probability under the bell curve, with the area shaded.

Example Probability below x

0.97724987 P(X < 130)

557085100115130145
Results
Mean (μ)100
Standard deviation (σ)15
z-score of x2
P(X < 130)0.97724987
P(X > 130)0.022750132
As a percent97.724987%
In Excel or Sheets=NORM.DIST(130, 100, 15, TRUE)

The steps, with your numbers

z = (x − μ) / σ = (130 − 100) / 15 = 2

P(X < 130) = Φ(2) = 0.97724987

P(X > 130) = 1 − Φ(2) = 0.022750132

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.

Problem or idea? Email us

Quick start

  1. Type the mean (μ) and the standard deviation (σ).
  2. Pick what to find: below x, above x, between two values, beyond k standard deviations, or the value for a probability.
  3. Read the probability. The shaded part of the curve is the area it measures.

Worked examples

IQ scores are built to have a mean of 100 and a standard deviation of 15.

QuestionModeProbabilityNote
P(X < 130)Below0.97724987An IQ under 130
P(X > 115)Above0.15865525An IQ over 115
P(85 < X < 115)Between0.68268949Within one standard deviation
P(|X − 100| > 2σ)Beyond0.045500264Both tails past two standard deviations

Going the other way, the value with 97.5% of the curve below it is 129.39946.

How it works

  1. Turn x into a z-score: z = (x − μ) / σ.
  2. Look up the area under the standard normal curve. Below x it is Φ(z), above x it is 1 − Φ(z), between a and b it is Φ(zb) − Φ(za).
  3. For the inverse, find the z with that area below it and compute x = μ + z × σ.

Each tail is computed on its own, so a tiny probability keeps its digits. If you only have a z-score or a percentile, the z-score calculator is shorter.

In Excel or Google Sheets

TaskFormula
Probability below x=NORM.DIST(x, mean, sd, TRUE)
Probability above x=1 - NORM.DIST(x, mean, sd, TRUE)
Value for a probability=NORM.INV(p, mean, sd)

Numbers this uses

  • Digits is 8 significant digits. Checked against the SciPy normal distribution to 9 digits of relative accuracy.
  • Range is up to 37 standard deviations from the mean. Beyond that the probability underflows a standard computer number.
  • Probabilities is typed as 0.975 or 97.5%. A bare 97.5 is refused, because it could mean either.

Limits

The tool assumes your data follow a normal curve. Skewed data, such as incomes or waiting times, do not, and the probabilities will be off. Check a histogram or use the percentile calculator, which reads the data itself.

In Excel and Google Sheets

The example is a normal curve with mean 100 and standard deviation 15. The formulas below work the same in both programs: every function name was checked against Google's function list.

TaskFormulaResult
Probability below 130=NORM.DIST(130,100,15,TRUE)0.97725
Probability between 85 and 115=NORM.DIST(115,100,15,TRUE)-NORM.DIST(85,100,15,TRUE)0.682689
Value with 0.975 of the curve below it=NORM.INV(0.975,100,15)129.399
Height of the curve at the mean (cumulative = FALSE)=NORM.DIST(100,100,15,FALSE)0.0265962

You can also paste the column into the box above, or open an .xlsx or .csv file with the Open button, and use Download .xlsx to get these formulas filled in with your own numbers.

FAQ

What is a normal distribution?

A bell-shaped curve that is symmetric around its mean. Two numbers define it: the mean μ, where the peak is, and the standard deviation σ, which sets how wide it is. Heights, measurement errors and many test scores follow it closely.

How do I find the probability that X is below a value?

Pick P(X < x), type the mean, the standard deviation and x. With a mean of 100 and a standard deviation of 15, the probability of a value below 130 is 0.97724987, about 97.72%.

How do I find the probability between two values?

Pick P(a < X < b). The tool subtracts the area below a from the area below b. Between 85 and 115 (one standard deviation either side of 100) it is 0.68268949, the familiar 68%.

What is the 68-95-99.7 rule?

About 68% of values lie within one standard deviation of the mean, 95% within two and 99.7% within three. Pick "Beyond k σ" with k = 2: the two tails together hold 0.045500264, so 95.45% is inside.

How do I find the value for a given probability?

Pick "Probability to x" and type the probability as 0.975 or 97.5%. For a mean of 100 and a standard deviation of 15 the value with 97.5% of the curve below it is 129.39946. This is the inverse of the cumulative distribution, NORM.INV in Excel.

Can the probability of one exact value be found?

For a continuous distribution the probability of exactly one value is 0. Only ranges have probability, which is why the tool asks for below, above, between or beyond.

More from FLXCode

Share Normal Distribution Calculator