Normal Distribution Calculator — PDF, CDF & Inverse

Compute exact probabilities for any normal distribution: P(X < a), P(X > a), P(a ≤ X ≤ b), inverse CDF (quantile), and PDF at a point. Works with standard normal (μ=0, σ=1) and custom parameters. Bell curve visualization included.

Quick Presets

Query Mode

What Is the Normal Distribution Calculator — PDF, CDF & Inverse?

This calculator computes the complete picture of any normal (Gaussian) distribution. Enter the mean μ and standard deviation σ, choose a query mode, and get the exact probability, complementary probability, PDF value, z-score, and percentile rank — plus a live bell curve SVG that shades the selected region.

  • PDF vs CDF. The PDF f(x) gives the relative likelihood (height of the bell curve) at a single point x. It cannot be read as a probability by itself. The CDF Φ(x) = P(X ≤ x) is the area under the curve up to x — that is a probability.
  • Four query modes. Calculate P(X < a), P(X > a), P(a ≤ X ≤ b) (between two values), or P(X < a or X > b) (outer tails) — all using the same single formula Φ with subtraction.
  • Inverse CDF (quantile function). Enter a target percentile p ∈ (0, 1) and the calculator returns the value x such that P(X ≤ x) = p. Implemented via Acklam's high-accuracy rational approximation.
  • Bell curve visualisation. The shaded SVG bell curve updates instantly after each calculation, shading exactly the region you queried and marking μ and the selected values with vertical reference lines.
  • Five real-world presets. Standard Normal, IQ Scores, SAT Scores, Men's Height, and Women's Height — each with sensible default parameters and a realistic query ready to run.

Formula

Probability Density Function (PDF)

f(x) = (1 / σ√(2π)) × exp(−(x − μ)² / (2σ²))

Cumulative Distribution Function (CDF)

Φ(x) = P(X ≤ x) = ½ × [1 + erf((x − μ) / (σ√2))]

Inverse CDF (Quantile Function)

x = μ + σ × Φ⁻¹(p)

Probability Between Two Values

P(a ≤ X ≤ b) = Φ(b) − Φ(a) = Φ((b−μ)/σ) − Φ((a−μ)/σ)

SymbolNameDescription
μMeanLocation parameter — the centre and peak of the bell curve
σStandard deviationScale parameter — controls width; must be > 0
xRandom variable valueAny real number; the point at which you evaluate the distribution
Φ(x)CDF at xProbability that X takes a value less than or equal to x
erf(·)Error functionSpecial function from A&S formula 7.1.26; implemented from scratch
zStandard score (z-score)z = (x − μ) / σ — expresses x in units of standard deviations from μ
pTarget percentile (inverse)Probability in (0, 1) for which you want to find the corresponding x

Distribution Statistics

Mean: μ

Median: μ (equal to mean — symmetric)

Mode: μ (equal to mean — unimodal peak)

Variance: σ²

Std Dev: σ

Skewness: 0 (perfectly symmetric)

Excess kurtosis: 0 (mesokurtic — normal benchmark)

How to Use

  1. 1
    Enter μ: Type the mean of your normal distribution. Use 0 for the standard normal, or any real number (e.g. 100 for IQ scores, 1060 for SAT scores).
  2. 2
    Enter σ: Type the standard deviation (must be positive). Common values: 1 for standard normal, 15 for IQ, 195 for SAT.
  3. 3
    Choose a query mode: Select P(X < a) for a left-tail probability, P(X > a) for a right-tail, P(a ≤ X ≤ b) for an interval, P(X < a) or P(X > b) for outer tails, or "Inverse" to find x given a percentile.
  4. 4
    Enter a (and b): Type the value(s) to query. For between and outer-tail modes, both a and b appear — a must be less than b. For inverse mode, type a probability p between 0 and 1.
  5. 5
    Press Enter or click Calculate: Results appear: bell curve, main probability, complementary probability, z-score, PDF value, percentile rank, and distribution statistics.
  6. 6
    Read the results: The large number is the answer to your query. Related probabilities (P(X < a), P(X > a), etc.) are shown beneath. The step-by-step panel shows the exact calculation.
  7. 7
    Try a preset: Click Standard Normal, IQ Scores, SAT Scores, Men's Height, or Women's Height to load a realistic example with one click.

Example Calculation

IQ Scores (μ = 100, σ = 15) — what fraction of people score above 130?

Given: μ = 100, σ = 15, query P(X > 130)

Step 1: Standardize

z = (130 − 100) / 15 = 30 / 15 = 2.0000

Step 2: CDF via error function

Φ(z) = ½ × [1 + erf(2.0 / √2)]

= ½ × [1 + erf(1.41421…)]

= ½ × [1 + 0.95450…]

= 0.97725…

Step 3: Right-tail probability

P(X > 130) = 1 − 0.97725 = 0.02275 → 2.275%

Only about 1 in 44 people score above 130 on a standard IQ test (μ = 100, σ = 15). This score corresponds to the 97.7th percentile — roughly two standard deviations above the mean.

z-scoreΦ(z) = P(X < μ + zσ)P(X > μ + zσ)
−3.000.1350%99.8650%
−2.002.2750%97.7250%
−1.0015.8655%84.1345%
0.0050.0000%50.0000%
+1.0084.1345%15.8655%
+1.64595.0000%5.0000%
+1.96097.5000%2.5000%
+2.00 ★97.7250%2.2750%
+2.57699.5000%0.5000%
+3.0099.8650%0.1350%

Key critical values for hypothesis testing

90% CI: z = ±1.64595% CI: z = ±1.96099% CI: z = ±2.57699.9% CI: z = ±3.291

Understanding Normal Distribution — PDF, CDF & Inverse

Properties of the Normal Distribution

The normal (Gaussian) distribution is the most important continuous probability distribution in statistics. Its bell-shaped PDF is completely characterised by just two parameters — the mean μ and the standard deviation σ:

  • Symmetry. The distribution is perfectly symmetric about μ. The left half is a mirror image of the right, giving skewness = 0.
  • Mean = Median = Mode = μ. All three measures of central tendency coincide at the centre of the bell curve.
  • Asymptotic tails. The PDF approaches zero as x → ±∞ but never reaches zero. The curve extends infinitely in both directions.
  • 68-95-99.7 rule. Approximately 68% of values fall within ±1σ of the mean, 95% within ±2σ, and 99.7% within ±3σ (see below).
  • Closed under linear transformation. If X ~ N(μ, σ²) then aX + b ~ N(aμ + b, a²σ²). Shifting or scaling a normal produces another normal.
  • Sum of normals is normal. If X ~ N(μ₁, σ₁²) and Y ~ N(μ₂, σ₂²) are independent, then X + Y ~ N(μ₁+μ₂, σ₁²+σ₂²).

The Empirical Rule (68-95-99.7)

For any normal distribution, the probability of falling within k standard deviations of the mean follows a predictable pattern:

IntervalP(μ − kσ ≤ X ≤ μ + kσ)Outside intervalOne tail
μ ± 1σ68.2689%31.7311%15.8655%
μ ± 1.645σ90.0000%10.0000%5.0000%
μ ± 1.960σ95.0000%5.0000%2.5000%
μ ± 2σ95.4500%4.5500%2.2750%
μ ± 2.576σ99.0000%1.0000%0.5000%
μ ± 3σ99.7300%0.2700%0.1350%
μ ± 4σ99.9937%0.0063%0.0032%

The ±1.960σ interval is used for 95% confidence intervals in hypothesis testing — which is why 1.96 appears so frequently in statistics textbooks and research papers.

Standard Normal vs. General Normal

The standard normal distribution Z ~ N(0, 1) has μ = 0 and σ = 1. It is the reference distribution used in z-tables. Any general normal X ~ N(μ, σ²) can be converted to a standard normal by the transformation:

z = (x − μ) / σ

This calculator handles the transformation internally — you never need a z-table. Just enter μ and σ directly and query any value of x. The z-score is shown in the output so you can verify against published tables if needed.

  • Standard normal table. Traditional z-tables list Φ(z) for z from −3.4 to +3.4 in steps of 0.01. This calculator gives Φ(z) to six decimal places for any z.
  • Converting back. To go from a z-score to the original scale: x = μ + σ × z. The inverse CDF mode does this automatically for any target percentile p.
  • Why standardise? All normal distributions are the same shape — just shifted and scaled. Standardisation lets one function (the standard normal CDF) handle all of them.

The Inverse Normal (Quantile Function)

The inverse CDF Φ⁻¹(p) answers: "what is the value x such that exactly p × 100% of the distribution lies below x?" Common uses include:

  • Confidence interval construction. The 95% CI half-width is z₀.₉₇₅ × σ / √n, where z₀.₉₇₅ = Φ⁻¹(0.975) ≈ 1.96.
  • Value at Risk (VaR). A 99% VaR at μ = 0, σ = 1 is Φ⁻¹(0.01) ≈ −2.326 — losses will exceed this level only 1% of the time.
  • Percentile norms. If heights are N(175.3, 7²), the 90th percentile height is 175.3 + 7 × Φ⁻¹(0.9) ≈ 184.3 cm.
  • Critical values. For a two-tailed test at α = 0.05, the critical z is Φ⁻¹(0.975) = 1.96 (rejecting when |z| > 1.96).

This calculator implements the full Acklam rational approximation for Φ⁻¹(p), which is accurate to approximately nine significant figures across the entire (0, 1) range, including values close to 0 or 1 that standard polynomial approximations handle poorly.

Real-World Applications

FieldTypical QuestionParameters
PsychometricsWhat fraction of people score above 130 IQ?μ = 100, σ = 15
EducationWhat SAT score is in the top 10%?μ = 1060, σ = 195
ManufacturingWhat fraction of parts fall outside ±3σ tolerance?μ = target, σ = process std dev
FinanceWhat is the 1-day 99% Value at Risk for a portfolio?μ = daily return, σ = daily vol
MedicineIs this patient's blood pressure unusually high?μ = population mean, σ = std dev
EpidemiologyWhat z-score does a birth weight of 2.5 kg correspond to?μ = 3.4 kg, σ = 0.55 kg
EngineeringWhat fraction of components fail the quality check?μ = spec centre, σ = process std

Frequently Asked Questions

What is the normal distribution?

The normal distribution is a bell-shaped, symmetric, continuous probability distribution defined by two parameters:

  • μ (mean) — determines where the bell is centred on the number line
  • σ (standard deviation) — determines how wide or narrow the bell is; larger σ = flatter, wider curve

Its central importance comes from the Central Limit Theorem: regardless of the original distribution, the average of a large sample will be approximately normally distributed. This is why IQ scores, measurement errors, heights, and countless natural phenomena follow the normal distribution.

What is the difference between PDF and CDF?

  • PDF f(x) — the height of the bell curve at x. Not a probability on its own. Useful for comparing relative likelihoods of different values.
  • CDF Φ(x) = P(X ≤ x) — the area under the bell curve from −∞ to x. This IS a probability and is what this calculator uses for all queries.

Example: for N(0,1), f(0) ≈ 0.399 (the peak height) but Φ(0) = 0.5 (50% of values lie below 0). The PDF value 0.399 is not a probability — it only makes sense as part of an integral. You use P(a ≤ X ≤ b) = Φ(b) − Φ(a) to get actual probabilities.

How do I find the probability between two values?

Use the P(a ≤ X ≤ b) mode:

  • Enter μ and σ for your distribution
  • Enter a (left boundary) and b (right boundary) — a must be less than b
  • The result is Φ((b−μ)/σ) − Φ((a−μ)/σ)
  • The bell curve shades the region between a and b automatically

Example: for heights N(175.3, 7²), P(170 ≤ X ≤ 180) = Φ((180−175.3)/7) − Φ((170−175.3)/7) ≈ Φ(0.671) − Φ(−0.757) ≈ 0.749 − 0.225 ≈ 52.5%.

What is the 68-95-99.7 rule?

For any normal distribution N(μ, σ²), the exact probabilities are:

  • P(μ − σ ≤ X ≤ μ + σ) = 68.2689% — about 2 in 3 values
  • P(μ − 2σ ≤ X ≤ μ + 2σ) = 95.4500% — about 1 in 22 outside
  • P(μ − 3σ ≤ X ≤ μ + 3σ) = 99.7300% — about 1 in 370 outside
  • P(μ − 4σ ≤ X ≤ μ + 4σ) = 99.9937% — about 1 in 15,787 outside

In manufacturing, a "Six Sigma" process targets ±6σ, which corresponds to 3.4 defects per million — well beyond the standard empirical rule range.

What is the inverse normal distribution?

The inverse CDF Φ⁻¹(p) is the value x such that P(X ≤ x) = p.

  • Φ⁻¹(0.5) = μ (the median — 50% lies below)
  • Φ⁻¹(0.975) ≈ μ + 1.96σ (95% CI upper critical value)
  • Φ⁻¹(0.99) ≈ μ + 2.326σ (99th percentile)
  • Φ⁻¹(0.001) ≈ μ − 3.09σ (0.1th percentile)

This calculator uses the Acklam rational approximation for maximum accuracy, correctly handling extreme probabilities close to 0 or 1 that simple polynomial approximations struggle with.

When should I use the normal distribution?

The normal distribution is appropriate when:

  • The data is continuous (not integer counts)
  • The histogram is roughly bell-shaped and symmetric
  • Mean ≈ median (skewness near zero)
  • Extreme values are rare (thin tails)
  • You are analysing sample means (Central Limit Theorem applies)

Prefer other distributions for:

  • Count data with a known upper limit → Binomial
  • Rare event counts with no upper limit → Poisson
  • Strictly positive, right-skewed data → Log-normal or Gamma
  • Heavy-tailed data with outliers → t-distribution or Cauchy

How does this calculator handle the standard normal vs. general normal?

There is no need to manually standardise your data:

  • Enter μ and σ directly — the calculator converts to z-scores internally
  • For the standard normal, enter μ = 0, σ = 1
  • The z-score for your query value is shown in the output for cross-checking against z-tables
  • All probabilities are returned in the original x scale
  • The inverse mode outputs x directly: x = μ + σ × Φ⁻¹(p)

The erf-based CDF implementation is accurate to 1.5 × 10⁻⁷ (Abramowitz & Stegun formula 7.1.26), and the inverse CDF (Acklam approximation) is accurate to approximately nine significant figures across the full (0, 1) domain.

Does the calculator save my inputs?

Yes — inputs are automatically persisted to your browser's localStorage:

  • μ, σ, a, b, and p are saved on every change
  • The selected query mode is preserved between visits
  • All data stays in your browser — nothing is sent to any server
  • Inputs are restored the next time you open the page

Click Reset All to clear both the form and the saved localStorage data.

Related Calculators