FACT Function
Returns the factorial of a number (n × (n−1) × … × 1).
Category
Math & Trig
Available in
All versions, Microsoft 365
Returns
A whole number
Want to practice FACT in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox
Overview
FACT(5) is 5 × 4 × 3 × 2 × 1 = 120 — the number of ways to arrange 5 different items in order.
It's the building block of permutations and combinations.
Syntax
=FACT(number) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| number | Yes | A number zero or above; decimals are truncated. |
Examples
Example 1 — Ways to order deliveries
How many different orders can a driver visit n stores in?
B2fx=FACT(A2)
| A | B | |
|---|---|---|
| 1 | Stores | Routes |
| 2 | 3 | 6 |
| 3 | 5 | 120 |
| 4 | 8 | 40320 |
=FACT(A2) Explain
Common mistakes
- Grows very fast. FACT(171) and above are too big for Excel and return #NUM!.
Notes
- FACT(0) is 1.
- Related functions: COMBIN, PERMUT, FACTDOUBLE, MULTINOMIAL.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.