StatGardenREF. DESK
Calculators/Maths/Gamma function
Maths

Gamma function calculator

Evaluates the gamma function Γ(x) for any real x, extending the factorial to non-integers.

What this calculator does

Gamma function works out evaluates the gamma function Γ(x) for any real x, extending the factorial to non-integers. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaΓ(x) = ∫₀^∞ tˣ⁻¹e⁻ᵗ dt, with Γ(n) = (n−1)! for positive integers n. Computed via the Lanczos approximation

The inputs explained

FieldWhat to enter
xA number. Starts at 5.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with x

Every other input is held at the calculator’s starting values while x varies. Select any row to load that scenario into the calculator.

How the answer changes with x
xΓ(x)xFormula used
2.51.32932.500Γ(x) = ∫₀^∞ tˣ⁻¹e⁻ᵗ dt, via the Lanczos approximation
3.754.42303.750Γ(x) = ∫₀^∞ tˣ⁻¹e⁻ᵗ dt, via the Lanczos approximation
524.00005.0004! = 24.0000
7.51,871.25437.500Γ(x) = ∫₀^∞ tˣ⁻¹e⁻ᵗ dt, via the Lanczos approximation
10362,880.0010.0009! = 362,880.00
1587,178,291,20015.00014! = 87,178,291,200