Lognormal Distribution Density Calculator
Evaluate the lognormal probability density at a positive value x, given μ and σ, the mean and standard deviation of ln X: the height of the curve at that point.
Lognormal Distribution Density Calculator
Background.
Plenty of quantities cannot go below zero, bunch up at modest values and trail off in a long right-hand tail: the sizes of particles in a powder, the hours needed to repair a machine, a share price a few years out. When a quantity is built by multiplying many small, independent factors rather than adding them, its logarithm drifts towards the normal bell curve, and the quantity itself follows a lognormal distribution.
That relationship is the whole definition. X is lognormal when ln X is normal with mean μ and standard deviation σ, and those log-scale figures are the two parameters entered here — not the mean and spread of X itself. The distinction catches people out. With μ = 0.5 and σ = 0.8, the median of X is e^0.5, about 1.65, but the tail drags the mean up to about 2.27, while the single most likely value, the mode, is only about 0.87.
The result is the probability density at one point x: the height of the curve there. It is not a probability. A density is measured per unit of x, can exceed 1 when the distribution is narrow, and becomes a probability only when multiplied by a width — over a short interval, density × width approximates the chance of landing inside it.
The page does not fit μ and σ to data, give cumulative or interval probabilities, or test whether a lognormal model suits your measurements. It evaluates the curve for parameters you already have, and leaves the judgement about whether they describe your data to you.
What is lognormal distribution density calculator?
The lognormal probability density function describes how probability is spread across the positive values of a random variable X whose natural logarithm is normally distributed. It is defined only for x > 0, is skewed to the right, and is fixed by two parameters: μ, the mean of ln X, and σ, the standard deviation of ln X. Its value f(x) is a probability per unit of x, and the total area under the curve is 1.
How to use this calculator.
- Enter μ and σ on the natural-log scale. If they were worked out from base-10 logarithms, multiply both by 2.3026 first.
- If you know only the ordinary mean m and standard deviation s of X, convert them: σ² = ln(1 + s²/m²) and μ = ln m − σ²/2.
- Enter the point x where you want the density. It must be positive, because the lognormal curve does not exist at zero or below.
- Read the result as a height, not a chance. For the probability of a narrow band around x, multiply the density by the band's width.
The formula.
f(x) = exp(−(ln x − μ)² ÷ (2σ²)) ÷ (x σ √(2π)). The exponential is the familiar normal-curve shape applied to ln x instead of x: it equals 1 when ln x = μ and falls away as the gap grows, faster when σ is small. The denominator holds the normal curve's constant σ√(2π) and one extra factor, x. That 1/x is the change-of-variable term — mapping the even log scale back onto ordinary numbers squeezes the curve at large x and lifts it at small x. It is why the peak, the mode at e^(μ − σ²), sits below the median e^μ, which in turn sits below the mean e^(μ + σ²/2). A larger σ fattens the right tail and pushes those three further apart; changing μ slides the whole curve along the log scale without altering its shape there.
A worked example.
Take x = 2 with μ = 0.5 and σ = 0.8. First the log: ln 2 = 0.693147, so ln x − μ = 0.193147 and its square is 0.037306. Dividing by 2σ² = 1.28 gives 0.029145, and e^−0.029145 = 0.971275. The denominator is x σ √(2π) = 2 × 0.8 × 2.506628 = 4.010605. The density is 0.971275 ÷ 4.010605 = 0.242177, shown on the page as 0.2422. To see what that height means, multiply by a width: the chance that X lands between 1.95 and 2.05 is about 0.1 × 0.2422 ≈ 0.0242, or 2.4% (exact integration gives 0.02422). At the mode, x ≈ 0.869, the curve is taller, about 0.4165 — the most likely region is well below the mean of 2.27.
Frequently asked questions.
Why can a probability density be greater than 1?
How do I get μ and σ from the mean and standard deviation of my data?
Why is the mean of a lognormal distribution larger than its median?
How do I find the probability that X is below a certain value?
How can I tell whether my data really are lognormal?
References& sources.
- [1]NIST/SEMATECH e-Handbook, Lognormal Distribution.
- [2]Aitchison and Brown, The Lognormal Distribution (PRINT).
- [3]BIPM, The International System of Units (SI Brochure), 9th ed., version 3.01, coherent derived units and quantity equations.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 3 cited below
- Method
- f(x) = exp(-(ln x - mu)^2/(2 sigma^2)) / (x sigma sqrt(2 pi))
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled