Gumbel Return Period Calculator

Return levels from yearly maxima with a Gumbel fit.

  • Fit from yearly maxima
  • Level for any T
  • Chance in n years
A small clay table with a soft lopsided mound, a row of rounded blocks stepping upward beside it, and a few loose beads.

The guide

A 100-year event is a one percent year, and forty years of record say little about it

A return period is the reciprocal of a yearly chance, a Gumbel fit turns a short record into a level for it, and the gap between the two readings is wider than most tables admit.

  • 193.65 100-year level by maximum likelihood; the true value is 192.00
  • 186.45 100-year level by the method of moments, same 40 values
  • 0.2603 chance in 30 years of a 100-year event, binomial reading
  • 37.9 width of the resampling range of the 100-year level
  • 41 years empirical interval of the largest of 40 values
Read the full guide Fold the guide 6 min · 13 sources

Forty yearly maxima sit in a column. The highest is 176.07. A question follows at once: how high would the water rise in a 100-year flood, a level nobody in the record has ever seen? Answering it takes a model, and the model most often reached for is the Gumbel distribution.

The word that causes the trouble is not Gumbel. It is “year”. A return period sounds like a timetable, and it is not one. It is a statement about chance per year, and says nothing about which year.

What a return period says, and what it does not

The Wikipedia article on return period defines it as an average time between events, and calls its reciprocal the frequency of occurrence. A 10-year flood therefore has a one in 10 chance of being exceeded in any one year, and a 50-year flood has a 2 percent chance. The same article adds the warning that matters: this does not mean such a flood happens regularly every 100 years, or only once in 100 years. In any given century a 100-year event may occur once, twice, more, or not at all.

Two readings turn the yearly chance into a chance over a span of n years. The Poisson reading uses 1 - exp(-n / T). The binomial reading counts yearly trials and uses 1 - (1 - 1 / T) to the power n. For a 100-year event over 30 years the first gives 0.2592 and the second 0.2603. The article says the binomial reading is disfavoured, because a year is an arbitrary slice of time, and that the two results are similar. The page shows both so that the small gap is visible.

Neither is 30 / 100. That shortcut gives 0.3000 and treats the years as if a flood in one could not coexist with a flood in another. When the span equals the return period, the Poisson chance is 1 - exp(-1), about 63.2 percent, whatever the period is. A 100-year level is more likely than not to be exceeded at least once in a century, and still has a better than one in three chance of never being seen.

Where the Gumbel law comes from

The maximum of many values behaves differently from the values themselves. The Fisher-Tippett-Gnedenko theorem says that when the maximum of a sample of independent, identically distributed variables, suitably rescaled, converges to a non-degenerate law, that law belongs to the Gumbel, the Frechet or the Weibull family. The Gumbel family is the type I case, and the Wikipedia article on it shows the classic route: the largest of N exponential values, minus the natural logarithm of N, approaches a Gumbel variable as N grows.

That is why the law is used for annual maxima of rainfall and river discharge. A year’s maximum is the largest of hundreds of daily values, and the theorem is the reason a handful of shapes is enough. It is also why the choice is a choice. Two other families exist, and nothing guarantees that the Gumbel is the right one for a given river.

The maximum case has the cumulative function exp(-exp(-(x - mu) / beta)). Solving for the level whose yearly exceedance chance is 1 / T gives x = mu - beta ln(-ln(1 - 1/T)). That 1 - 1/T is the non-exceedance probability, and using 1/T in its place gives a negative number for a 100-year level instead of the standard 4.6001. The same function has a mean of mu plus 0.5772 beta, a standard deviation of beta times pi over the square root of 6, so beta is about 0.78 of the standard deviation, and a mode at mu where the cumulative function is about 0.37.

Two ways to fit it

The method of moments sets the model’s mean and variance equal to the sample’s. For the Gumbel that is beta = s times the square root of 6 over pi, and mu = mean minus 0.5772 beta, with s the sample standard deviation using the divisor N - 1. It is quick and needs no search.

Maximum likelihood chooses the parameters that make the observed values most probable. For the Gumbel the scale solves beta = mean - sum(x e^(-x/beta)) / sum(e^(-x/beta)), and the location follows from it. The left side minus the right side rises with beta, so the root is unique, and a bracketed search finds it. The values are shifted by the smallest one so the exponentials cannot overflow. The Wikipedia article on maximum likelihood notes that the estimator is consistent and efficient as the sample grows, which is a statement about large samples and not about forty values.

The two fits differ when the record is short, and they differ most where it matters, far out in the tail. A caution from the Gumbel article applies to both: plugging estimated parameters into the cumulative function ignores their uncertainty, so predicted probabilities are not well calibrated and underestimate out-of-sample tail events.

Neither method is a verdict. They are two summaries of the same forty numbers, and the choice between them is a modelling decision that the data alone cannot settle.

A worked example you can reproduce

The page loads a made-up series: 40 yearly maxima drawn from a Gumbel law with location 100 and scale 20, using a seeded generator, so the true answer is known. Nothing in it describes a real place.

The sample mean is 108.456 and the sample standard deviation 24.867. The method of moments gives a scale of 19.389 and a location of 97.264. Maximum likelihood gives a scale of 21.063 and a location of 96.762. The true values are 20 and 100. At 100 years the moments level is 186.45, the maximum likelihood level is 193.65, and the true level is 192.00. Neither fit is wrong in any useful sense, and the 7 unit gap between them is the honest size of the uncertainty.

Now the empirical side. Weibull’s rule gives the m-th most extreme of n values an interval of (n + 1) / m. The largest of 40 gets 41 years, the second 20.5, the third 13.67 and the fourth 10.25. A fit that predicts 150 as a 13-year level under maximum likelihood, and 15.68 years under moments, is consistent with a record whose third highest value is 148.09.

Then the question the fit cannot answer alone. Redraw the 40 values from themselves 2,000 times, with replacement, refit each time, and read off the 5th to 95th percentile of the maximum likelihood level. At 10 years the range is 132.3 to 154.4, 22.1 wide. At 100 years it is 172.4 to 210.3, which is 37.9 wide. At 1,000 years it is 211.3 to 265.9, 54.7 wide. The 1,000-year level lies as far beyond the record as the record is long, and the range says so.

What the page cannot tell you

The resampling is the ordinary bootstrap, a method the Wikipedia article on bootstrapping describes as resampling with replacement from the data. It shows how much the fit moves when the record is redrawn from itself. It cannot show a bias that every draw shares, such as a wrong model or a trend in the climate.

The simulation card checks one statement from the Gumbel article: the maximum of k independent Gumbel variables with location mu and scale beta is Gumbel with location mu + beta ln k. With k = 12, location 3 and scale 2 the new location is 7.9698. Drawing 400,000 such maxima and measuring the Kolmogorov-Smirnov distance, the largest gap between two cumulative curves, gave 0.0008. That tests the arithmetic, not whether river flows are Gumbel.

The page does not model other extreme value families, the choice of block maxima, non-stationary trends, regional frequency analysis or any design, insurance or planning decision. A level read from it is a figure to question, not a figure to build to. The tail arithmetic uses log1p and expm1, which the Python documentation describes as avoiding loss of precision for small arguments. The larger jobs run in a web worker so the page stays responsive, and large whole numbers are grouped by the browser’s own number formatting.

A minimum works the same way. The Gumbel article says to model a minimum by using the negative of the original values, and the page does exactly that: it negates the series, fits a maximum, and negates the levels back, so a 100-year low level is the value a yearly minimum falls below with a one percent chance.

Treat every number as a statement about forty values, and about a model chosen for them.

Sources

Every source consulted for this guide. Links checked November 12, 2026.

  1. Gumbel distribution Wikipedia
  2. Return period Wikipedia
  3. Fisher-Tippett-Gnedenko theorem Wikipedia
  4. Generalized extreme value distribution Wikipedia
  5. Extreme value theory Wikipedia
  6. Bootstrapping (statistics) Wikipedia
  7. Maximum likelihood estimation Wikipedia
  8. Method of moments (statistics) Wikipedia
  9. Kolmogorov-Smirnov test Wikipedia
  10. Poisson distribution Wikipedia
  11. math - Mathematical functions Python Software Foundation
  12. Web Workers API MDN Web Docs
  13. Intl.NumberFormat MDN Web Docs