FormulaCraft

FACT

FACT computes the factorial of a non-negative integer: FACT(5) = 5 × 4 × 3 × 2 × 1 = 120. Factorials grow extremely fast, so inputs above about 170 exceed Excel's numeric range. The function is foundational for counting permutations and combinations.

Excel
=FACT(A2)
Google Sheets
=FACT(A2)

Verified example

Computed by a real spreadsheet engine on the sample data below.

nn!
0
1
5
7

=FACT(A2)1

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1A2 must be a non-negative integer (e.g. 5).
  2. 2FACT multiplies every integer from 1 up to A2: FACT(5) = 120.
  3. 3FACT(0) = 1 by mathematical convention; decimals are truncated before calculation.

Need a version for your data?

Try: “Calculate n factorial for each number in my list

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: