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

ArgumentRequired?What it does
numberYesA 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)
AB
1StoresRoutes
236
35120
4840320
=FACT(A2) Explain

Common mistakes

  • Grows very fast. FACT(171) and above are too big for Excel and return #NUM!.

Notes

Kyle Stott

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.