# GAMMA.DIST Function

> Calculate the gamma distribution with GAMMA.DIST in TX Sheet Control: alpha and beta parameters, cumulative or density function, #NUM! errors and an example.

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

---

Return the gamma distribution, used for skewed data such as waiting times. `x` is the value to evaluate, `alpha` and `beta` the shape and scale parameters, and `cumulative` selects the cumulative distribution function (TRUE) or the probability density function (FALSE). A negative `x`, or an `alpha` or `beta` of 0 or less, returns `#NUM!`.

### Syntax

```text
GAMMA.DIST(x, alpha, beta, cumulative)
```

Category: Statistics. Minimum arguments: 4. Maximum arguments: 4.

Available for supported offline calculation.

### Examples

```text
=GAMMA.DIST(2,2,1,TRUE)
```

The formula returns 0.5939941503, the probability of a value of 2 or less.

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