Formula: Log-Normal Distribution Formula
- logScaleMeanMu: Log Scale Mean Mu (μ)
- logScaleStdDevSigma: Log Scale Std Dev Sigma (σ)
Compute Log-Normal mean e^(μ+σ²/2), median e^μ, mode e^(μ−σ²), and tail percentiles.
Because the mean equals the median multiplied by e to half of sigma squared, and that factor is always above 1 for any positive sigma. A long right tail of large values pulls the mean upwards while the median stays put. With the default sigma of 0.6 the factor is about 1.197, which turns a median of 33.116 into a mean of 39.646.
Yes. The geometric mean is e raised to the average of the logs, which is e to mu, and for a log-normal that is exactly the median. That is why the page labels one line as both. For real data the sample geometric mean and sample median will differ slightly, but they estimate the same quantity.
Replace the 1.645 with the standard normal z for the percentile you want, about 2.326 for the 99th. Compute mu plus z times sigma, then exponentiate. For the default inputs the 90th percentile, with z of 1.2816, is about 71.45. The page only prints the 95th, so other percentiles need this one extra step by hand.
Yes. Mu is a mean of logarithms, and logs of values below 1 are negative. A negative mu just means the median is below 1. With mu of 0 the median is exactly 1, and with sigma 0.6 the mean is 1.197 and the 95th percentile is 2.683. Sigma, by contrast, must be positive.
There is no fixed cut-off, but the effect on shape is clear. At sigma 0.2 the page shows skewness of 0.614 and the distribution looks close to normal. At 0.6 it is 2.26, and at 1 it is 6.185. Above about 1, a small number of very large observations dominate the mean, and sample means become unstable.
Not directly, because the log of zero is undefined and a log-normal never produces zero. A common approach is to model the share of zeros separately and fit the log-normal only to the positive values. Adding a small constant before taking logs is sometimes done, but it changes the results and should be reported.
Take the natural log of each value and look at a histogram or a normal probability plot of the logs. If the logs look roughly bell-shaped and the plot is close to a straight line, a log-normal is reasonable. Pay most attention to the upper end, because tail fit determines how believable the 95th percentile is.
Mu only rescales the variable. Adding to mu multiplies every value by the same constant, and multiplying by a constant does not change shape. Skewness, the coefficient of variation and the ratio between mean and median all depend on sigma alone. That is why the lower and higher presets on this page keep the same mean to median ratio.
Natural logs. Every formula on the page uses e as the base. If your mu and sigma came from base 10 logs, multiply both by about 2.3026 before typing them in. Mixing bases is an easy mistake and produces results that look plausible but are wrong by a large factor.
The mode is where the density curve peaks, the single most likely value. The median splits the probability in half. For a right-skewed log-normal the mode sits below the median, 23.104 against 33.116 with the defaults, and the gap widens quickly as sigma grows, because the mode falls with e to minus sigma squared.
It equals the median multiplied by e to 1.645 sigma, an exponential in sigma. At sigma 0.2 the factor is about 1.39 and the 95th percentile is 46.015. At the default 0.6 the factor is about 2.68, giving 88.847. Each extra 0.1 of sigma multiplies the 95th percentile by roughly another 18%, so the tail grows quickly.
This calculator asks for two numbers, and neither of them is on the scale of your data. Mu and sigma are the mean and standard deviation of the natural logarithm of X. The default pair, 3.5 and 0.6, describes a variable whose logarithm is normally distributed around 3.5 with a spread of 0.6.
Back on the original scale, those two parameters give a median of 33.116, a mode of 23.104, a mean of 39.646 and a 95th percentile of 88.847. Four different 'typical' values from one distribution, all of them correct, and all of them answering a different question.
That spread between them is the whole point of a log-normal. The mode is where the curve peaks, the median splits the probability in half, and the mean is pulled upwards by a long right tail. If someone hands you only one of these and calls it 'the average', you need to know which one it is before you use it.
Each figure is a single exponential, so a scientific calculator is enough. The median is e raised to mu, and e to the 3.5 is 33.1155. The page shows 33.116 in the result line and 33.115 in the sentence beneath it; the true value sits right on the rounding boundary, so treat the third decimal as noise.
The mean is e raised to mu plus half of sigma squared. Sigma squared is 0.36, half of that is 0.18, and e to the 3.68 is 39.646. The mode is e raised to mu minus sigma squared, so e to the 3.14, which is 23.104.
The 95th percentile is e raised to mu plus 1.645 sigma. That is e to the 4.487, or 88.847. Any other percentile works the same way: look up the standard normal z for the percentile you want, compute mu plus z times sigma, and exponentiate. For the default, the 75th percentile is about 49.64 and the 25th is about 22.09. The 5th percentile, using z of minus 1.645, comes out near 12.34.
Notice that the percentiles are not symmetric around the median. The 95th sits about 56 units above it and the 5th only about 21 below. Multiplicatively they are symmetric: both are the median multiplied or divided by e to the 0.987, a factor of about 2.68.
Below the percentile, the page prints two shape figures: a standard deviation of 26.098 units and a skewness of 2.26 for the defaults. Both can be checked by hand from sigma, and doing it once shows why sigma controls the shape.
Skewness of a log-normal is (e to the sigma squared, plus 2) multiplied by the square root of (e to the sigma squared, minus 1). For sigma 0.6, e to the 0.36 is about 1.4333. That gives 3.4333 multiplied by the square root of 0.4333, which is about 0.658, so skewness is about 2.26. That is a strongly right-skewed distribution.
The standard deviation on the original scale is the mean multiplied by that same square root term. For the default that is 39.646 times 0.658, about 26.1, which matches the 26.098 the page shows. Dividing standard deviation by mean gives the coefficient of variation, about 0.66, and it depends on sigma only. Change mu all you like and the CV and skewness stay put.
Skewness grows fast with sigma. At sigma 0.2 the page shows 0.614, close enough to symmetric that a normal approximation would do for many purposes. At sigma 1 it shows 6.185. That rapid rise is why log-normal data with a wide sigma produces such a long, sparse tail of very large values.
The two inputs do very different jobs. Mu multiplies every output by the same factor. The page's lower case, mu 2.1, gives a median of 8.166, a mean of 9.777, a mode of 5.697 and a 95th percentile of 21.909. The higher case, mu 5.3, gives a median of 200.337 and a 95th percentile of 537.49. In every case the mean is the median multiplied by 1.197, because that ratio is e to half of sigma squared and sigma has not changed.
Sigma changes the shape. I held mu at 3.5 and moved sigma. At 0.2 the median is still 33.116, but the mean is only 33.784, the mode is 31.817 and the 95th percentile drops to 46.015. The four statistics huddle together. At sigma 1 the median is unchanged, yet the mean climbs to 54.598, the mode falls to 12.183, and the 95th percentile shoots out past the brief's range of values entirely.
So if a forecast says 'median stays the same, but uncertainty grows', the mean will still rise. That catches people out in budgeting, where the expected cost of a log-normal project is always above its median cost.
The most common error on this page is typing the mean and standard deviation of the raw data into the mu and sigma boxes. If your sample of response times has a mean of 40 and a standard deviation of 20, those are not mu and sigma. Typing 40 into mu would give a median of e to the 40, an astronomically large number.
There are two right ways in. If you have the raw data, take the natural log of every observation and compute the mean and standard deviation of the logs. Those are mu and sigma. If you only have the arithmetic mean m and standard deviation s, you can convert: sigma squared equals the log of (1 plus s squared over m squared), and mu equals the log of m minus half of sigma squared.
For a mean of 40 and a standard deviation of 20, that gives sigma of about 0.472 and mu of about 3.577. Enter those and the page will return a mean of 40, which is a useful test that you did the conversion correctly.
Also make sure the logs are natural logs. If your software reports log base 10 values, multiply mu and sigma by about 2.3026 before entering them.
Sigma must be above zero. If you enter 0 or a negative value, the page shows an error asking for a positive sigma rather than a result. A zero sigma would collapse the distribution to a single point, so there would be no spread, no skew and no tail to describe. Very small positive values are accepted, and with sigma near zero the mean, median, mode and percentiles all crowd together around e to mu.
Mu has no such limit and may be negative. A negative mu simply means the median is below 1: mu of 0 gives a median of exactly 1, and with sigma 0.6 a mean of 1.197 and a 95th percentile of 2.683. That is a common setup when the variable is a ratio or a multiplier, such as a price relative or a dose response factor.
Very large mu or sigma values will produce enormous outputs. Those are not bugs; they are what the formulas give. If a result looks absurd, the inputs almost certainly came from raw data rather than logs.
Log-normal models suit quantities that grow by multiplying many small independent factors: particle sizes after grinding, incomes within a fairly homogeneous group, times to repair, insurance claim sizes in the body of the distribution, concentrations of a pollutant, and some biological measurements. The defining test is that the logarithm of the data looks roughly normal on a histogram or a normal probability plot.
Tails are where trouble lives. Many real datasets have tails heavier than a log-normal, and a log-normal fitted to the middle will understate the chance of extreme values. If the 95th percentile matters for a design or a reserve, compare it with the empirical 95th percentile of your data before relying on it.
The opposite failure also happens. Data with a hard upper limit, or values that cluster at zero, cannot be log-normal, since a log-normal is always positive and unbounded above. Zeros have to be handled separately; taking their log is impossible.
Use the mean when you need totals. If each of a thousand events costs a log-normal amount, the expected total is a thousand times the mean, 39.646 each with the defaults, not the median. Using the median here understates the budget.
Use the median, also called the geometric mean, when you want a typical case and the tail would mislead. Half of all observations lie below 33.116 in the default. Reporting the median alongside the 95th percentile, 88.847, is a clear way to describe both typical and bad cases.
The mode is mostly a curiosity, but it explains why histograms of log-normal data peak so far to the left of the mean. With the defaults the peak sits at 23.104, well below the median, and the difference between mode and mean widens rapidly as sigma grows.