Statistical function

GAMMA.INV function

Returns the value x at which the gamma cumulative distribution reaches a given probability, the inverse of GAMMA.DIST.

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.INV(probability, alpha, beta)
ArgumentWhat it means
probabilityRequiredThe cumulative probability, from 0 to 1 (exclusive of 1).
alphaRequiredThe shape parameter, greater than 0.
betaRequiredThe scale parameter, greater than 0.

Returns: The value x such that GAMMA.DIST(x, alpha, beta, TRUE) equals probability.

How GAMMA.INV works

GAMMA.INV turns a probability back into a value. If GAMMA.DIST answers "what share of repairs take less than 4 hours?", GAMMA.INV answers the reverse: "how many hours do 90% of repairs fit into?". That makes it the tool for setting limits, reserves and service-level targets on skewed data, for example a claims reserve that covers 95% of cases or a delivery promise that holds 9 times out of 10.

Excel finds the answer by searching (iterating) until the gamma CDF matches the probability you asked for, so the result is accurate to many digits. A probability of 0.5 gives the median, which for a gamma distribution is always a little below the mean because of the long right tail.

Examples

1Claim size that covers 90% of claims

D2fx=GAMMA.INV(B2, B3, B4)
ABCD
1ParameterValue
2Probability0.91944.86
3alpha2
4beta500

Result: 1944.86

90% of claims are at or below 1944.8601, shown to 2 decimals. An insurer could use this as the limit above which a claim goes to manual review.

2Median repair time

D2fx=GAMMA.INV(B2, B3, B4)
ABCD
1ParameterValue
2Probability0.55.35
3alpha3
4beta2

Result: 5.35

Half of all repairs finish within 5.3481 hours (shown to 2 decimals), below the mean of 6 hours because a few very long jobs pull the average up.

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

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!probability is below 0 or at least 1, or alpha/beta is 0 or less.Use a probability strictly between 0 and 1 and positive parameters.
#VALUE!An argument is text.Check the input cells.

Tips

  • Check the result by feeding it back: =GAMMA.DIST(GAMMA.INV(p,α,β),α,β,TRUE) returns p.
  • GAMMAINV (no dot) is the older compatibility name with identical arguments.

Google Sheets

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

GAMMA.INV 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
DutchGAMMA.INV.N
FinnishGAMMA.JAKAUMA.KÄÄNT
FrenchLOI.GAMMA.INVERSE.N
HungarianGAMMA.INVERZ
ItalianINV.GAMMA.N
PolishROZKŁ.GAMMA.ODWR
Portuguese (Brazil)INV.GAMA
Portuguese (Portugal)INV.GAMA
RussianГАММА.ОБР
SpanishINV.GAMMA
TurkishGAMA.TERS