What is the FACT function?
=FACT(number)FACT multiplies every whole number from 1 up to the number (n!). Use it to count arrangements.
Decimals are truncated and negative numbers return #NUM!. Click a value in column A; column B shows the same formula copied down.
FACT is mostly a building block for counting arrangements and selections. Factorials grow very fast: FACT(170) is about 7.26 × 10^306, and anything larger is beyond what Excel can store, so it returns #NUM!.
Arguments
- number
- A number of 0 or more.
FACT examples
Example 1. 5!
=FACT(5)1×2×3×4×5 = 120.
Example 2. 0!
=FACT(0)1.
Example 3. Ways to line people up
=FACT(4)Four people can stand in a line in 24 ways.
Example 4. How fast factorials grow
=FACT(A2)Each step multiplies by the next number, so the result jumps quickly.
A2 =FACT(A2) 3 6 5 120 7 5,040 10 3,628,800 Example 5. Arrange 3 of 5 people
=FACT(5)/FACT(2)60 ways, the same as PERMUT(5, 3).
Example 6. Choose 3 of 5 people
=FACT(5)/(FACT(3)*FACT(2))Order does not matter, so 10 ways, the same as COMBIN(5, 3).
Common mistakes
Decimals
FACT(3.9) is treated as 3!, so it returns 6.
Negative numbers
They return #NUM!.
Numbers that are too large
FACT(171) and above return #NUM!. For ratios of large factorials use COMBIN or PERMUT instead.
FAQ
- Combinations?
- Use COMBIN.
- Permutations?
- Use PERMUT.
- Is there a double factorial?
- Yes, FACTDOUBLE. FACTDOUBLE(6) is 6 × 4 × 2 = 48.