Rayleigh Distribution Calculator

Compute probabilities, density, mean and spread for a nonnegative Rayleigh variable.

Math and PercentUpdated 2026-11-182 min read
Rayleigh Distribution Calculator
Must be zero or positive.
Used only for the Between question, and must be at least x.
Positive scale parameter of the distribution.
Probability or density
...
Density at x...
Mean...
Standard deviation...

What it does

If two independent normal components have the same spread, the length of the resulting vector follows a Rayleigh distribution. That makes it the natural model for magnitudes such as wind speed, wave height and the size of measurement error in two dimensions.

The distribution starts at zero and has a single scale parameter. A larger scale stretches the curve to the right, raising both the typical magnitude and its variability. Unlike a normal curve, it cannot produce negative values.

This page answers four common questions: chance of a value up to x, chance of a value above x, chance of landing inside an interval, and the density at a point. It also reports the mean and standard deviation for a quick sense of the scale.

Rayleigh behaviour depends on the components being independent with equal variance and zero mean. If those assumptions fail, a more general distribution may be needed, especially when one direction dominates.

How to use

  1. Choose the probability question you want answered.
  2. Enter a nonnegative value x in the same units as the scale.
  3. For an interval, add a second value at or above x.
  4. Enter the positive scale parameter.
  5. Read the result as a decimal and a percent.
  6. Check that the reported mean is consistent with your scale.

Formula

For x >= 0: F(x) = 1 - exp(-x^2/(2 x sigma^2)) and f(x) = (x/sigma^2) exp(-x^2/(2 x sigma^2)). Mean = sigma x sqrt(PI/2), variance = sigma^2 x (4 - PI)/2.
sigma
Positive scale parameter in the same units as x.
x
Nonnegative value being evaluated.
F(x)
Cumulative probability of a value at most x.
f(x)
Density at x, zero for negative values.

Some tables use a parameter alpha equal to two sigma squared. That changes the written formula but not the distribution. Below zero both the density and the cumulative probability are zero.

Worked example

Example: scale 2 and x = 2

Scale sigma = 2 and x = 2, asking for the probability of a value at most 2.

  1. Square the standardized value: 2 squared / (2 x 2 squared) = 4 / 8 = 0.5.
  2. Survival term: exp(-0.5) = 0.606531.
  3. Cumulative probability: 1 - 0.606531 = 0.393469.
  4. Density: (2 / 4) x 0.606531 = 0.303265.
  5. Mean: 2 x sqrt(PI / 2) = 2.5066.
  6. Standard deviation: 2 x sqrt((4 - PI) / 2) = 1.3103.
  7. Tool shows probability 0.3935 (39.35 %), density 0.3033, mean 2.5066 and sd 1.3103.

Reference table

Rayleigh probabilities and density at scale 2
Value xP(X <= x)Density
10.1175 (11.75 %)0.2206
20.3935 (39.35 %)0.3033
40.8647 (86.47 %)0.1353

Limits

  • Assumes two equal variance independent normal components.
  • Cannot model negative values.
  • Does not cover a nonzero location or offset.
  • Real magnitudes may follow a more general Weibull shape.

Common mistakes

  • Entering a negative x even though the support starts at zero.
  • Confusing the scale sigma with a variance.
  • Using the alpha parameter form while the field expects sigma.
  • Reading the density as a probability of an exact value.
  • Applying the model when the two components have different spreads.

Try it yourself

Quick checks. Answers sit tucked under each question.

Scale 2, what is the chance of a value at least 2?

0.6065 (60.65 %), equal to exp(-0.5).

Scale 2, what is the chance of a value between 1 and 4?

0.7472 (74.72 %) from 0.8647 minus 0.1175.

What are the mean and standard deviation at scale 2?

Mean 2.5066 and standard deviation 1.3103.

Questions

What does the scale represent?

It sets the length scale of the magnitudes. Doubling it doubles the mean and standard deviation.

Why can values not be negative?

The variable is a length or magnitude built from squared components, so it starts at zero.

How is this related to the normal distribution?

It is the distribution of the distance from the origin when two coordinates are independent normals with equal variance.

What is the mode?

The density peaks at x equal to sigma, which is 2 in the worked example.

When should I use Weibull instead?

When the underlying component assumptions do not hold or the tail shape needs an extra parameter.

Is the density at x a probability?

No. Only an area under the density over an interval gives a probability.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.