Normal Distribution Calculator Back
Statistics Tool

Normal Distribution Calculator & Visualizer

Quick answer
The probability density of the normal distribution is f(x)=1/(σ√(2π))·exp[−(x−μ)²/(2σ²)]. Standardization uses Z=(x−μ)/σ, with about 68% falling within ±1σ, about 95% within ±2σ, and about 99.7% within ±3σ.

Set mean μ and standard deviation σ to visualize PDF/CDF in real time. Compute probabilities, Z-scores, and percentiles instantly.

Parameters
Presets
Mean μ
Std Deviation σ
Probability Query Mode
Z-Score Calculator
Z = 0.000
P(X<x) = 50.00%
Results
Probability P
Z-score (a)
Percentile
68.27%
±1σ Range
Probability Density Function (PDF)
Cumulative Distribution Function (CDF)
±1σ = 68.27% ±2σ = 95.45% ±3σ = 99.73%
Theory & Key Formulas

Probability Density Function (PDF):

$$f(x)=\frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}$$

Standardization (Z-score): $Z=\dfrac{x-\mu}{\sigma}$

Cumulative Distribution (CDF): $\Phi(x)=\dfrac{1}{2}\left[1+\mathrm{erf}\!\left(\dfrac{x-\mu}{\sigma\sqrt{2}}\right)\right]$

P(a < X < b) = Φ(b) − Φ(a)

What is the Normal Distribution?

🙋
I see the bell curve everywhere, but what exactly is a normal distribution? Why is it so special?
🎓
Basically, it's the most famous probability pattern in nature and engineering. It describes how things like measurement errors, human heights, or test scores tend to cluster around an average value, with symmetrical tails. Its special shape is defined by just two numbers: the mean (μ), which is the center, and the standard deviation (σ), which controls the spread. Try moving the μ slider in the simulator above—you'll see the entire curve shift left or right.
🙋
Wait, really? So σ is what makes the bell curve fat or skinny? What's this "68-95-99.7 rule" I keep hearing about?
🎓
Exactly! That's the magic of σ. In practice, no matter what μ and σ are, a fixed percentage of data falls within a certain number of standard deviations from the mean. For instance, about 68% of data is within ±1σ, 95% within ±2σ, and 99.7% within ±3σ. This is the empirical rule. A common case is quality control: if a process is "in control," most measurements will fall within ±3σ. Try setting σ to 1 and look at the probability between μ-1 and μ+1 in the simulator—it will be close to 68%.
🙋
Okay, that makes sense. But what's a Z-score? It sounds like a test score thing, but the simulator has it too.
🎓
A Z-score is just a way to standardize any value from any normal distribution onto a common scale. It tells you how many standard deviations a point is from its mean. The formula is $Z = (x - \mu)/\sigma$. For example, a test score with a Z-score of 1.5 is 1.5 standard deviations above the class average. The beauty is that once you have a Z-score, you can look up probabilities on the standard normal distribution (where μ=0, σ=1). When you change the parameters in the simulator, watch how the Z-score for a given x value updates instantly.

Physical Model & Key Equations

The heart of the normal distribution is its Probability Density Function (PDF). This equation gives the height of the bell curve at any point x, telling you the relative likelihood of that value occurring.

$$f(x)=\frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}$$

μ (mu): The mean or center of the distribution. It's the location parameter.
σ (sigma): The standard deviation. It's the scale parameter; a larger σ means a wider, flatter curve.
x: The variable (e.g., a measured diameter, a test score).
The constant $\frac{1}{\sigma\sqrt{2\pi}}$ ensures the total area under the curve equals 1 (100% probability).

To compare values from different normal distributions, we use standardization to calculate the Z-score. This transforms any normal distribution into the standard normal distribution (μ=0, σ=1).

$$Z=\dfrac{x-\mu}{\sigma}$$

Z: The Z-score, a dimensionless number. A Z of 0 means the value is exactly at the mean. A Z of 2 means it is 2 standard deviations above the mean. This score directly corresponds to probabilities and percentiles on the standard normal table.

Frequently Asked Questions

Changing the mean μ shifts the peak of the distribution left or right. Increasing the standard deviation σ makes the peak lower and flatter, while decreasing it makes the peak higher and sharper. You can observe these changes in real time and intuitively understand their impact on the shape of the distribution.
Enter the value of x in the probability calculation field and press the calculate button to display the cumulative distribution function (CDF) value. Subtract this value from 1 to obtain the probability of 'x or greater'. For example, if the CDF is 0.8, the probability of x or greater is 0.2.
It is used when you want to compare data with different means or standard deviations. For example, if you score 80 on Test A (mean 70, standard deviation 10) and 70 on Test B (mean 60, standard deviation 5), converting these to Z-scores gives 1.0 and 2.0 respectively, allowing for a clear comparison of their relative positions.
Percentiles are calculated by entering a cumulative probability (a value between 0 and 1) to find the corresponding x value. For example, entering a cumulative probability of 0.5 will display the median (50th percentile). If the cumulative probability is extremely close to 0 or 1, the calculation may become unstable.

Probability Density Function of the Normal Distribution

The normal (Gaussian) distribution is a symmetric, bell-shaped distribution centered on the mean $\mu$, and it appears widely in natural and social phenomena. Its probability density function is given below.

$f(x) = \dfrac{1}{\sqrt{2\pi}\,\sigma}\exp\!\left(-\dfrac{(x-\mu)^2}{2\sigma^2}\right)$

Here $\mu$ is the mean (the center of the distribution) and $\sigma$ is the standard deviation (the magnitude of the spread). The smaller $\sigma$ is, the sharper and taller the peak; the larger it is, the flatter and wider the spread. By the central limit theorem, the sum of many independent factors approaches a normal distribution, which is why it is fundamental in measurement error and quality control.

The 68-95-99.7 Rule and Standardization

In a normal distribution, the probability contained is determined by the distance from the mean (in multiples of $\sigma$) (the empirical rule).

RangeProbability contained
$\mu \pm 1\sigma$about 68.3%
$\mu \pm 2\sigma$about 95.4%
$\mu \pm 3\sigma$about 99.7%

Any normal distribution can be converted into the standard normal distribution with mean 0 and standard deviation 1 by standardization $z = \dfrac{x-\mu}{\sigma}$. Using the $z$ value, you can compare values from different distributions on a common scale, or read probabilities from a standard normal table. The "$3\sigma$" and "Six Sigma" concepts in quality control are based on this same idea.

Real-World Applications

Quality Control & Six Sigma: In manufacturing, the diameter of a machined part will naturally vary. Engineers model this variation with a normal distribution. They calculate metrics like Cpk to see if the process (the spread, ±3σ) fits within the design tolerances. A "Six Sigma" process aims for the tolerance limits to be at least 6σ from the mean, resulting in extremely few defects.

Statistical Hypothesis Testing (p-value): When scientists run an experiment, they often ask if their result is due to chance. They calculate a test statistic, which often follows a normal distribution under the null hypothesis. The p-value is the probability (the area in the tail of the curve) of seeing a result as extreme as theirs. A small p-value (e.g., < 0.05) suggests the result is statistically significant.

Reliability & Fatigue Life: The time-to-failure for many mechanical components, like bearings or aircraft wings under cyclic loading, can often be approximated by a normal distribution. Engineers use this to predict reliability, mean time between failures (MTBF), and to set maintenance schedules before the probability of failure becomes too high.

Standardized Test Scoring: Scores on tests like the SAT or GRE are often reported as percentiles. These are derived from a normal distribution model of all test-takers' scores. Your percentile rank tells you what percentage of people scored lower than you, which is precisely the value of the Cumulative Distribution Function (CDF) at your score.

Common Misconceptions and Points to Note

There are a few things you should be aware of when starting with this tool, especially if you're coming from the CAE world. First, always question the assumption that "the data follows a normal distribution". Peak stress values from simulations or maximum flow rates often follow a log-normal distribution more closely. Just because the tool can draw a nice bell curve doesn't mean you should try to fit everything with a normal distribution—you might misjudge the probability of rare but critical failures.

Next, when setting parameters, don't confuse "standard deviation σ" with "variance σ²". What you input into the tool is the "standard deviation". For example, even if a tolerance is specified as ±0.1mm, you need to confirm whether that refers to the standard deviation or the range. Often, a tolerance implies ±3σ (meaning 99.7% of parts fall within that range). So, if you input the tolerance 0.1mm directly as σ=0.1, you'll be assuming a much wider distribution than reality. Typically, you should estimate σ = 0.1 / 3 ≈ 0.033.

Finally, consider the handling of "outliers". When analyzing real data, the mean and standard deviation are highly sensitive to outliers. Before deciding on μ and σ in the tool, always check the overall data profile using a histogram or similar. A single extreme value can drag the mean upward and inflate the standard deviation, leading to an overestimation of the actual variation. This could result in a calculated "defect rate of 0.1%" that is far from reality.

How to Use

  1. Enter mean (μ) using muNDNum or muSlider; typical engineering applications use μ=0 to 100 depending on tolerance stack-ups
  2. Set standard deviation (σ) via sigmaNDNum or sigmaSlider; for machined parts, σ=0.05mm to 2mm is common
  3. Input bounds in inputA and inputB to compute P(A ≤ X ≤ B); the calculator displays probability, Z-scores, and percentile ranks
  4. Read ±1σ Range output to verify 68.27% confidence interval for process capability studies

Worked Example

Bearing bore diameter: μ=25.000mm, σ=0.150mm. Query P(24.85 ≤ X ≤ 25.15): inputA=24.85, inputB=25.15 yields P≈0.6827 (68.27%), Z-score(24.85)≈−1.0, percentile≈15.87%. The ±1σ Range displays [24.850, 25.150], confirming bilateral tolerance fits within one standard deviation for Cpk assessment.

Practical Notes

  1. For Six Sigma manufacturing, set σ such that ±6σ spans your tolerance band; if tolerance=±0.3mm, then σ≈0.05mm ensures Cpk≥1.67
  2. Use Z-score output to identify outliers—parts beyond ±3σ (Z=±3.0) indicate assignable causes requiring process investigation
  3. When modeling measurement system repeatability, overlay two distributions (part variation and gage R&R) by comparing their σ values; ratio σ_gage/σ_part should stay below 0.1
  4. Percentile readout directly supports SPC control charts; a shift to 90th percentile signals process drift before parts exceed specification limits

Standards & Assumptions

Standard / reference: Normal (Gaussian) distribution. PDF \(f(x)=\frac{1}{\sigma\sqrt{2\pi}}e^{-(x-\mu)^2/(2\sigma^2)}\); CDF \(\Phi(x)=\tfrac12[1+\operatorname{erf}((x-\mu)/(\sigma\sqrt2))]\); standardization \(Z=(x-\mu)/\sigma\).

Model assumptions: erf uses the Abramowitz & Stegun 7.1.26 rational approximation (max error 1.5×10⁻⁷). Continuous, infinite support. CDF uses analytic erf rather than numerical integration.

Scope & limits: Educational / statistics. Verified: \(f(0)=0.3989\); ±1σ=68.27%, ±2σ=95.45%, ±3σ=99.73%, matching the tool. For high-accuracy tail probabilities (>6σ), use a double-precision erfc or a dedicated library.