# Lognormal Distribution Calculator

URL: https://speedycalculator.com/calculators/statistics/lognormal-distribution/
Last updated: 2026-11-08

> The lognormal distribution calculator handles variables whose logarithm is normally distributed: from μ and σ of ln X it gives the density, cumulative and tail probabilities, ranges, quantiles and random values, plus the mean, median, mode, variance, skewness and kurtosis.

## Inputs

- μ – mean of ln X
- σ – standard deviation of ln X
- What to calculate
- Value x > 0 (x₁ for a range)
- Upper value x₂
- Cumulative probability p (%)
- How many random values

## Results

- Result
- Lognormal density with the requested area shaded
- Probability density f(x)
- P(X ≤ x) – cumulative (CDF)
- P(X > x) – survival
- P(x₁ ≤ X ≤ x₂)
- P(X < x₁ or X > x₂)
- Quantile x
- Random sample
- ln x
- Mean (expected value)
- Median
- Mode (peak of the density)
- Variance
- Standard deviation
- Skewness
- Excess kurtosis

## Formula

```
ln X ~ N(μ, σ²) · f(x) = e^(−(ln x − μ)²/(2σ²)) ÷ (xσ√(2π)) · P(X ≤ x) = Φ((ln x − μ)/σ) · mean = e^(μ + σ²/2) · median = e^μ · mode = e^(μ − σ²)
```

## Explanation

A variable is lognormally distributed when its natural logarithm follows a normal distribution. Such variables are always positive and skewed to the right: most values are modest but a long tail stretches towards large ones. Incomes, house prices, stock prices, particle sizes, city populations, the length of online comments and the time to failure of many products are commonly modelled this way.

Lognormal data arise naturally when many small effects multiply rather than add, such as a price that changes by a random percentage each day, or a particle that keeps breaking into random fractions. Taking logs turns the product into a sum, and the central limit theorem makes the sum normal.

Note that μ and σ are the mean and standard deviation of ln X, not of X itself. The median of X is e^μ, the mean e^(μ + σ²/2) is always larger, and the mode e^(μ − σ²) is smaller still. The calculator works out all of these, the probabilities you ask for, quantiles and random values, and shades the area on the skewed density curve.

### How to use the Lognormal Distribution Calculator

- **μ: mean of ln X**
- **σ: standard deviation of ln X**
- **What to calculate**
- **Value x > 0 (x₁ for a range)**
- **Upper value x₂**
- **Cumulative probability p**
- **How many random values**

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

### How it works

Every probability is found on the log scale: z = (ln x − μ)/σ and P(X ≤ x) = Φ(z). Quantiles are e^(μ + σΦ⁻¹(p)), which also generates the random sample. Choose what to calculate: a cumulative probability, an upper tail, the probability between or outside two values, a quantile (inverse CDF) or a random sample generated by inverse-transform sampling. The chart shades exactly the area you asked for.

### Worked example

Let ln X ~ N(0, 0.5²). The probability that X exceeds 1.5 is 1 − Φ((ln 1.5 − 0)/0.5) = 1 − Φ(0.811) = 20.87%, and the probability that X is below 0.5 is Φ(−1.386) = 8.28%. The median is e⁰ = 1, the mean e^0.125 = 1.1331, the mode e^(−0.25) = 0.7788 and the 95th percentile e^(0.5 × 1.645) = 2.2760.

### How to work with lognormal data

Transform, analyse, transform back: take logs of the data, use normal-distribution methods on the logs (means, confidence intervals, tests), then exponentiate the results. A confidence interval for μ becomes an interval for the median e^μ of the original data, and differences of log means become ratios.

## Worked example

Inputs: μ – mean of ln X: 0; σ – standard deviation of ln X: 0.5; What to calculate: P(X > x) – probability above x; Value x > 0 (x₁ for a range): 1.5.

Results: **Result = P(X > 1.5) = 0.208703 (20.8703%)**; Probability density f(x) = 0.38287; P(X ≤ x) – cumulative (CDF) = 79.1297 %; P(X > x) – survival = 20.8703 %; ln x = 0.4055; Mean (expected value) = 1.1331.

## Key terms

- **Lognormal**: A distribution whose logarithm is normal.
- **Log scale parameter (μ)**: The mean of ln X; e^μ is the median of X.
- **Shape parameter (σ)**: The standard deviation of ln X; larger σ means stronger skew.
- **Geometric mean**: e^μ, which equals the median for lognormal data.

## FAQ

**What are μ and σ in a lognormal distribution?**
The mean and standard deviation of ln X. They are not the mean and standard deviation of X itself.

**What is the median of a lognormal distribution?**
e^μ. With μ = 0 the median is 1, whatever σ is.

**Why is the mean larger than the median?**
The right tail pulls the mean up: mean = e^(μ + σ²/2). For μ = 0, σ = 0.5 it is 1.1331 against a median of 1.

**How do I get μ and σ from data?**
Take the natural log of every value, then compute the mean and standard deviation of the logs.

**How do I convert a mean m and standard deviation s of X into μ and σ?**
σ² = ln(1 + s²/m²) and μ = ln m − σ²/2.

**What is P(X > 1.5) for μ = 0, σ = 0.5?**
1 − Φ(ln 1.5/0.5) = 1 − Φ(0.811) = 20.87%.

**Where is the lognormal distribution used?**
Incomes, asset prices, reliability and failure times, rainfall, particle and grain sizes, biological measurements such as latency or concentrations.


## Sources

- [NIST/SEMATECH e-Handbook: Gallery of distributions](https://www.itl.nist.gov/div898/handbook/eda/section3/eda366.htm)
- [Wolfram MathWorld: Probability and statistics](https://mathworld.wolfram.com/topics/ProbabilityandStatistics.html)
- [Penn State STAT 414: Introduction to Probability Theory](https://online.stat.psu.edu/stat414/)
