Lognormal Distribution Calculator

Lognormal CDF, survival, pdf, hazard, mean, median, mode, SD and percentiles from μ and σ of ln X, the median, or the mean and SD.

Half of values fall below it. It equals e^μ.
Greater than 0. Not the standard deviation of X itself.
Gives P(X ≤ x), P(X > x), the pdf and the hazard at x. Zero or more.
%
For example 90 gives the value that 90% of X falls below.

Results

P(X ≤ 5000)
0.002781
P(X > 5000) (survival / reliability)
0.997219
Probability density f(x)
0.00000341747
Hazard (failure rate) h(x) = f(x) ÷ P(X > x)
0.000003427
90th percentile
37,959.05
Mean of X = e^(μ + σ²/2)
22,662.97
Median of X = e^μ
20,000
Mode of X = e^(μ − σ²)
15,576.02
Standard deviation of X
12,078.01
Parameters used
μ = 9.90349, σ = 0.5 (mean and SD of ln X)

How it’s calculated

A variable X is lognormal when its natural logarithm ln X is normally distributed. It suits quantities that are always positive and skewed to the right because they grow by multiplication: failure times from corrosion or crack growth, incomes, particle sizes, file sizes. The two parameters are the mean μ and standard deviation σ of ln X, not of X itself; the median of X is T50 = e^μ, so you can enter either.

z = (ln x − μ) / σ CDF F(x) = Φ(z) PDF f(x) = e^(−z²/2) / (x·σ·√(2π)) Hazard h(x) = f(x) / (1 − F(x)) Mean e^(μ + σ²/2) Median e^μ Mode e^(μ − σ²) Variance e^(2μ + σ²)·(e^(σ²) − 1) Percentile p: e^(μ + σ·z_p) From the mean m and SD s of X: σ² = ln(1 + s²/m²), μ = ln m − σ²/2

Worked example (NIST/SEMATECH e-Handbook §8.1.6.4): σ = 0.5, median life T50 = 20,000 hours, t = 5000 hours. z = (ln 5000 − ln 20000) / 0.5 = −2.7726, so the CDF is Φ(−2.7726) = 0.002781, the pdf is 3.4175 × 10⁻⁶ and the failure rate is 3.427 × 10⁻⁶ per hour, as in the handbook. The mean life is 20,000 × e^0.125 = 22,663 hours.

Frequently asked questions

Are μ and σ the mean and standard deviation of X?

No. They are the mean and standard deviation of ln X. The mean of X is e^(μ + σ²/2), which is always larger than the median e^μ. If you only know the mean and SD of X, choose that option and the calculator converts them.

How do I get μ from data?

Take the natural log of every value, then find the mean (μ) and standard deviation (σ) of those logs. e^μ is the geometric mean of the data and estimates the median.

Why is the mean bigger than the median?

The lognormal has a long right tail. A few very large values pull the mean up, while half of the values still lie below the median e^μ.

What does the hazard tell me?

In reliability work it is the instantaneous failure rate of units that have survived to time x. For a lognormal it rises at first and then falls, unlike the Weibull with shape above 1, whose hazard keeps rising.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator