Lognormal Distribution Calculator — CDF, PDF, Quantiles & Mean

Lognormal Distribution Calculator

Find lognormal probabilities, density, percentiles, and summary measures—or generate a random sample—from the log-scale parameters or from the mean and standard deviation of your data.

μ and σ describe ln(X), not X

If you only know the ordinary mean and standard deviation of your positive data, switch to Mean & SD of X and the calculator converts them to log-scale parameters for you.

What do you want to calculate?

Distribution parameters

How to Use This Calculator

  1. Choose a mode: Probability (CDF or tail area), PDF (density at a point), Quantile (value for a given percentile), Measures (mean, median, mode, variance, skewness), or Sample (random values).
  2. Enter the parameters. Use log-scale μ and σ if you already have them, or Mean & SD of X if you only know the ordinary mean and standard deviation of your positive data.
  3. Fill in the mode-specific field: x, the bounds a and b, the probability p, or the sample size n.
  4. Pick the rounding and press Calculate. The curve shows the shaded probability or the marked value, and the step list shows the intermediate z-score.

What Is a Lognormal Distribution?

A lognormal distribution calculator calculates probabilities, percentiles, and distribution values for a lognormally distributed variable. A variable follows a lognormal distribution when its natural logarithm follows a normal distribution. Enter parameters such as the mean and standard deviation to calculate cumulative probabilities or values within specified ranges.

Turned around: if Y is normal, then X = eY is lognormal. Because eY is always positive, a lognormal variable never takes zero or negative values, and its curve is skewed to the right with a long upper tail.

The distribution has two parameters. μ is the mean of ln(X) and sets the scale—eμ is the median of X. σ is the standard deviation of ln(X) and sets the shape—the larger it is, the stronger the skew. Neither is the mean or standard deviation of X itself, which is the most common source of mistakes when working with this distribution.

Support

x > 0

Only positive values occur.

Ordering

Mode < Median < Mean

Always true for σ > 0.

Built from

Products

Many small multiplicative effects add up on the log scale.

Lognormal Distribution Formulas

PDF

f(x) = 1 ÷ (xσ√(2π)) · e−(ln x − μ)² ÷ (2σ²)

CDF

F(x) = Φ((ln x − μ) ÷ σ)

Quantile

xp = eμ + σ·Φ⁻¹(p)

Φ is the standard normal CDF and Φ⁻¹ its inverse. The CDF formula means every lognormal probability is a normal probability in disguise: take the logarithm of the boundary, standardize it with μ and σ, and look up the normal area.

MeasureFormula
Meaneμ + σ²/2
Median (geometric mean)eμ
Modeeμ − σ²
Variance(eσ² − 1) · e2μ + σ²
Coefficient of variation√(eσ² − 1)
Skewness(eσ² + 2) · √(eσ² − 1)
Excess kurtosise4σ² + 2e3σ² + 3e2σ² − 6
Geometric standard deviationeσ

Formula reference: NIST/SEMATECH e-Handbook of Statistical Methods — Lognormal Distribution.

Converting the Mean and SD of X to μ and σ

Reports, spec sheets, and spreadsheets usually give the ordinary mean m and standard deviation s of the data. The log-scale parameters follow from them directly.

Shape

σ = √ln(1 + s² ÷ m²)

Scale

μ = ln(m) − σ² ÷ 2

Example: with m = 50 and s = 20, s ÷ m = 0.4, so σ² = ln(1.16) = 0.1484 and σ = 0.3853. Then μ = ln(50) − 0.0742 = 3.8378, and the median is e3.8378 ≈ 46.4—below the mean of 50, as expected for a right-skewed distribution.

If you have raw data instead, estimate μ and σ as the mean and standard deviation of ln(xi). That gives the maximum-likelihood estimate of μ and is generally more reliable than converting summary statistics, which are sensitive to a few large values.

Worked Example: Repair Times

Suppose equipment repair times in hours are lognormal with μ = 1.5 and σ = 0.6.

  • Median: e1.5 ≈ 4.48 hours. Half of repairs finish sooner.
  • Mean: e1.5 + 0.18 ≈ 5.37 hours, pulled up by the occasional long job. The most likely single value (mode) is e1.14 ≈ 3.13 hours.
  • P(repair ≤ 6 h): z = (ln 6 − 1.5) ÷ 0.6 ≈ 0.486, so the probability is Φ(0.486) ≈ 0.687, or about 69%.
  • 95th percentile: e1.5 + 1.6449 × 0.6 ≈ 12.0 hours—a planning figure that the mean alone would badly understate.

How σ Changes the Shape

Because the median is fixed at eμ, the ratios below depend on σ alone. They show how quickly the mean drifts away from the typical value as the spread on the log scale grows.

σMean ÷ medianMode ÷ medianShare below the meanSkewness
0.251.0320.93955.0%0.78
0.51.1330.77959.9%1.75
11.6490.36869.1%6.18
1.53.0800.10577.3%33.47

The share of values below the mean equals Φ(σ ÷ 2). At σ = 1, almost seven in ten observations fall below the average, which is why the median or geometric mean is often the better summary of a "typical" lognormal value. For small σ (below about 0.2) the curve is close to symmetric and a normal model gives similar answers.

Where the Lognormal Distribution Appears

A lognormal shape is expected whenever a quantity is the product of many independent positive factors: taking logs turns the product into a sum, and the central limit theorem pushes that sum toward a normal distribution.

Reliability and maintenance

Time to failure from fatigue or wear-out mechanisms, and time to repair, are commonly modeled as lognormal.

Finance

Under geometric Brownian motion, future asset prices are lognormal; this is the assumption behind the Black–Scholes model.

Environment and health

Pollutant concentrations, particle sizes, latency periods of diseases, and many biological measurements show right-skewed, lognormal-like spreads.

Hydrology and geology

Rainfall amounts, river flows, and mineral grades in ore bodies are classic lognormal applications.

Applications reference: Limpert, Stahel & Abbt — Log-normal Distributions across the Sciences (BioScience, 2001).

Lognormal vs. Normal vs. Weibull

All three are used for continuous measurements. The right choice depends on whether values can be negative and how the tail behaves.

FeatureLognormalNormalWeibull
ValuesPositive onlyAny real numberZero or positive
SymmetryAlways right-skewedSymmetricDepends on shape parameter
Effects combine byMultiplicationAdditionWeakest link (minimum)
Failure rate over timeRises, then falls—Monotonic (rising, constant, or falling)
Quick checkln(x) looks normalx looks normalStraight line on a Weibull plot

To check the lognormal fit, take the natural log of every observation and inspect the result with a histogram or a normal Q–Q plot. If the logged values look bell-shaped, the lognormal model is reasonable.

Further reading: Wolfram MathWorld — Log Normal Distribution.

Frequently Asked Questions

Are mu (μ) and sigma (σ) the mean and standard deviation of the lognormal variable?

No. Mu and sigma are the mean and standard deviation of the natural logarithm of the random variable, ln(X), not of X itself. μ acts as the location parameter on the log scale, and eμ is the scale parameter of X—its median—while σ sets the shape. The mean of X is eμ+σ²/2, and its standard deviation is eμ+σ²/2·√(eσ² − 1). Use the Mean & SD of X option if those are the numbers you have.

How do I calculate a lognormal probability by hand?

Use the cumulative distribution function formula F(x) = Φ((ln x − μ) ÷ σ). Compute z = (ln x − μ) ÷ σ and look up Φ(z) in a standard normal distribution table. That is P(X ≤ x). For the right tail use 1 − Φ(z), and for an interval subtract the two CDF values: Φ(zb) − Φ(za). The calculator follows the same steps and lists them next to the output, so you can check your own work.

Why is the mean larger than the median?

The long right tail contains a few very large values that pull the average—the expected value—upward, while the median only depends on the middle observation. The ratio of mean to median is eσ²/2, so the gap grows quickly as σ increases. Variance, skewness, and kurtosis rise even faster with σ, which is why a lognormal model with a large σ produces occasional extreme values.

Can a lognormal distribution include zero or negative values?

No. The density is zero for x ≤ 0. If your dataset contains zeros, consider a shifted (three-parameter) lognormal, a mixture model with a separate probability of zero, or a different distribution such as the gamma. Negative values usually mean the quantity is not a good fit for a lognormal model at all.

What are the geometric mean and geometric standard deviation?

The geometric mean is eμ, identical to the median. The geometric standard deviation is eσ, a unitless multiplier: about 68% of values lie between median ÷ eσ and median × eσ—roughly the 16th to 84th percentile—and about 95% within a factor of e2σ.

How are the random samples generated?

The calculator draws standard normal values z with the Box–Muller method and returns eμ+σz. Each click of New sample produces a fresh draw, so small samples will vary noticeably around the theoretical mean and median. That is ordinary sampling variation in statistics: the sample mean and median only settle close to the population values as n grows.

Does the probability density function give a probability?

Not directly. For a continuous distribution the probability of any exact value is zero; f(x) is a density per unit of x and can be greater than 1. Probabilities come from areas under the curve, which is what the Probability mode calculates. To go the other way—from a probability to a value—use Quantile mode, which inverts the CDF.

How accurate are the results?

The normal CDF uses a complementary error function approximation accurate to about 1 part in 10 million, and the inverse uses Acklam's rational approximation with a relative error near 10−9. That is far more precise than the uncertainty in input parameters estimated from real data. When μ and σ come from a small sample, a confidence interval for each parameter at your chosen confidence level says more about the risk of a wrong answer than extra decimal places do.

Other Useful Calculators

Disclaimer: This calculator provides statistical results for educational, informational, and preliminary analytical use. Results assume that the quantity follows a two-parameter lognormal distribution and depend entirely on the parameters entered; parameters estimated from small samples or from summary statistics can be uncertain, and the model may not fit data with zeros, multiple peaks, or heavier or lighter tails than lognormal. Generated samples use the browser's pseudo-random number generator and are not suitable for cryptographic purposes. For engineering, financial, clinical, environmental, or other consequential decisions, verify the distributional assumption against the data and consult a qualified statistician or subject-matter professional.

Last updated: October 4, 2026