GAMMADIST function
Returns the gamma distribution, used for waiting times, rainfall and insurance claims. Replaced by GAMMA.DIST.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)
In every Excel versionWorks in Google Sheets
Syntax
GAMMADIST(x, alpha, beta, cumulative)| Argument | What it means | |
|---|---|---|
x | Required | The value to evaluate, 0 or more. |
alpha | Required | Shape parameter, > 0. |
beta | Required | Scale parameter, > 0. (Beta = 1 gives the standard gamma distribution.) |
cumulative | Required | TRUE for P(X ≤ x); FALSE for the density. |
Returns: A probability (cumulative) or a density value.
How GAMMADIST works
The gamma distribution describes positive, right-skewed quantities: the total waiting time for several random events, rainfall amounts, the size of insurance claims, the time to repair a machine. When alpha is a whole number it is the time until the alpha-th event in a process where events happen on average every beta units of time.
Excel uses the scale form: beta is the average time per event, not a rate. The mean of the distribution is alpha × beta. With alpha = 1 it reduces to the exponential distribution; with alpha = k/2 and beta = 2 it is the chi-squared distribution.
Compatibility note: GAMMADIST is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends GAMMA.DIST. The arguments are identical; rename to GAMMA.DIST(x, alpha, beta, cumulative).
Examples
1Cumulative probability
| A | B | C | D | |
|---|---|---|---|---|
| 1 | x | Alpha | Beta | |
| 2 | 10.00001131 | 9 | 2 | 0.068094 |
Result: 0.068094
With shape 9 and scale 2 (mean 18), the probability of a value up to 10 is 0.068094 (formatted to 6 decimals). With FALSE the density at that point is 0.032639.
2Time for three repairs
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Hours | Jobs | Average hours per job | |
| 2 | 5 | 3 | 2 | 0.4562 |
Result: 0.4562
If each repair takes on average 2 hours (exponentially distributed), the chance that three repairs are finished within 5 hours is 0.4562, about 46% (formatted to 4 decimals).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | x < 0, or alpha or beta ≤ 0. | Check the inputs. |
#VALUE! | Non-numeric argument. | Check the inputs. |
Tips
- If your source gives a rate λ instead of a scale, use beta = 1/λ.
Questions
Should I still use GAMMADIST?
Only if the workbook must open in Excel 2007 or earlier. Otherwise use GAMMA.DIST, which gives the same result and makes the intent clearer to the next person who reads the formula.
Will GAMMADIST stop working?
There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.
Google Sheets
GAMMADIST also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
GAMMADIST 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 | GAMMAFORDELING |
| Dutch | GAMMA.VERD |
| Finnish | GAMMAJAKAUMA |
| French | LOI.GAMMA |
| German | GAMMAVERT |
| Hungarian | GAMMA.ELOSZLÁS |
| Italian | DISTRIB.GAMMA |
| Norwegian (Bokmål) | GAMMAFORDELING |
| Polish | ROZKŁAD.GAMMA |
| Portuguese (Brazil) | DISTGAMA |
| Portuguese (Portugal) | DISTGAMA |
| Russian | ГАММАРАСП |
| Spanish | DISTR.GAMMA |
| Swedish | GAMMAFÖRD |
| Turkish | GAMADAĞ |