FACT Function

Excel Functions › Math & Trig

All versions Math & Trig

The Excel FACT function returns the factorial of a number — the product of all positive whole numbers up to and including it. FACT(5) = 5×4×3×2×1 = 120.


Quick answer:
=FACT(5) = 120

Syntax

=FACT(number)
ArgumentDescription
numberRequiredA non-negative number. Non-integers are truncated first; negatives return a #NUM! error.

How to use it

The factorial multiplies every whole number from 1 up to the argument. It grows extremely fast and is the backbone of counting and probability formulas.

=FACT(5) // 5*4*3*2*1 = 120
=FACT(0) // 0! = 1 by definition
=FACT(10) // = 3628800

Factorials count the number of ways to arrange a set of items (permutations): 5 books can be lined up in FACT(5) = 120 different orders. FACT underpins COMBIN, MULTINOMIAL, and many statistical functions.

Why is 0! = 1? There is exactly one way to arrange zero items (the empty arrangement), so =FACT(0) returns 1 — not 0. This convention keeps combination and permutation formulas consistent.

Try it: interactive demo

Live demo

Pick a FACT example to see the formula and its result.

Result:

Practice workbook

📊
Download the free FACT practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What is a factorial?
The product of every positive whole number up to the argument. =FACT(5) = 5×4×3×2×1 = 120. It counts how many ways a set of items can be arranged.
Why does FACT(0) return 1?
By mathematical convention 0! = 1 — there is exactly one way to arrange nothing. This keeps combination and permutation formulas working at their boundaries.
What happens with a negative or decimal number?
A negative number returns a #NUM! error. A decimal is truncated to a whole number first, so =FACT(5.9) behaves like =FACT(5) = 120.
How does FACT relate to COMBIN?
Combinations are built from factorials: COMBIN(n,k) = FACT(n) / (FACT(k)*FACT(n-k)). FACT is the underlying engine.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: FACTDOUBLE · COMBIN · COMBINA · MULTINOMIAL · GCD