GAMMA.INV in Google Sheets: Gamma Percentile Thresholds
Find gamma-distribution percentile thresholds with GAMMA.INV in Google Sheets, using positive shape and scale parameters and checked duration-model examples.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =GAMMA.INV(0.9,1,4) has expected result 9.2103403720. Under a gamma model with shape 1 and scale 4, this is the value with 90% of the distribution at or below it.
Syntax and parameter meaning
=GAMMA.INV(probability, alpha, beta)
The Google GAMMA.INV reference documents three parameters: cumulative probability, positive shape alpha and positive scale beta. It explicitly supports the alternative spelling GAMMAINV.
All three arguments are supplied here. Probability is entered as a fraction, so the 90th percentile uses 0.9, not 90. Google’s phrase describing probability as between 0 and 1 does not make endpoint handling explicit; all examples use strictly interior probabilities. Native behavior at exactly 0 or 1 is not asserted.
Scale has the units of the output. Shape and probability are unitless. In particular, beta is a scale, not a rate and not the standard deviation.
Worked example: percentile targets in minutes
Suppose a synthetic duration model has shape 1 and scale 4 minutes. Enter 0.25, 0.5 and 0.9 in A2:A4. Put 1 in D1 for shape and 4 in E1 for scale.
Enter this in B2 and fill down:
=GAMMA.INV(A2,$D$1,$E$1)
| Percentile probability | Expected duration in minutes |
|---|---|
| 0.25 | 1.1507282898 |
| 0.5 | 2.7725887222 |
| 0.9 | 9.2103403720 |
The median is about 2.77 minutes, while the 90th percentile is about 9.21 minutes. Multiplying the median by 1.8 would not find the 90th percentile: quantiles are generally nonlinear in probability.
Column A supplies requested probability levels. It does not contain a sample of durations. GAMMA.INV evaluates a distribution you specify; it does not estimate the shape or scale from observations.
Independent check for shape 1
For shape 1, the gamma model is exponential. Its quantile at p is negative scale times the natural logarithm of 1 minus p. Check the table with:
=-4*LN(1-A2)
Fill down beside the original results. This equation is an independent mathematical check for shape 1 only. It follows from the zero-location gamma model described by NIST. For other shapes, a numerical inverse is generally needed.
For example:
=GAMMA.INV(0.9,2,3)
Expected result: 11.6691605096. Substituting shape 2 into the shape-1 logarithm shortcut would be incorrect.
Advanced application: a central model interval
For a gamma model with shape 2 and scale 3, a central 90% interval leaves 5% in each tail:
=GAMMA.INV(0.05,2,3)
=GAMMA.INV(0.95,2,3)
Expected endpoints are approximately 1.0660845321 and 14.2315935552. The endpoints are asymmetric around the distribution’s mean, as expected for a right-skewed model.
This interval describes outcomes under the specified distribution. It is not automatically a confidence interval for an unknown mean or a guarantee for an operational deadline. Parameter uncertainty and model fit require separate analysis.
A scale check catches unit mistakes
Doubling scale while keeping shape and probability fixed doubles every quantile. Thus:
=GAMMA.INV(0.9,2,6)
has expected result 23.3383210192, twice the shape-2, scale-3 result. Converting a scale from hours to minutes should similarly multiply the resulting threshold by 60. If the result changes in a different way, check that shape and scale were not swapped or that a rate was not entered as a scale.
Errors and troubleshooting
Use positive numeric shapes and scales and an interior probability. The reviewed Google page contains an unrelated note about the sign of a parameter named significance, although the syntax has no such argument. It does not justify using a negative alpha: the actual alpha definition requires a positive value.
Exact error codes, text/blank coercion and inverse behavior at probability endpoints were not established. Very extreme probabilities may also require more numerical care than the moderate values demonstrated here. Display extra decimal places before deciding that two close quantiles are equal.
Availability and verification
GAMMA.INV and GAMMAINV are documented for current rolling Google Sheets. Original introduction date, first release and last functioning numbered version were not established. No compatibility claim about another spreadsheet engine is implied.
NOT_TESTED_IN_GOOGLE_SHEETS. The Google reference and NIST mathematical model were inspected on October 17, 2026. Outputs were independently checked with the shape-1 logarithm equation and numerical gamma quantiles. They are expected results, not native execution captures.