Compatibility function

GAMMADIST function

Returns the gamma distribution, used for waiting times, rainfall and insurance claims. Replaced by GAMMA.DIST.

Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)

In every Excel versionWorks in Google Sheets

Older function. GAMMADIST still works, but for new workbooks use GAMMA.DIST.

Syntax

GAMMADIST(x, alpha, beta, cumulative)
ArgumentWhat it means
xRequiredThe value to evaluate, 0 or more.
alphaRequiredShape parameter, > 0.
betaRequiredScale parameter, > 0. (Beta = 1 gives the standard gamma distribution.)
cumulativeRequiredTRUE for P(X ≤ x); FALSE for the density.

Returns: A probability (cumulative) or a density value.

How GAMMADIST works

The gamma distribution describes positive, right-skewed quantities: the total waiting time for several random events, rainfall amounts, the size of insurance claims, the time to repair a machine. When alpha is a whole number it is the time until the alpha-th event in a process where events happen on average every beta units of time.

Excel uses the scale form: beta is the average time per event, not a rate. The mean of the distribution is alpha × beta. With alpha = 1 it reduces to the exponential distribution; with alpha = k/2 and beta = 2 it is the chi-squared distribution.

Compatibility note: GAMMADIST is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends GAMMA.DIST. The arguments are identical; rename to GAMMA.DIST(x, alpha, beta, cumulative).

Examples

1Cumulative probability

D2fx=GAMMADIST(A2, B2, C2, TRUE)
ABCD
1xAlphaBeta
210.00001131920.068094

Result: 0.068094

With shape 9 and scale 2 (mean 18), the probability of a value up to 10 is 0.068094 (formatted to 6 decimals). With FALSE the density at that point is 0.032639.

2Time for three repairs

D2fx=GAMMADIST(A2, B2, C2, TRUE)
ABCD
1HoursJobsAverage hours per job
25320.4562

Result: 0.4562

If each repair takes on average 2 hours (exponentially distributed), the chance that three repairs are finished within 5 hours is 0.4562, about 46% (formatted to 4 decimals).

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

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!x < 0, or alpha or beta ≤ 0.Check the inputs.
#VALUE!Non-numeric argument.Check the inputs.

Tips

  • If your source gives a rate λ instead of a scale, use beta = 1/λ.

Questions

Should I still use GAMMADIST?

Only if the workbook must open in Excel 2007 or earlier. Otherwise use GAMMA.DIST, which gives the same result and makes the intent clearer to the next person who reads the formula.

Will GAMMADIST stop working?

There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.

Google Sheets

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

GAMMADIST 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
DanishGAMMAFORDELING
DutchGAMMA.VERD
FinnishGAMMAJAKAUMA
FrenchLOI.GAMMA
GermanGAMMAVERT
HungarianGAMMA.ELOSZLÁS
ItalianDISTRIB.GAMMA
Norwegian (Bokmål)GAMMAFORDELING
PolishROZKŁAD.GAMMA
Portuguese (Brazil)DISTGAMA
Portuguese (Portugal)DISTGAMA
RussianГАММАРАСП
SpanishDISTR.GAMMA
SwedishGAMMAFÖRD
TurkishGAMADAĞ