St · Statistics & Probability

How to Find the Mean and Variance of an Exponential Distribution

Updated 13 October 2026

At a glance

  1. 1. Identify the parameter

    Check whether the distribution is written using a rate or a scale; the formulas differ in appearance.

  2. 2. Write the density

    For rate λ, the density is λe^(−λx) for x ≥ 0.

  3. 3. Calculate two moments

    Find E[X] and E[X²] by integrating against the density.

  4. 4. Apply the variance formula

    Subtract the square of the mean from the second moment.

The mean and variance of an exponential distribution depend on how its parameter is defined. The most common convention uses a rate parameter, usually written as λ\lambda. Under that convention, the mean is 1/λ1/\lambda and the variance is 1/λ21/\lambda^2. The derivation below starts from the probability density function, then works through a numerical example and explains the alternative scale convention.

Exponential distribution using the rate parameter

A continuous random variable XX has an exponential distribution with rate λ>0\lambda>0 if its density is

f(x)=λe−λx,x≥0,f(x)=\lambda e^{-\lambda x},\qquad x\ge 0,

and f(x)=0f(x)=0 for x<0x<0. The rate describes how quickly events occur, so its units are the inverse of the units used for XX. For example, if XX is measured in minutes, λ\lambda is measured in events per minute (or, more precisely, inverse minutes).

For a continuous random variable, the expectation is the integral of the value times its density:

E[X]=∫0∞xf(x) dx.\mathbb{E}[X]=\int_0^\infty x f(x)\,dx.

The second moment is calculated similarly, replacing xx with x2x^2:

E[X2]=∫0∞x2f(x) dx.\mathbb{E}[X^2]=\int_0^\infty x^2 f(x)\,dx.

Once these two moments are known, use Var⁡(X)=E[X2]−(E[X])2\operatorname{Var}(X)=\mathbb{E}[X^2]-(\mathbb{E}[X])^2.

Deriving the mean

Substitute the exponential density into the expectation integral:

E[X]=∫0∞xλe−λx dx=[−xe−λx]0∞+∫0∞e−λx dx=0+1λ=1λ.\begin{aligned} \mathbb{E}[X] &=\int_0^\infty x\lambda e^{-\lambda x}\,dx\\ &=\left[-xe^{-\lambda x}\right]_0^\infty+\int_0^\infty e^{-\lambda x}\,dx\\ &=0+\frac{1}{\lambda}\\ &=\frac{1}{\lambda}. \end{aligned}

The second line follows from integration by parts. The boundary term is zero: at x=0x=0 it is zero, and as xx tends to infinity, xe−λxxe^{-\lambda x} tends to zero. The remaining integral evaluates to 1/λ1/\lambda.

Deriving the variance

First compute the second moment:

E[X2]=∫0∞x2λe−λx dx=2∫0∞xe−λx dx=2λ2.\begin{aligned} \mathbb{E}[X^2] &=\int_0^\infty x^2\lambda e^{-\lambda x}\,dx\\ &=2\int_0^\infty xe^{-\lambda x}\,dx\\ &=\frac{2}{\lambda^2}. \end{aligned}

The second line is another integration by parts; the boundary term vanishes, just as in the mean calculation. Now subtract the square of the mean:

Var⁡(X)=E[X2]−(E[X])2=2λ2−(1λ)2=1λ2.\begin{aligned} \operatorname{Var}(X) &=\mathbb{E}[X^2]-(\mathbb{E}[X])^2\\ &=\frac{2}{\lambda^2}-\left(\frac{1}{\lambda}\right)^2\\ &=\frac{1}{\lambda^2}. \end{aligned}

Therefore, for the rate parameterization,

E[X]=1λ,Var⁡(X)=1λ2.\boxed{\mathbb{E}[X]=\frac{1}{\lambda},\qquad \operatorname{Var}(X)=\frac{1}{\lambda^2}.}

The standard deviation is the square root of the variance, so it is also 1/λ1/\lambda. The mean and standard deviation have the same units as XX, while the variance has squared units.

Worked example

Suppose a waiting time XX, measured in minutes, follows an exponential distribution with rate λ=0.4\lambda=0.4 per minute. Then

E[X]=10.4=2.5 minutes,Var⁡(X)=10.42=6.25 minutes2.\mathbb{E}[X]=\frac{1}{0.4}=2.5\text{ minutes}, \qquad \operatorname{Var}(X)=\frac{1}{0.4^2}=6.25\text{ minutes}^2.

The standard deviation is 6.25=2.5\sqrt{6.25}=2.5 minutes. As a related check, the probability of waiting longer than five minutes is

Pr⁡(X>5)=e−λ⋅5=e−2≈0.1353.\Pr(X>5)=e^{-\lambda\cdot 5}=e^{-2}\approx 0.1353.

This uses the exponential survival function, Pr⁡(X>t)=e−λt\Pr(X>t)=e^{-\lambda t} for t≥0t\ge0. It also illustrates why the rate’s units matter: multiplying a rate in inverse minutes by a time in minutes gives a unitless exponent.

If the parameter is a scale instead

Some texts define the exponential distribution with a scale parameter θ>0\theta>0 and write its density as

f(x)=1θe−x/θ,x≥0.f(x)=\frac{1}{\theta}e^{-x/\theta},\qquad x\ge0.

Since θ=1/λ\theta=1/\lambda, the same results become

E[X]=θ,Var⁡(X)=θ2.\mathbb{E}[X]=\theta,\qquad \operatorname{Var}(X)=\theta^2.

Check the density or the author’s parameter definition before using a formula. A parameter named θ\theta is not automatically a scale: notation varies, and the defining density is what settles the convention.

Common mistakes

  • Mixing up rate and scale. With a rate λ\lambda, the mean is its reciprocal. With a scale θ\theta, the mean equals the scale.
  • Calling the standard deviation the variance. The variance is 1/λ21/\lambda^2; the standard deviation is 1/λ1/\lambda.
  • Dropping the squared units. If time is measured in minutes, variance is in minutes squared, not minutes.
  • Using the formula outside the exponential model. These results require a nonnegative continuous variable with the stated exponential density; other distributions can have different moments.

References

  1. A First Course in Probability, Sheldon Ross

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.