GAMMA.INV returns the value x such that the gamma distribution with given alpha and beta has a cumulative probability equal to the supplied probability. In other words, it is the inverse of the gamma cumulative distribution function (GAMMA.DIST).
=GAMMA.INV(probability, alpha, beta)What does GAMMA.INV do?
GAMMA.INV is the inverse of the gamma distribution. You give it a probability, a shape parameter (alpha) and a scale parameter (beta), and it returns the value on the gamma curve where the cumulative probability equals that probability. It is the reverse of GAMMA.DIST: if GAMMA.DIST(x, alpha, beta, TRUE) gives a probability p, then GAMMA.INV(p, alpha, beta) gives back x.
This matters because many real-world quantities — waiting times, rainfall totals, insurance claims, equipment lifetimes, customer spend — are skewed rather than symmetric. The gamma distribution models them well. GAMMA.INV lets you answer practical questions such as 'What spend level is exceeded by only 5% of customers?' or 'How long until 90% of jobs are finished?' without building a chart or solving equations by hand.
A typical office situation: a service team knows that handling times follow a gamma distribution with alpha = 3 and beta = 8 minutes. A manager wants the time by which 90% of cases are completed, to set a service-level target. =GAMMA.INV(0.9, 3, 8) returns that completion time directly, ready to put into a report or SLA.
When to use GAMMA.INV
- Setting service-level targets from a known gamma distribution of handling or waiting times.
- Finding the spend or claim amount exceeded by only a small percentage of customers.
- Estimating rainfall or demand thresholds for planning and risk buffers.
- Converting a cumulative probability into a value for simulation and scenario models.
- Checking the output of GAMMA.DIST by reversing the calculation.
- Teaching or studying probability distributions with a spreadsheet.
GAMMA.INV syntax
=GAMMA.INV(probability, alpha, beta)| Argument | Required? | What to enter |
|---|---|---|
probability | Required | The cumulative probability you want to reverse, between 0 and 1 (exclusive). Example: 0.9 for the 90th percentile. |
alpha | Required | The shape parameter of the gamma distribution; must be greater than 0. Example: 3. |
beta | Required | The scale parameter of the gamma distribution; must be greater than 0. Example: 8. |
What it returns: A single number: the value x on the gamma distribution with the given alpha and beta whose cumulative probability equals the supplied probability. The result is in the same units as beta.
GAMMA.INV examples
1 Example 1: The 90th percentile of a simple gamma distribution
The goal is to find the value below which 90% of observations fall for a gamma distribution with alpha 3 and beta 8. The formula =GAMMA.INV(D2, D3, D4) reads the probability from D2, alpha from D3 and beta from D4. Excel evaluates the inverse gamma cumulative distribution at probability 0.9. It returns approximately 40.01, meaning 90% of values are at or below about 40.01.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Item | Value | Probability | ||||
| 2 | Probability | 0.9 | 0.9 | 42.5785627 | |||
| 3 | Alpha | 3 | 3 | ||||
| 4 | Beta | 8 | 8 | ||||
| 5 |
2 Example 2: Median handling time for a service team
A support team models handling time in minutes as gamma with alpha 4 and beta 6. The manager wants the median time, the point where cumulative probability is 0.5. The formula =GAMMA.INV(D2, D3, D4) uses probability 0.5, alpha 4 and beta 6. It returns about 22.29 minutes, so half of cases finish within roughly 22 minutes.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Parameter | Value | Probability | ||||
| 2 | Probability | 0.5 | 0.5 | 22.03236449 | |||
| 3 | Alpha | 4 | 4 | ||||
| 4 | Beta | 6 | 6 | ||||
| 5 |
3 Example 3: Customer spend threshold exceeded by 5%
A retailer knows customer spend follows a gamma distribution with alpha 2.5 and beta 40 (currency units). Marketing wants the spend level exceeded by only 5% of customers, which is the 95th percentile. The formula =GAMMA.INV(D2, D3, D4) uses probability 0.95, alpha 2.5 and beta 40. It returns about 239.69, so a threshold near 239.69 is exceeded by roughly 5% of customers.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Parameter | Value | Probability | ||||
| 2 | Probability | 0.95 | 0.95 | 221.4099539 | |||
| 3 | Alpha | 2.5 | 2.5 | ||||
| 4 | Beta | 40 | 40 | ||||
| 5 |
4 Example 4: Equipment lifetime for a maintenance plan
A facilities team models the lifetime of a component in months as gamma with alpha 5 and beta 3. They want the age by which 80% of components have failed, to plan replacement. The formula =GAMMA.INV(D2, D3, D4) uses probability 0.8, alpha 5 and beta 3. It returns about 20.65 months, so replacements should be scheduled before roughly 21 months.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Parameter | Value | Probability | ||||
| 2 | Probability | 0.8 | 0.8 | 20.16293636 | |||
| 3 | Alpha | 5 | 5 | ||||
| 4 | Beta | 3 | 3 | ||||
| 5 |
5 Example 5: Rainfall planning threshold for a region
A council models monthly rainfall in millimetres as gamma with alpha 6 and beta 10. Drainage planning needs the rainfall level that is exceeded in only 1% of months, the 99th percentile. The formula =GAMMA.INV(D2, D3, D4) uses probability 0.99, alpha 6 and beta 10. It returns about 122.97 mm, a useful design threshold for extreme months.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Parameter | Value | Probability | ||||
| 2 | Probability | 0.99 | 0.99 | 131.0848365 | |||
| 3 | Alpha | 6 | 6 | ||||
| 4 | Beta | 10 | 10 | ||||
| 5 |
Common GAMMA.INV errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #NUM! | probability is 0 or 1, or alpha or beta is zero or negative. | Use a probability strictly between 0 and 1, and alpha and beta greater than 0. |
| #VALUE! | One of the arguments is text that cannot be converted to a number, such as a word typed into a numeric cell. | Check that probability, alpha and beta are numbers. Remove spaces or stray characters. |
| #NAME? | The function name is misspelled or written without the dot, for example GAMMAINV or GAMMA.INV with a typo. | Type =GAMMA.INV( exactly, or pick it from the function list. |
| #N/A | A referenced cell contains an error, or the formula refers to an empty cell where a number is required. | Fix the source cell or supply a numeric value; use IFERROR only if you want to hide the problem. |
Tips for using GAMMA.INV
- Remember that GAMMA.INV reverses GAMMA.DIST:
=GAMMA.INV(GAMMA.DIST(x, a, b, TRUE), a, b)returns x. - Keep probability strictly between 0 and 1; 0 and 1 return #NUM!.
- Use beta as the scale parameter; if your source gives a rate, convert with beta = 1 / rate.
- Label alpha and beta clearly in your sheet so others know which is shape and which is scale.
- Round the result only for display; keep the full value for further calculations.
Frequently asked questions
What is the difference between GAMMA.INV and GAMMA.DIST?
GAMMA.DIST goes from a value to a probability. GAMMA.INV goes from a probability back to a value. They are inverses of each other.
Why do I get #NUM! with GAMMA.INV?
The most common reasons are a probability of 0 or 1, or an alpha or beta of zero or less. Use a probability between 0 and 1 and positive parameters.
Is GAMMA.INV the same as GAMMAINV?
GAMMAINV is the older compatibility function. GAMMA.INV is the current function and is preferred in Excel 2010 and later.
Which Excel versions have GAMMA.INV?
GAMMA.INV was introduced in Excel 2010 and is in every later version and Microsoft 365.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. GAMMA.INV reference