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.
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
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
| Argument x | Γ(x) | Γ(x + 1) = x·Γ(x) |
|---|---|---|
| 0.5 | 1.772454 | 0.886227 |
| 1 | 1 | 1 |
| 1.5 | 0.886227 | 1.32934 |
| 2 | 1 | 2 |
| 2.5 | 1.32934 | 3.323351 |
| 3 | 2 | 6 |
| 3.5 | 3.323351 | 11.631728 |
| 4 | 6 | 24 |
| 5 | 24 | 120 |
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.