# GAMMA.INV Function

> Return the inverse of the cumulative gamma distribution with GAMMA.INV in TX Sheet Control: probability, alpha and beta parameters, #NUM! errors and an example.

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

---

Return the inverse of the cumulative gamma distribution: the value at which the distribution reaches a probability. `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
GAMMA.INV(probability, alpha, beta)
```

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

Available for supported offline calculation.

### Examples

```text
=GAMMA.INV(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:** [GAMMADIST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gammadist/llms-full.txt)
- **Next:** [GAMMAINV Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/gammainv/llms-full.txt)
