Contact

GAMMA Function (Gnumeric)

Math Beginner Gnumeric

GAMMA evaluates the complete Gamma special function Γ(x), extending the factorial relationship beyond positive integers.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: Documented by 1.12.62; original introduction not established.
  • Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-math function module must be included and enabled.
  • Checked: October 14, 2026. Official source and independent mathematical examples checked; Gnumeric 1.12.62 was not run.

What GAMMA does

GAMMA evaluates the complete Gamma special function Γ(x), extending the factorial relationship beyond positive integers. For a positive integer n, Γ(n)=(n−1)!, so GAMMA(5) is 24, not 120. Official function reference.

For positive x, Γ(x) is the integral of t^(x−1)e^(−t) from zero to infinity. It obeys Γ(x+1)=xΓ(x), and Γ(1/2)=√π. Gnumeric also supports real negative nonintegers where the continuation is finite.

Syntax and arguments

=GAMMA(x)
Argument Meaning
x Real argument; exclude zero and negative integers, where Gamma has poles.

Every argument shown is required. Use numeric inputs or cell references. The examples follow English Gnumeric’s comma-separated notation and decimal points; localized separators can differ. Release-pinned argument help and evaluator.

Reproducible examples

Enter each formula in an unused worksheet cell. These are independently calculated mathematical reference values rounded to twelve decimal places. Keep full stored precision in later formulas rather than retyping a rounded display.

Formula Expected result, approximately
=GAMMA(0.5) 1.772453850906
=GAMMA(1) 1
=GAMMA(2) 1
=GAMMA(3) 2
=GAMMA(5) 24
=GAMMA(1.5) 0.886226925453
=GAMMA(2.5) 1.329340388179
=GAMMA(-0.5) -3.544907701811

Worked worksheet applications

Extend a factorial to a noninteger input

For x=2.5, =GAMMA(2.5) is approximately 1.329340388179. By the recurrence, it equals 1.5×0.5×√π. If your model asks for x!, the Gamma argument is x+1: for 0.5!, use =GAMMA(1.5), approximately 0.886226925453.

Reconstruct the recurrence

Put 2.5 in A2. In B2 enter =GAMMA(A2+1) and in C2 enter =A2*GAMMA(A2). Both have expected value 3.323350970448. Their difference should be close to zero at ordinary magnitudes. A noninteger Gamma value is not a count of arrangements by itself.

Release-specific errors and cautions

GAMMA is not GAMMADIST, which evaluates a probability distribution, and it is not GAMMAINV, which returns a probability quantile. Gamma has poles at 0, −1, −2 and so on. The release evaluator forwards its special-function result through the shared numeric constructor, which maps nonfinite outputs to #NUM!. Pinned evaluator. Gamma implementation. Nonfinite numeric result handling.

Advanced check and numerical interpretation

Products of large Gamma values can overflow even when a final ratio is modest. For positive arguments, a logarithmic expression using GAMMALN can be safer. For a beta normalization, prefer the purpose-built BETA or BETALN rather than directly dividing three potentially enormous Gamma values. Negative Gamma values have no real natural logarithm; do not apply a positive-domain logarithmic identity without checking signs.