GAMMAINV function
Returns the value at which the cumulative gamma distribution reaches a given probability. Replaced by GAMMA.INV.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)
In every Excel versionWorks in Google Sheets
Syntax
GAMMAINV(probability, alpha, beta)| Argument | What it means | |
|---|---|---|
probability | Required | A probability between 0 and 1. |
alpha | Required | Shape parameter, > 0. |
beta | Required | Scale parameter, > 0. |
Returns: The value x where the gamma cumulative probability equals probability.
How GAMMAINV works
GAMMAINV is the inverse of GAMMADIST with cumulative TRUE. It is how you set a planning figure from a gamma model: "how many hours should we allow so that three repairs are done in 95% of cases?" or "what claim size is exceeded only 1% of the time?".
Excel searches iteratively for the answer; if the search fails it returns #N/A. Beta is the scale (average per event), as in GAMMADIST.
Compatibility note: GAMMAINV 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.INV. Same arguments; rename to GAMMA.INV(probability, alpha, beta).
Examples
1Reverse a GAMMADIST result
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Probability | Alpha | Beta | |
| 2 | 0.068094 | 9 | 2 | 10.0000 |
Result: 10.0000
The probability from the GAMMADIST example returns x ≈ 10 (formatted to 4 decimals).
2Time to allow for 95% of cases
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Confidence | Jobs | Avg hours per job | |
| 2 | 0.95 | 3 | 2 | 12.59 |
Result: 12.59
Three jobs averaging 2 hours each take 6 hours on average, but to be 95% sure they are finished you should allow 12.59 hours (formatted to 2 decimals).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | probability outside 0–1, or alpha or beta ≤ 0. | Check the inputs. |
#N/A | The iteration did not converge. | Check for extreme inputs. |
Tips
- Check your answer:
=GAMMADIST(result, alpha, beta, TRUE)should return the probability you started with.
Questions
Should I still use GAMMAINV?
Only if the workbook must open in Excel 2007 or earlier. Otherwise use GAMMA.INV, which gives the same result and makes the intent clearer to the next person who reads the formula.
Will GAMMAINV 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
GAMMAINV also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
GAMMAINV 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.
| Language | Function name |
|---|---|
| Dutch | GAMMA.INV |
| Finnish | GAMMAJAKAUMA.KÄÄNT |
| French | LOI.GAMMA.INVERSE |
| Hungarian | INVERZ.GAMMA |
| Italian | INV.GAMMA |
| Polish | ROZKŁAD.GAMMA.ODW |
| Portuguese (Brazil) | INVGAMA |
| Portuguese (Portugal) | INVGAMA |
| Russian | ГАММАОБР |
| Spanish | DISTR.GAMMA.INV |
| Turkish | GAMATERS |