Log-Normal Probability Calculator

Compute P(X ≤ x), mean, median, mode, variance, and standard deviation

Overview

This calculator computes the cumulative probability \( P(X \le x) \), mean, median, mode, variance, and standard deviation for a log-normal distribution.

Important: the parameters \( \mu \) and \( \sigma \) refer to the underlying normal distribution of \( \ln(X) \), not to the mean and standard deviation of \( X \) itself. The mean of \( X \) is \( e^{\mu + \sigma^2/2} \), which is always larger than the median \( e^\mu \) because the log-normal distribution is right-skewed.

Log-Normal Distribution

The probability density function of the log-normal distribution is:

\[ f(x) = \frac{1}{x\sigma\sqrt{2\pi}}\, e^{-\frac{(\ln x - \mu)^2}{2\sigma^2}}, \quad x > 0 \]
Several log-normal density curves for different μ and σ, showing right-skewed shapes with a long upper tail
Figure 1 — Log-normal densities for various \( \mu \) and \( \sigma \).

Cumulative Probability

The cumulative probability \( P(X \le x) \) can be expressed via the error function:

\[ F_X(x) = \frac{1}{2}\left(1 + \operatorname{Erf}\!\left(\frac{\ln x - \mu}{\sigma\sqrt{2}}\right)\right) \]

where \( \operatorname{Erf}(x) \) is the error function. Equivalently, \( F_X(x) = \Phi\!\left(\frac{\ln x - \mu}{\sigma}\right) \), where \( \Phi \) is the standard normal CDF.

Mean, Median, Mode, Variance, Standard Deviation

Descriptive statistics of the log-normal distribution
Quantity Formula
Mean \( e^{\mu + \sigma^2/2} \)
Median \( e^{\mu} \)
Mode \( e^{\mu - \sigma^2} \)
Variance \( (e^{\sigma^2} - 1)\, e^{2\mu + \sigma^2} \)
Standard deviation \( \sqrt{(e^{\sigma^2} - 1)\, e^{2\mu + \sigma^2}} \)

The mean is always greater than the median for a log-normal distribution (because of the long right tail), and the median is always greater than the mode. For small \( \sigma \) the three nearly coincide.


Calculator

Enter \( \mu \) (any real number), \( \sigma > 0 \), and \( x > 0 \).

Results


Worked Example — \( \mu = 3 \), \( \sigma = 2 \), \( x = 2 \)

View solution

Cumulative probability.

\[ F_X(2) = \Phi\!\left(\frac{\ln 2 - 3}{2}\right) = \Phi\!\left(\frac{0.6931 - 3}{2}\right) = \Phi(-1.1534) \approx 0.1244 \]

Descriptive statistics.

  • Mean: \( e^{3 + 4/2} = e^{5} \approx 148.4132 \)
  • Median: \( e^{3} \approx 20.0855 \)
  • Mode: \( e^{3 - 4} = e^{-1} \approx 0.3679 \)
  • Variance: \( (e^{4} - 1)\, e^{6+4} = (54.598 - 1)\, e^{10} \approx 53.598 \times 22026.4658 \approx 1{,}180{,}447.16 \)
  • Standard deviation: \( \sqrt{1{,}180{,}447.16} \approx 1{,}086.48 \)

Observation. The mean (≈148) is much larger than the median (≈20) — the signature of a right-skewed distribution.


Practice Problems

Practice 1 — CDF

For \( \mu = 0 \), \( \sigma = 1 \), find \( P(X \le 1) \).

Answer
\[ F_X(1) = \Phi\!\left(\frac{\ln 1 - 0}{1}\right) = \Phi(0) = 0.5 \]

(The median of the log-normal with \( \mu = 0 \) is \( e^0 = 1 \).)

Practice 2 — Descriptive statistics

For \( \mu = 1 \), \( \sigma = 0.5 \), compute the mean, median, and mode.

Answer
  • Mean: \( e^{1 + 0.125} = e^{1.125} \approx 3.0802 \)
  • Median: \( e^{1} \approx 2.7183 \)
  • Mode: \( e^{1 - 0.25} = e^{0.75} \approx 2.1170 \)

Observe the ordering: mode < median < mean, as expected for a right-skewed distribution.

Practice 3 — Symmetry in the limit

What happens to the mean, median, and mode of a log-normal distribution as \( \sigma \to 0 \)?

Answer

As \( \sigma \to 0 \):

  • Mean: \( e^{\mu + \sigma^2/2} \to e^\mu \)
  • Median: \( e^\mu \) (unchanged)
  • Mode: \( e^{\mu - \sigma^2} \to e^\mu \)

All three converge to \( e^\mu \) — the distribution becomes a point mass at \( e^\mu \). For small but positive \( \sigma \), the three are nearly identical; the right-skew becomes more pronounced as \( \sigma \) increases.

Frequently Asked Questions

What is the log-normal distribution?

The distribution of a positive random variable \(X\) whose logarithm \( \ln(X) \) is normally distributed. Its PDF is \( f(x) = \dfrac{1}{x\sigma\sqrt{2\pi}}\, e^{-(\ln x - \mu)^2/(2\sigma^2)} \) for \(x > 0\). Used to model incomes, stock prices, and biological measurements.

What do μ and σ mean in the log-normal distribution?

They are the mean and standard deviation of the underlying normal variable \( \ln(X) \), not of \(X\) itself. The mean of \(X\) is \( e^{\mu + \sigma^2/2} \).

Why is the mean greater than the median?

The log-normal distribution is right-skewed with a long upper tail. The mean \( e^{\mu + \sigma^2/2} \) is pulled upward by extreme large values, while the median \( e^\mu \) splits the distribution in half. The gap grows with \( \sigma \).

What is the median of a log-normal distribution?

The median is \( e^\mu \). It represents the middle value (50% below, 50% above) and is often preferred to the mean as a "typical" value because it's not pulled up by the right tail.

More References & Links

Last updated: October 20, 2026