GAMMA.DIST function
Returns the gamma distribution: the probability (or density) for skewed, positive quantities such as claim sizes, repair times or waiting times.
Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later
Excel 2010 and laterWorks in Google Sheets
Syntax
GAMMA.DIST(x, alpha, beta, cumulative)| Argument | What it means | |
|---|---|---|
x | Required | The value at which to evaluate the distribution. Must be 0 or more. |
alpha | Required | The shape parameter (greater than 0). Small values give a strongly skewed curve; large values look more bell-shaped. |
beta | Required | The scale parameter (greater than 0). The mean of the distribution is alpha*beta. |
cumulative | Required | TRUE returns the probability of a value up to x; FALSE returns the height of the density curve at x. |
Returns: A probability between 0 and 1 (cumulative) or a density value (non-cumulative).
How GAMMA.DIST works
Many business quantities can never be negative and have a long tail on the right: the size of insurance claims, the time a technician needs for a repair, the total rainfall in a month. The normal bell curve is a poor fit for these because it is symmetric. The gamma distribution is a flexible alternative: its shape parameter alpha controls how lopsided the curve is and its scale parameter beta stretches it. The mean is alpha*beta and the variance is alpha*beta^2, so you can pick parameters that match the average and spread you see in your data.
With cumulative set to TRUE the function answers "what share of cases are at or below x?". With FALSE it returns the density, the height of the curve, which is useful for drawing the curve in a chart but is not itself a probability. When alpha is a whole number the gamma distribution is also called the Erlang distribution (the time until the alpha-th event in a Poisson process), and with alpha = 1 it becomes the exponential distribution (EXPON.DIST). The inverse function is GAMMA.INV.
Examples
1Share of insurance claims up to 1,500
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Parameter | Value | ||
| 2 | x (claim) | 1500 | 0.8009 | |
| 3 | alpha | 2 | ||
| 4 | beta | 500 |
Result: 0.8009
Claims follow a gamma curve with mean 2 × 500 = 1,000. The probability that a claim is 1,500 or less is 0.800852, so about 80.1% of claims stay under that limit (shown to 4 decimals).
2Chance a repair takes at most 4 hours
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Parameter | Value | ||
| 2 | Hours | 4 | 0.3233 | |
| 3 | alpha | 3 | ||
| 4 | beta | 2 |
Result: 0.3233
Repairs average 3 × 2 = 6 hours. Only 32.3% of jobs finish within 4 hours (0.323324, shown to 4 decimals), which tells the planner to book 4-hour slots only for simple jobs.
3Density for a chart
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Parameter | Value | ||
| 2 | x (claim) | 1000 | 0.000541 | |
| 3 | alpha | 2 | ||
| 4 | beta | 500 |
Result: 0.000541
The density at 1,000 is 0.000541341; formatted to 6 decimals it shows 0.000541. The value is tiny because the curve is spread over thousands of units; fill this formula down a column of x values to plot the curve.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | x is negative, or alpha or beta is 0 or negative. | Gamma values start at 0; check that the shape and scale parameters are positive. |
#VALUE! | An argument is text. | Convert text numbers with VALUE or fix the source cells. |
Tips
- Estimate the parameters from data with the method of moments:
alpha = AVERAGE^2/VAR.Sandbeta = VAR.S/AVERAGE. - A probability between two values is
=GAMMA.DIST(b,α,β,TRUE)-GAMMA.DIST(a,α,β,TRUE). - Older workbooks use GAMMADIST (no dot) with the same arguments; it still works but GAMMA.DIST is the current name.
Google Sheets
GAMMA.DIST also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
GAMMA.DIST in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | GAMMA.FORDELING |
| Dutch | GAMMA.VERD.N |
| Finnish | GAMMA.JAKAUMA |
| French | LOI.GAMMA.N |
| German | GAMMA.VERT |
| Hungarian | GAMMA.ELOSZL |
| Italian | DISTRIB.GAMMA.N |
| Norwegian (Bokmål) | GAMMA.FORDELING |
| Polish | ROZKŁ.GAMMA |
| Portuguese (Brazil) | DIST.GAMA |
| Portuguese (Portugal) | DIST.GAMA |
| Russian | ГАММА.РАСП |
| Spanish | DISTR.GAMMA.N |
| Swedish | GAMMA.FÖRD |
| Turkish | GAMA.DAĞ |