Lognormal Distribution Calculator
Compute PDF, CDF, and key statistics for the lognormal distribution given mu and sigma.
📉 What is the Lognormal Distribution?
The lognormal distribution is a continuous probability distribution for a random variable X whose natural logarithm follows a normal distribution. In other words, if Y = ln(X) is normally distributed with mean mu and standard deviation sigma, then X is lognormally distributed. The key consequence is that X is always positive, never zero or negative, making this distribution ideal for quantities that cannot go below zero.
Lognormal distributions appear throughout science, finance, and engineering. Stock prices are commonly modeled as lognormal because percentage changes (not absolute changes) are symmetric and normally distributed. Insurance claim amounts, city population sizes, internet file sizes, blood pressure readings in large populations, and the latency of web requests all tend to follow lognormal or near-lognormal patterns. Any time a variable is the product of many independent multiplicative factors, the central limit theorem on the logarithms guarantees approximate lognormality.
A common misconception is that mu is the mean of X. It is not. Mu is the mean of ln(X). The actual mean of X is exp(mu + sigma squared divided by 2), which always exceeds exp(mu). Similarly, sigma is not the standard deviation of X but of ln(X). This distinction matters greatly: a dataset with mu = 0 and sigma = 1 has a mean of approximately 1.65 and a standard deviation of approximately 2.16, illustrating how the lognormal distribution stretches the upper tail relative to a simple normal distribution centered at 1.
This calculator handles both the probability query use case (given x, find P(X at or below x), the PDF height, and the survival probability) and the pure statistics use case (given mu and sigma alone, find mean, variance, skewness, and kurtosis). Toggle between Probability and Stats mode using the tabs above.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 — Standard Lognormal LN(0, 1) at x = 1
Find P(X ≤ 1) for a standard lognormal distribution
Example 2 — Standard Lognormal LN(0, 1) at x = 2
Find the probability that X is at most 2 under LN(0, 1)
Example 3 — Asset Price Model LN(2, 0.5) at x = 10
Stock price model with log-mean 2 and log-volatility 0.5, threshold $10
❓ Frequently Asked Questions
🔗 Related Calculators
What is the lognormal distribution used for in practice?
The lognormal distribution models quantities that are always positive and multiplicatively influenced by many small random factors. Common uses include stock prices, insurance claim sizes, income distributions, particle diameters in aerosols, and latency measurements in computer systems.
What is the difference between mu and the actual mean of X?
Mu is the mean of ln(X), the logarithm of the random variable. The actual mean of X is exp(mu + sigma squared divided by 2), which is always larger than exp(mu). Only when sigma is very small do the two coincide approximately.
How do I calculate lognormal CDF?
The CDF at x equals the standard normal CDF evaluated at (ln(x) minus mu) divided by sigma. In notation: F(x) = Phi((ln x - mu) / sigma), where Phi is the standard normal CDF.
What is the lognormal PDF formula?
The PDF is f(x) = (1 / (x * sigma * sqrt(2*pi))) * exp(-(ln(x) - mu)^2 / (2 * sigma^2)) for x greater than 0. It equals zero for x at or below zero.
How do I find the median of a lognormal distribution?
The median equals exp(mu). This follows because P(X less than or equal to exp(mu)) = Phi((ln(exp(mu)) - mu) / sigma) = Phi(0) = 0.5. So exactly half the distribution lies below exp(mu).
How is the mode of a lognormal distribution calculated?
The mode (peak of the PDF) is exp(mu minus sigma squared). For sigma greater than 1, the mode is less than 1 even when mu equals 0, illustrating how larger spread pulls the peak leftward.
What does skewness tell me about a lognormal distribution?
Skewness measures asymmetry. The lognormal skewness equals (exp(sigma squared) + 2) * sqrt(exp(sigma squared) - 1). It is always positive, confirming the distribution has a right tail. Higher sigma produces more skewness.
What is excess kurtosis for a lognormal distribution?
Excess kurtosis equals exp(4*sigma^2) + 2*exp(3*sigma^2) + 3*exp(2*sigma^2) - 6. For sigma = 1 this is approximately 110.94, far above the normal value of 0, indicating extremely heavy tails.
Can I use this calculator for financial modeling?
Yes. Lognormal distributions are foundational in the Black-Scholes options pricing model, where log-returns are assumed normally distributed. Enter the drift (mu) and volatility (sigma) to find probabilities that an asset price exceeds a target value x.
What happens when sigma approaches zero?
As sigma approaches zero the distribution collapses to a point mass at exp(mu). The PDF becomes infinitely tall and narrow, the mean approaches the median and mode (all equal exp(mu)), and skewness and kurtosis approach their normal distribution limits.
How is the lognormal related to the normal distribution?
If X follows a lognormal distribution with parameters mu and sigma, then ln(X) follows a normal distribution with mean mu and standard deviation sigma. Every lognormal probability can therefore be computed by transforming to the standard normal.
What is the survival function in the lognormal context?
The survival function (also called the complementary CDF) equals 1 minus F(x), giving the probability that X is greater than x. It is widely used in reliability engineering to express the probability that a component survives beyond time x.