Lognormal Distribution Calculator

Calculate lognormal PDF, CDF, mean, median, mode, and variance from the log-scale location and positive shape parameter.

Lognormal distribution properties
Enter sigma, mu, and a positive x value to evaluate the distribution.

About the lognormal distribution

A positive random variable follows a lognormal distribution when its natural logarithm follows a normal distribution. If ln(X) is normal with location mu and standard deviation sigma, then X is lognormal with those parameters. The distribution is defined only for positive values and is usually right-skewed: many observations cluster at lower values while a long upper tail allows occasional large outcomes. The parameters describe the logarithms rather than the original measurements. Mu is the mean of ln(X), so changing mu shifts the distribution multiplicatively on the original scale. Sigma is the standard deviation of ln(X) and must be positive. Larger sigma values create greater relative spread, stronger right skew, and a heavier upper tail. Sigma is sometimes called the shape or log-scale parameter, not the ordinary standard deviation of X. The probability density function, or PDF, gives the relative density at a positive x value. Density is not itself a probability at a single point; probabilities come from areas over intervals. The cumulative distribution function, or CDF, gives the probability that X is less than or equal to the entered x. It is obtained by converting ln(x) to a normal z score and evaluating the standard normal CDF. On the original scale, the median is exp(mu), because half of the logarithms lie below mu. The mode is exp(mu minus sigma squared), which lies below the median for positive sigma. The mean is exp(mu plus half sigma squared), which lies above the median because large upper-tail values pull the arithmetic average upward. Their ordering, mode below median below mean, is a characteristic feature of right skew. The variance equals the quantity exp(sigma squared) minus one, multiplied by exp(2mu plus sigma squared). It can grow rapidly as sigma increases. This sensitivity is important in financial, environmental, reliability, biological, and duration data, where a few large observations may dominate totals. Report parameter definitions clearly because some software uses alternative parameterizations based on the original-scale mean or a separate scale factor. A lognormal model is plausible when values are strictly positive and multiplicative influences combine to produce the outcome. Examples can include incomes, particle sizes, repair times, biological concentrations, and some asset-price ratios. It is not automatically suitable for every positive skewed sample. Check a histogram, a log-scale plot, and a normal probability plot of the logarithms. Zeros and negative values cannot be represented without a scientifically justified transformation or a different model.

Lognormal distribution examples

ParametersPropertiesInterpretation
sigma = 0.5, mu = 0, x = 1PDF = 0.797885, CDF = 0.5X equals the median, so cumulative probability is one half.
sigma = 1, mu = 0, x = 1Mean = 1.648721Greater shape produces more right skew and a mean well above the median.
sigma = 0.4, mu = 2, x = 7.389CDF approximately 0.5The evaluation point is approximately exp(mu), the distribution median.

How to use the lognormal calculator

  1. Enter the positive log-scale standard deviation sigma.
  2. Enter the normal location parameter mu for the natural logarithms.
  3. Enter a positive x value where the PDF and CDF should be evaluated.
  4. Click Calculate Distribution and review the probabilities and summary measures.

Lognormal distribution FAQ

Why must x be positive?

The natural logarithm is defined only for positive real values. Consequently, the standard lognormal distribution has no probability mass at zero or below.

Are mu and sigma the mean and standard deviation of X?

No. They are the mean and standard deviation of ln(X), while the original-scale mean and variance use exponential formulas.

Why is the mean larger than the median?

The long right tail contains relatively rare but large values that pull the arithmetic mean upward. The median depends only on the halfway probability point.

What does the CDF represent?

The CDF at x is the probability that a lognormal observation is less than or equal to x. One minus the CDF is the probability of exceeding x.

How can I check whether data are lognormal?

Take natural logarithms of the positive observations and assess whether those transformed values are approximately normal. Use plots and subject knowledge rather than relying on one goodness-of-fit statistic.