FACT Function in Excel: Factorial

FACT Function in Excel: Factorial featured illustration

📎 This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 5 October 2026

MathLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Common errors and fixes
  5. FACT in practice
  6. Where you will use it
  7. Worked example
  8. Mistakes people make
  9. Related functions
  10. Continue learning

FACT returns n! (1 × 2 × … × n). It grows absurdly fast: FACT(20) is already about 2.4 quintillion.

Advertisement

Syntax

=FACT(number)
Argument What it means
number Non-negative; decimals are truncated.

Examples

Example 1

=FACT(5)

120 ways to order five books on a shelf.

Common errors and fixes

You see Why, and the fix
#NUM! Negative input, or above 170 (the result overflows Excel’s number limit).

FACT in practice

Where you will use it

  • Number of seating arrangements
  • Probability teaching
  • Permutations by hand

Worked example

nFormulaResult
5=FACT(A2)120
10=FACT(A3)3628800
0=FACT(A4)1

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Huge numbersFACT(171) overflows; 170 is the limit
Negative inputGives #NUM!

COMBIN · PERMUT

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

⚡ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

📎 Practice files for this article

  • 📗
    Practice workbook: Math & rounding24 tasks on realistic sales data — type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX · 35 KB

Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong