Math

Factorial Calculator

Calculate factorials, permutations (nPr), and combinations (nCr).
n! Factorial
0! = 1  ·  Max: 170! before overflow
Permutations nPr
Combinations nCr
Factorial Table (1–20)
${Array.from({length:20},(_,i)=>{let f=BigInt(1);for(let j=2;j<=i+1;j++)f*=BigInt(j);return`
${i+1}!${f.toLocaleString()}
`;}).join('')}