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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- μ, mean of ln X: enter a number.
- σ, standard deviation of ln X: enter 0 or more.
- Value x (greater than 0): enter 0 or more.
- 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
| Symbol | Meaning |
|---|---|
| μ, mean of ln X | |
| σ, standard deviation of ln X | |
| Value x (greater than 0) | |
| P(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 X | 0 |
|---|---|
| σ, standard deviation of ln X | 0.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 |
| Variance | 0.3647 |
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.