# GAMMAINV Function

> Calculate the inverse cumulative gamma distribution with GAMMAINV, the older name of GAMMA.INV in TX Sheet Control: probability, shape, scale and errors.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > GAMMAINV Function
- **245 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gammainv/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gammainv/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gammainv/llms-full.txt

---

Return the inverse of the cumulative gamma distribution: the value at which the distribution reaches a probability. GAMMAINV is the older name of [GAMMA.INV](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gamma-inv/llms-full.txt) and calculates the same result. `probability` is the probability, from 0 to less than 1, and `alpha` and `beta` are the shape and scale parameters. A `probability` of 1 or more, or an `alpha` or `beta` of 0 or less, returns `#NUM!`.

### Syntax

```text
GAMMAINV(probability, alpha, beta)
```

Category: Statistics. Minimum arguments: 3. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=GAMMAINV(0.5,2,1)
```

The formula returns 1.6783469900, the median of the gamma distribution with shape 2 and scale 1.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [GAMMA.INV Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gamma-inv/llms-full.txt)
- **Next:** [GAMMALN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gammaln/llms-full.txt)
