Skip to main content

Excel GAMMA Function

Author: Amanda Li Last Modified: 2022-07-25

The GAMMA function returns the value of the gamma function for a specified number.

Note: The GAMMA function was introduced in Excel 2013. So, it is not available in earlier versions of Excel.

gamma function 1




  • x (required): The number for which to calculate the gamma function value. Note: x must be a positive number or a negative decimal.

Return Value

The GAMMA function returns a numeric value.

Function Notes

  • GAMMA returns the #NUM! error if x is a negative integer or 0 (zero).
  • GAMMA returns the #VALUE! error if x is not a numeric value.
  • The equation for the gamma function Γ(n) is:
    gamma function equation


To calculate the gamma function value for the given x values listed in the following table, please copy or enter the formula below in the top cell, press Enter to get the result, and then drag the fill handle (at the lower right corner of the result cell) down to apply the formula to the below cells.


gamma function 2

Also, you can type the actual x value in the formula as shown below.


Related functions

Excel GAMMA.DIST Function

The GAMMA.DIST function returns the gamma distribution. The function is frequently used to provide probabilities for values that may have a skewed distribution, such as queuing analysis.

Excel GAMMA.INV Function

The GAMMA.INV function returns the inverse of the gamma cumulative distribution. The function is frequently used to provide probabilities for values that may have a skewed distribution, such as queuing analysis.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations