Statistical function

GAMMA.DIST function

Returns the gamma distribution: the probability (or density) for skewed, positive quantities such as claim sizes, repair times or waiting times.

Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later

Excel 2010 and laterWorks in Google Sheets

Syntax

GAMMA.DIST(x, alpha, beta, cumulative)
ArgumentWhat it means
xRequiredThe value at which to evaluate the distribution. Must be 0 or more.
alphaRequiredThe shape parameter (greater than 0). Small values give a strongly skewed curve; large values look more bell-shaped.
betaRequiredThe scale parameter (greater than 0). The mean of the distribution is alpha*beta.
cumulativeRequiredTRUE returns the probability of a value up to x; FALSE returns the height of the density curve at x.

Returns: A probability between 0 and 1 (cumulative) or a density value (non-cumulative).

How GAMMA.DIST works

Many business quantities can never be negative and have a long tail on the right: the size of insurance claims, the time a technician needs for a repair, the total rainfall in a month. The normal bell curve is a poor fit for these because it is symmetric. The gamma distribution is a flexible alternative: its shape parameter alpha controls how lopsided the curve is and its scale parameter beta stretches it. The mean is alpha*beta and the variance is alpha*beta^2, so you can pick parameters that match the average and spread you see in your data.

With cumulative set to TRUE the function answers "what share of cases are at or below x?". With FALSE it returns the density, the height of the curve, which is useful for drawing the curve in a chart but is not itself a probability. When alpha is a whole number the gamma distribution is also called the Erlang distribution (the time until the alpha-th event in a Poisson process), and with alpha = 1 it becomes the exponential distribution (EXPON.DIST). The inverse function is GAMMA.INV.

Examples

1Share of insurance claims up to 1,500

D2fx=GAMMA.DIST(B2, B3, B4, TRUE)
ABCD
1ParameterValue
2x (claim)15000.8009
3alpha2
4beta500

Result: 0.8009

Claims follow a gamma curve with mean 2 × 500 = 1,000. The probability that a claim is 1,500 or less is 0.800852, so about 80.1% of claims stay under that limit (shown to 4 decimals).

2Chance a repair takes at most 4 hours

D2fx=GAMMA.DIST(B2, B3, B4, TRUE)
ABCD
1ParameterValue
2Hours40.3233
3alpha3
4beta2

Result: 0.3233

Repairs average 3 × 2 = 6 hours. Only 32.3% of jobs finish within 4 hours (0.323324, shown to 4 decimals), which tells the planner to book 4-hour slots only for simple jobs.

3Density for a chart

D2fx=GAMMA.DIST(B2, B3, B4, FALSE)
ABCD
1ParameterValue
2x (claim)10000.000541
3alpha2
4beta500

Result: 0.000541

The density at 1,000 is 0.000541341; formatted to 6 decimals it shows 0.000541. The value is tiny because the curve is spread over thousands of units; fill this formula down a column of x values to plot the curve.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 16 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!x is negative, or alpha or beta is 0 or negative.Gamma values start at 0; check that the shape and scale parameters are positive.
#VALUE!An argument is text.Convert text numbers with VALUE or fix the source cells.

Tips

  • Estimate the parameters from data with the method of moments: alpha = AVERAGE^2/VAR.S and beta = VAR.S/AVERAGE.
  • A probability between two values is =GAMMA.DIST(b,α,β,TRUE)-GAMMA.DIST(a,α,β,TRUE).
  • Older workbooks use GAMMADIST (no dot) with the same arguments; it still works but GAMMA.DIST is the current name.

Google Sheets

GAMMA.DIST also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

GAMMA.DIST in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishGAMMA.FORDELING
DutchGAMMA.VERD.N
FinnishGAMMA.JAKAUMA
FrenchLOI.GAMMA.N
GermanGAMMA.VERT
HungarianGAMMA.ELOSZL
ItalianDISTRIB.GAMMA.N
Norwegian (Bokmål)GAMMA.FORDELING
PolishROZKŁ.GAMMA
Portuguese (Brazil)DIST.GAMA
Portuguese (Portugal)DIST.GAMA
RussianГАММА.РАСП
SpanishDISTR.GAMMA.N
SwedishGAMMA.FÖRD
TurkishGAMA.DAĞ