Free Lognormal Distribution Calculator

Evaluate the probability density function f(x) at a given x

Must be > 0

Must be > 0

Results

Select a mode and enter parameters to compute lognormal distribution values

What Is a Lognormal Distribution?

A lognormal distribution (also called log‑normal) is a continuous probability distribution that applies to positive random variables only. Its defining property is that a variable XX is lognormally distributed when its natural logarithm ln⁡(X)\ln(X) follows a normal distribution. Equivalently, if YY is normally distributed with mean μ\mu and standard deviation σ\sigma, then eYe^{Y} follows a lognormal distribution. Because the exponential function always produces a positive output, every lognormal variable is strictly greater than zero.

Parameters of the Lognormal Distribution

The distribution is characterized by two log normal distribution parameters:

  • μ\mu – the scale parameter (mean of the underlying normal distribution).
  • σ\sigma – the shape parameter (standard deviation of the underlying normal distribution).

It is important to remember that μ\mu and σ\sigma are not the mean and standard deviation of XX itself; they describe the normally distributed logarithm. The actual mean, variance, and other measures of XX are derived from these parameters using exponential transformations.

Probability Density Function (PDF) and Cumulative Distribution Function (CDF)

The probability density function of the lognormal distribution for x>0x > 0 is:

f(x)=1x σ 2πexp⁡ ⁣(−(ln⁡x−μ)22σ2)f(x) = \frac{1}{x\,\sigma\,\sqrt{2\pi}} \exp\!\left( -\frac{(\ln x - \mu)^2}{2\sigma^2} \right)

The cumulative distribution function (CDF) gives the probability that X≤xX \leq x and is expressed using the standard normal CDF Φ\Phi:

F(x)=Φ ⁣(ln⁡x−μσ)F(x) = \Phi\!\left( \frac{\ln x - \mu}{\sigma} \right)

This direct link between normal and lognormal distributions makes all lognormal PDF CDF computations straightforward when using a log normal probability calculator.

Quantile Function

The lognormal quantile function (inverse CDF) for a probability p∈[0,1)p \in [0,1) is:

Q(p)=exp⁡ ⁣(μ+σ⋅Φ−1(p))Q(p) = \exp\!\left( \mu + \sigma \cdot \Phi^{-1}(p) \right)

This function is essential for generating random samples from the lognormal distribution and for determining thresholds given a cumulative probability.

Mean, Variance, and Other Key Measures

The lognormal mean variance and other common measures are expressed directly in terms of μ\mu and σ\sigma. For a lognormal variable XX:

  • Mean: E[X]=eμ+σ2/2\displaystyle \mathbb{E}[X] = e^{\mu + \sigma^2/2}
  • Median: Med[X]=eμ\displaystyle \text{Med}[X] = e^{\mu}
  • Mode: Mode[X]=eμ−σ2\displaystyle \text{Mode}[X] = e^{\mu - \sigma^2}
  • Variance: Var[X]=(eσ2−1)e2μ+σ2\displaystyle \text{Var}[X] = \left(e^{\sigma^2} - 1\right) e^{2\mu + \sigma^2}
  • Skewness: Skew[X]=(eσ2+2)eσ2−1\displaystyle \text{Skew}[X] = \left(e^{\sigma^2} + 2\right) \sqrt{e^{\sigma^2} - 1}

These closed-form formulas allow instant computation once the log normal distribution parameters are known.

Applications of the Lognormal Distribution

The lognormal distribution appears in many real‑world contexts where variables are positive and result from multiplicative processes. Typical applications include:

  • Reliability engineering – modeling failure times of mechanical or electronic components.
  • Finance and economics – stock prices, asset returns, income distributions.
  • Hydrology – monthly maximum daily rainfall or river discharge.
  • Internet analytics – comment lengths, time spent reading a post, network traffic per unit time.

In each case, the assumption that the data are lognormally distributed provides a realistic fit for right‑skewed, positive data.

How to Use This Lognormal Distribution Calculator

This free online statistics tool offers six distinct computation modes:

  1. Select a mode – choose from pdf, cdf, quantile, sample generator, common measures (mean/variance), or skewness.
  2. Enter the parameters – input the scale parameter μ\mu and the shape parameter σ\sigma.
  3. Provide additional input – for pdf/cdf, enter the value xx; for quantile, enter the probability pp; for sample generation, specify the sample size.
  4. Get instant results – the calculator returns the requested quantity and, where applicable, displays a plot.

Whether you need to evaluate the lognormal PDF CDF, compute the lognormal quantile function, or derive the lognormal mean variance for a given set of parameters, this tool streamlines the entire process.

FAQ

1. What is the difference between μ and σ for the lognormal distribution?

μ is the scale parameter (mean of ln X) and σ is the shape parameter (standard deviation of ln X). They are not the mean and standard deviation of X itself; the actual mean and variance of X are derived from μ and σ using exponential expressions.

2. How do I calculate the probability density (PDF) at a specific x?

Select the 'pdf' mode, enter μ and σ, and provide the x value. The calculator applies f(x) = 1/(x σ √(2π)) exp(-(ln x - μ)²/(2σ²)) and returns the density instantly.

3. What is the formula for the mean of a lognormal distribution?

The mean of a lognormal variable X is E[X] = exp(μ + σ²/2), where μ and σ are the distribution's parameters (mean and standard deviation of the underlying normal).

4. Can this calculator generate random samples from a lognormal distribution?

Yes. Choose the 'sample generator' mode, specify the sample size, and the calculator will generate values using the quantile function Q(p) = exp(μ + σ Φ⁻¹(p)) applied to uniform random numbers.

5. Why is the lognormal distribution commonly used for stock prices and income?

Stock prices and incomes are positive and arise from multiplicative growth. The product of many independent positive random factors tends to follow a lognormal distribution, which naturally captures right skewness and positivity.

How to Use

  1. Select the calculation mode: PDF, CDF, Quantile, or Common Measures.
  2. Enter the scale parameter μ and shape parameter σ for the lognormal distribution.
  3. If required, enter the argument x or probability p, then view the results instantly.