Lognormal Distribution Calculator

Compute PDF, CDF, and key statistics for the lognormal distribution given mu and sigma.

๐Ÿ“‰ Lognormal Distribution Calculator
Mean of ln(X) โ€” mu0
-55
Std dev of ln(X) โ€” sigma1
0.13
Query value โ€” x1
0.0120
Mean of ln(X) โ€” mu0
-55
Std dev of ln(X) โ€” sigma1
0.13
CDF P(X ≤ x)
PDF f(x)
Survival P(X > x)
Mean
Median
Mode
Std Dev
Mean
Median
Mode
Variance
Std Dev
Skewness
Excess Kurtosis

๐Ÿ“‰ 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

f(x)  =  (1 ÷ (x ⋅ σ ⋅ √(2π))) ⋅ exp(−(ln x − μ)² ÷ (2σ²))
x = query value (must be > 0)
μ = mean of ln(X), the log-scale location parameter
σ = standard deviation of ln(X), the log-scale scale parameter (> 0)
CDF = Φ((ln x − μ) ÷ σ), where Φ is the standard normal CDF
Mean = exp(μ + σ² / 2)
Median = exp(μ)
Mode = exp(μ − σ²)
Variance = (exp(σ²) − 1) ⋅ exp(2μ + σ²)
Skewness = (exp(σ²) + 2) ⋅ √(exp(σ²) − 1)
Excess Kurtosis = exp(4σ²) + 2⋅exp(3σ²) + 3⋅exp(2σ²) − 6
Example: μ = 0, σ = 1, x = 1 gives CDF = 50%, PDF ≈ 0.3989, Mean ≈ 1.6487

๐Ÿ“– How to Use This Calculator

Steps

1
Choose a calculation mode โ€” Select Probability to find CDF, PDF, and survival for a specific x value, or select Stats to explore distribution-wide statistics like mean, variance, and skewness.
2
Enter mu and sigma โ€” Type the log-scale mean (mu) and log-scale standard deviation (sigma, must be positive) into the input boxes or drag the sliders.
3
Enter x (Probability mode) โ€” In Probability mode, enter the query value x (must be greater than 0) for which you want to compute the CDF and PDF.
4
Click Calculate โ€” Press Calculate to instantly see the CDF, PDF, survival function, and key moments. Results update automatically as you adjust sliders.

๐Ÿ’ก Example Calculations

Example 1 โ€” Standard Lognormal LN(0, 1) at x = 1

Find P(X ≤ 1) for a standard lognormal distribution

1
Parameters: mu = 0, sigma = 1.
2
CDF = Φ((ln 1 − 0) / 1) = Φ(0) = 50%.
3
PDF at x = 1: f(1) = 1/(1 ⋅ 1 ⋅ √(2π)) ≈ 0.3989.
4
Mean = exp(0 + 0.5) ≈ 1.6487; Median = exp(0) = 1; Mode = exp(0 − 1) ≈ 0.3679.
CDF = 50.00% | PDF = 0.3989 | Mean = 1.6487
Try this example →

Example 2 โ€” Standard Lognormal LN(0, 1) at x = 2

Find the probability that X is at most 2 under LN(0, 1)

1
Parameters: mu = 0, sigma = 1, x = 2.
2
CDF = Φ(ln(2) / 1) = Φ(0.6931) ≈ 75.58%.
3
Survival P(X > 2) = 1 − 0.7558 ≈ 24.42%.
CDF = 75.58% | Survival = 24.42%
Try this example →

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

1
Parameters: mu = 2, sigma = 0.5, x = 10.
2
CDF = Φ((ln 10 − 2) / 0.5) = Φ((2.3026 − 2) / 0.5) = Φ(0.6052) ≈ 72.73%.
3
Mean of X = exp(2 + 0.125) = exp(2.125) ≈ 8.368. The median = exp(2) ≈ 7.389.
CDF = 72.73% | Mean = 8.368 | Median = 7.389
Try this example →

โ“ Frequently Asked Questions

What is the lognormal distribution and when should I use it?+
The lognormal distribution models positive-valued quantities whose logarithm is normally distributed. Use it when your data is always positive, right-skewed, and arises from multiplicative processes. Examples include stock prices, income data, insurance claims, particle sizes, and system latencies.
How is mu different from the mean of the lognormal distribution?+
Mu is the mean of ln(X), not the mean of X itself. The actual mean of X is exp(mu + sigma^2 / 2). For mu = 0 and sigma = 1 this equals approximately 1.6487, not 1. As sigma grows, the mean increases even if mu stays fixed because the right tail pulls the average upward.
What is the lognormal CDF formula?+
The CDF is F(x) = Phi((ln x - mu) / sigma), where Phi is the standard normal cumulative distribution function. This works for any x greater than 0. For x at or below 0 the CDF is 0 because lognormal variables are strictly positive.
How do I find the median of a lognormal distribution?+
The median is simply exp(mu). This is because setting the CDF equal to 0.5 gives Phi(0) = 0.5, which corresponds to (ln(median) - mu) / sigma = 0, so ln(median) = mu and median = exp(mu). The median is always less than the mean for sigma greater than 0.
What is the mode of a lognormal distribution and how is it calculated?+
The mode is exp(mu - sigma^2). It is always less than both the mean and median. For large sigma the mode can be very close to zero even when the mean is large, illustrating the heavily right-skewed nature of the distribution at high spread values.
Why is the lognormal distribution used in finance and stock modeling?+
Stock prices cannot go below zero, and percentage changes (log-returns) tend to be approximately normally distributed. If log-returns are normally distributed, the price at any future time follows a lognormal distribution. The Black-Scholes options pricing model relies on exactly this assumption.
How do I estimate mu and sigma from data?+
Take the natural logarithm of every observation. Then compute the sample mean and sample standard deviation of these log-transformed values. Those sample statistics are maximum-likelihood estimators of mu and sigma respectively.
What is the skewness formula for a lognormal distribution?+
Skewness equals (exp(sigma^2) + 2) * sqrt(exp(sigma^2) - 1). It is always positive (right-skewed). For sigma = 0.5 the skewness is approximately 1.75; for sigma = 1 it is approximately 6.18. The skewness grows rapidly with sigma.
What is the variance of a lognormal distribution?+
The variance is (exp(sigma^2) - 1) * exp(2*mu + sigma^2). This can be very large relative to the mean when sigma is large. For mu = 0 and sigma = 1, the variance is approximately 4.67, giving a coefficient of variation (std dev / mean) greater than 1.
How does changing sigma affect the shape of the lognormal distribution?+
Larger sigma spreads the distribution more. The mean increases, the mode decreases, and the skewness and kurtosis rise dramatically. For sigma near 0 the distribution is nearly symmetric and bell-shaped (resembling a normal). For sigma around 1 or greater the distribution is strongly right-skewed with a heavy upper tail.
What is the difference between lognormal and exponential distributions?+
Both are positive-valued, but they have different shapes. The exponential distribution has a monotonically decreasing PDF starting from x = 0 with a constant hazard rate. The lognormal PDF rises from zero, peaks at the mode, then falls, and its hazard rate is not constant. Lognormal is better for data that first increases then decreases in hazard, such as certain failure-time models.
Can the lognormal distribution model environmental or biological data?+
Yes. Environmental concentrations of pollutants, particle sizes in aerosols, bacterial colony counts, latency periods of diseases, and body weight distributions in animal populations all frequently fit lognormal distributions. Regulatory agencies like the EPA often use lognormal models when setting safe exposure thresholds.