🧮
🧮 Math & statistics

Rayleigh Distribution Calculator (PDF, CDF, mean, median, mode)

Results update as you type.

Your numbers

Understanding the Rayleigh distribution calculator — concept and principle

This calculator gives probabilities and summary values for the Rayleigh distribution: the cumulative probability P(X ≤ x), the tail probability, the density, the mean, median, mode, variance, standard deviation and the 95th percentile. Use it for wind speed, the amplitude of random noise or waves, radio signal fading and the miss distance of shots around a target.

Rayleigh distribution as shots around a targetMiss distance = √(X² + Y²)σ = 2x = 3P(X ≤ 3) 0.675mode σ = 2median 2.355mean 2.50795% within 4.895
With σ = 2 in each direction, about 68% of shots land within 3 of the centre.

How it is calculated

With scale parameter σ > 0 and x ≥ 0:

The principle

If X and Y are independent normal variables with mean 0 and the same standard deviation σ, the length R = √(X² + Y²) of the vector (X, Y) follows a Rayleigh distribution. That fits any quantity made of two random, perpendicular components of similar size: the two horizontal components of wind, the in-phase and quadrature parts of noise, or horizontal and vertical aiming errors. The density is zero at 0, because hitting exactly the centre is unlikely, peaks at x = σ, and has a long right tail.

Worked example

Default inputs: σ = 2, x = 3.

  1. x²/(2σ²) = 9 ÷ 8 = 1.125.
  2. P(X ≤ 3) = 1 − e^(−1.125) ≈ 1 − 0.324652 = 0.675348.
  3. Density: (3 ÷ 4) × 0.324652 ≈ 0.243489.
  4. Mean = 2 × √(π/2) ≈ 2.50663; median = 2 × √(2 ln 2) ≈ 2.35482; mode = 2.
  5. Variance = (4 − π) × 4 ÷ 2 ≈ 1.71681; SD ≈ 1.31027; 95th percentile = 2√(−2 ln 0.05) ≈ 4.89549.
How P(X ≤ x) changes with x (0 or more)How P changes with x00.20.40.60.810.751.52.2533.754.56Example: 0.675348x (0 or more)
Each point is the calculator re-run with only “x (0 or more)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
x (0 or more)P(X ≤ x)
0.750.0678975
1.50.24516
2.250.468904
30.675348
3.750.827578
4.50.92044
60.988891

How to read the result

P(X ≤ x) is the share of values at or below x; here about 68% of values are 3 or less and 32% are larger. The mode, median and mean increase in that order because the distribution is right-skewed. The 95th percentile is a practical upper planning value: only 5% of values exceed it.

Common mistakes

Keep in mind: The Rayleigh model is an idealisation. For engineering decisions such as wind-turbine siting or radio link design, fit the model to measured data and follow the relevant standards.

Frequently asked questions

How is the Rayleigh distribution related to the Weibull?

It is a Weibull distribution with shape parameter 2.

How do I estimate σ from data?

A common estimate is σ̂ = √(Σxᵢ² ÷ (2n)), the maximum likelihood estimate.

Why is the density zero at x = 0?

Because a length of exactly zero would need both components to be zero at once, which is very unlikely.

Sources: Weisstein, E. W., "Rayleigh Distribution", Wolfram MathWorld

Checked 9 Nov 2026. Weisstein, E. W., “Rayleigh Distribution”, Wolfram MathWorld (P(r) = r·e^(−r²/(2s²)) ÷ s², eq. 1; D(r) = 1 − e^(−r²/(2s²)), eq. 2; mean s√(π/2), eq. 12; variance (4 − π)s² ÷ 2, eq. 13). Median and quantiles solved from eq. 2, mode from the maximum of eq. 1.

🧮 All math & statistics tools →🌍 Calculators by country →