Home · Everyday · Trigonometry · Gamma Function Calculator

Gamma Function Calculator

Evaluates the gamma function Γ(x), the continuous extension of the factorial to real numbers, at any positive argument you enter.

Your figures

Defined for x > 0 here; Γ(n) = (n−1)! for whole numbers.

Example result — edit the figures to make it yours

3.32335097

Γ(x)

Computed from the inputs on this page with the formula below — change any figure and every result updates.

Γ(x + 1) = x·Γ(x)11.63172840

What this calculator does

Evaluates the gamma function Γ(x), the continuous extension of the factorial to real numbers, at any positive argument you enter. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Γ(x) = ∫₀^∞ t^(x−1) e^(−t) dt, Γ(x + 1) = x Γ(x)

The gamma function generalises the factorial: Γ(x) = ∫₀^∞ t^(x−1)e^(−t) dt for x > 0, with the recurrence Γ(x + 1) = xΓ(x), so for whole numbers Γ(n) = (n − 1)!. A useful anchor is Γ(½) = √π ≈ 1.7724539, which gives all half-integer values.

Γ grows faster than exponentially — Γ(10) = 362880 and Γ(20) ≈ 1.2×10¹⁷ — so results overflow double precision near x ≈ 172. The function also extends to negative non-integer x by analytic continuation, but this page is scoped to positive arguments.

Worked example

With the example inputs this page opens with (argument x 3.5), the result is 3.32335097 — γ(x). Computed from the inputs on this page with the formula below — change any figure and every result updates.

Quick reference

Quick reference — varying Argument x
Argument xΓ(x)Γ(x + 1) = x·Γ(x)
0.51.7724540.886227
111
1.50.8862271.32934
212
2.51.329343.323351
326
3.53.32335111.631728
4624
524120

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why is Γ(3.5) not a whole number if gamma extends the factorial?

Because Γ(n) = (n−1)!, half-integers land between factorials: Γ(3.5) = 2.5 × 1.5 × 0.5 × √π ≈ 3.3234.

How does the Gamma Function Calculator work?

Evaluates the gamma function Γ(x), the continuous extension of the factorial to real numbers, at any positive argument you enter. Argument x → Γ(x) · Γ(x+1). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Gamma Function Calculator need?

Argument x → Γ(x) · Γ(x+1). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Gamma Function Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.