Gamma Function Calculator

Evaluate the gamma function for real or complex arguments. Find exact factorial values at positive integers and identify poles.

Result
—

How to calculate

For a positive integer n, Γ(n) = (n − 1)!. The Lanczos approximation covers other arguments, and Euler’s reflection formula continues Γ across the left half-plane.

Worked example

Use Argument type Real number · Real part 5 · Significant figures for approximate results 13. The result is 24.

Input and result notes

Use a real part within ±500 and an imaginary part within ±200. Zero and negative integers are poles when the imaginary part is zero. Choose 3 to 15 significant figures for approximations. The available numerical accuracy varies with the input.

NIST gamma recurrence and reflection formulas

Related calculators