GAMMAINV Function

Excel Functions › Compatibility

All versions (legacy) Compatibility

The Excel GAMMAINV function returns the inverse of the gamma cumulative distribution — given a probability, it finds the x value. It is a legacy function; Microsoft replaced it in Excel 2010 with GAMMA.INV, which takes the same arguments.


Quick answer:
=GAMMAINV(0.068,9,2) x for that probability ≈ 10

Syntax

=GAMMAINV(probability, alpha, beta)
ArgumentDescription
probabilityRequiredA probability associated with the gamma distribution, between 0 and 1.
alphaRequiredThe shape parameter (must be > 0).
betaRequiredThe scale parameter (must be > 0). Use beta = 1 for the standard gamma distribution.

How to use it

GAMMAINV is the reverse of GAMMADIST (cumulative form): you supply a probability and the shape and scale parameters, and it returns the x at which the cumulative gamma distribution reaches that probability.

=GAMMAINV(0.068,9,2) // x ≈ 10
=GAMMAINV(0.5,3,1) // median ≈ 2.674

Because it inverts the CDF, feeding the output of GAMMADIST(...,TRUE) back into GAMMAINV returns your original x (within rounding). The probability argument must be between 0 and 1.

Use GAMMA.INV in Excel 2010 and later. GAMMAINV is retained only for backward compatibility. Microsoft recommends GAMMA.INV, which has the same three arguments and better precision.

Try it: interactive demo

Live demo

Pick a GAMMAINV example to see the formula and its result.

Result:

Practice workbook

📊
Download the free GAMMAINV practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Should I use GAMMAINV or GAMMA.INV?
Use GAMMA.INV in Excel 2010 or later. It takes the same probability, alpha, beta arguments and is the supported function; GAMMAINV is kept only for older workbooks.
How does GAMMAINV relate to GAMMADIST?
They are inverses. GAMMADIST(x,alpha,beta,TRUE) turns an x into a probability; GAMMAINV(probability,alpha,beta) turns that probability back into x.
What range must the probability be in?
The probability argument must be between 0 and 1. Values outside that range, or non-numeric inputs, return an error.
Does GAMMAINV solve iteratively?
Yes — it searches for the x that gives the requested cumulative probability and stops once the result is accurate to about 3x10^-7, which is why returned values may differ slightly in the last digits.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: GAMMA.INV · GAMMADIST · GAMMALN · BETAINV · CHIINV