Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

Gamma function

\Gamma(z)=\int_0^\infty t^{z-1}e^{-t}\,dt for \operatorname{Re}(z)>0, extending factorial to complex z.

The Gamma function is defined for \operatorname{Re}(z)>0 by the integral \Gamma(z)=\int_0^\infty t^{z-1}e^{-t}\,dt, and it extends by analytic continuation to a function defined on the whole complex plane except at the nonpositive integers, where it has simple poles. Its defining feature is that it interpolates the factorial, \Gamma(n)=(n-1)! for every positive integer n, so \Gamma answers the question of what "z!" should mean for a complex number that is not a nonnegative integer.

Examples

  • \Gamma(1)=\int_0^\infty e^{-t}\,dt=1, matching 0!=1.

  • \Gamma(5)=4!=24, and \Gamma(1/2)=\sqrt{\pi}.

Read the full section →
Graph settings

Calculator