Skip to content
FiftyCalc Free calculators for all 50 states

Lognormal Distribution Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter the mean μ and standard deviation σ of the natural log of X and a value x to get lognormal probabilities and summary values.

Result

Sample figures

P(X ≤ x)—

P(X > x) —

  • Density f(x)—
  • Mean, e^(μ + σ²/2)—
  • Median, e^μ—
  • Mode, e^(μ − σ²)—
  • Variance—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Lognormal Distribution Calculator

μ, mean of ln X: enter a number. Prefilled example: 0.

σ, standard deviation of ln X: enter 0 or more. Prefilled example: 0.5.

Value x (greater than 0): enter 0 or more. Prefilled example: 1.5.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. μ, mean of ln X: enter a number.
  2. σ, standard deviation of ln X: enter 0 or more.
  3. Value x (greater than 0): enter 0 or more.
  4. Read the result: P(X ≤ x); the panel also shows P(X > x), Density f(x), Mean, e^(μ + σ²/2), Median, e^μ, Mode, e^(μ − σ²) and Variance.

How this calculator works

X is lognormal when ln X is normal with mean μ and standard deviation σ. Then P(X ≤ x) = Φ((ln x − μ) ÷ σ) and the density is f(x) = exp(−(ln x − μ)² ÷ (2σ²)) ÷ (xσ√(2π)) for x > 0.

Mean = e^(μ + σ²/2), median = e^μ, mode = e^(μ − σ²), variance = (e^(σ²) − 1) e^(2μ + σ²). Note that μ and σ describe ln X, not X itself.

The formula

  1. Cdf=normcdf⁡(ln⁡(x),μ,σ)
Symbols used in the formula
SymbolMeaning
μμ, mean of ln X
σσ, standard deviation of ln X
xValue x (greater than 0)
CdfP(X ≤ x)
normcdf(x, m, s)the probability that a Gaussian variable with mean m and standard deviation s is at most x (mean zero and standard deviation one without m and s).

Worked example

μ, mean of ln X0
σ, standard deviation of ln X0.5
Value x (greater than 0)1.5
P(X > x)0.2087
Density f(x)0.3829
Mean, e^(μ + σ²/2)1.1331
Median, e^μ1
Mode, e^(μ − σ²)0.7788
Variance0.3647
  1. Cdf=normcdf⁡(ln⁡(1.5),0,0.5)=0.791297

P(X ≤ x) 0.7913

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

Why is the lognormal mean larger than the median?

The distribution is skewed to the right: a long tail of large values pulls the mean (e^(μ + σ²/2)) above the median (e^μ).

What is P(X ≤ 1.5) when μ = 0 and σ = 0.5?

Φ(ln 1.5 ÷ 0.5) = Φ(0.811) ≈ 0.7913.

Questions answered

Related calculators