Factorial Calculator

Calculate the factorial of any number instantly, even large ones. Enter n, get n factorial. No signup. Ideal for probability, combinatorics, statistics and maths.

Remove Ads
Remove Ads

Result

Factorial
Remove Ads

Share on Social Media:

This factorial calculator computes the factorial of any number instantly, even large ones, directly in your browser. Enter a number and read its factorial, the product of all whole numbers up to it. No account, no install, so students and anyone working with probability, combinatorics or statistics can calculate factorials on any device in seconds.

How to Calculate a Factorial Step by Step

  1. Enter your number. Type the whole number whose factorial you want into the input field. The factorial is written with an exclamation mark, so the factorial of five is written five with an exclamation mark.
  2. Calculate the factorial. The tool multiplies together all the whole numbers from one up to your number, giving the factorial. For five, that is five times four times three times two times one.
  3. Read the result. The factorial appears instantly. Even for modest numbers the result grows very large, so the calculator handles the big numbers that quickly exceed what you can compute by hand.
  4. Understand zero factorial. Note that the factorial of zero is defined as one, which surprises people but is essential for the maths of combinatorics to work consistently.
  5. Use it in a formula. Apply the factorial in a probability, permutation or combination calculation, where factorials are the core building block.
Factorial calculator computing n factorial

What a Factorial Is and Why It Grows So Fast

The factorial of a whole number is the product of all the whole numbers from one up to it, written with an exclamation mark after the number. So the factorial of four is four times three times two times one, which is twenty four. This simple operation, multiplying a descending run of whole numbers, appears throughout mathematics, especially anywhere you count the number of ways things can be arranged or chosen.

Factorials grow astonishingly fast, faster than exponential growth. The factorial of ten is already over three million, and the factorial of twenty is measured in quintillions. This explosive growth is why factorials quickly become impossible to compute by hand and why even calculators reach their limits: the factorial of a moderately large number has hundreds of digits. The rapid growth reflects how quickly the number of possible arrangements of things multiplies.

Zero factorial equals one. The factorial of zero is defined as one, not zero. This is not arbitrary: there is exactly one way to arrange nothing, the empty arrangement, and the definition keeps the formulas of combinatorics consistent. It also lets the recursive pattern of factorials extend cleanly down to zero.

The factorial of zero is defined as one, which puzzles many people since it seems there is nothing to multiply. The definition is not arbitrary: it makes the formulas of combinatorics work consistently. There is exactly one way to arrange zero objects, the empty arrangement, so counting arrangements gives one. Defining zero factorial as one also lets the recursive pattern, where each factorial is the number times the previous factorial, extend cleanly down to zero.

Factorials are the engine of combinatorics, the mathematics of counting arrangements and selections. The number of ways to arrange a set of objects in order is the factorial of how many there are. Permutations and combinations, which count ordered and unordered selections, are built from factorials. This is why factorials are essential in probability and statistics, where questions constantly reduce to counting the possible outcomes, and factorials do that counting.

This Calculator Versus Multiplying by Hand

NumberFactorialValue
00 factorial1
11 factorial1
55 factorial120
1010 factorial3,628,800
2020 factoriala quintillion scale number

Who Uses a Factorial Calculator

Statistics and probability studentsA student calculating permutations, combinations or probabilities uses factorials as the building block, computing them quickly rather than multiplying long runs by hand.
People solving combinatorics problemsSomeone counting the number of ways to arrange or select items uses factorials directly, since arrangements and selections are defined in terms of them.
Teachers preparing materialAn instructor generating or checking probability and combinatorics problems computes factorials to verify answers involving arrangements and selections.
Data scientists and analystsA professional working with probability distributions or counting problems uses factorials as part of the underlying maths.
Anyone curious about the mathsA person exploring how fast factorials grow, or needing a single factorial for a calculation, gets the result instantly including for large numbers.
Student calculating factorials for a probability problem

Pro Tips for Working With Factorials

Remember factorials grow explosively. The factorial of a number grows faster than almost any other simple operation, so even modest inputs produce enormous results. Expect very large numbers, and appreciate why the calculator is needed beyond small values.
Use factorials for permutations and combinations. Factorials are the building block of counting arrangements and selections. For the full permutation or combination calculation, our combinatorics tools apply the factorial based formulas directly.
Do not forget zero factorial is one. When a formula involves the factorial of zero, remember it equals one, not zero. Treating it as zero breaks combinatorics calculations, since it would make products collapse to nothing.
Factorials only apply to whole numbers here. The basic factorial is defined for whole numbers. There is an extension to other numbers, the gamma function, but for counting problems you work with whole number factorials, which is what this calculator provides.
Use for probability with the percentage tool. After counting outcomes with factorials, expressing a probability as a percentage may help. Our Percentage of a Number calculator converts the fraction of outcomes into a percentage.
Check small factorials to build intuition. Compute the factorials of small numbers to see the pattern and how fast they grow, which builds intuition before you rely on them in larger probability or combinatorics problems.

Common Factorial Mistakes to Avoid

Thinking zero factorial is zero. The factorial of zero is one, not zero. This is a frequent error that breaks combinatorics formulas, since treating it as zero would wrongly collapse calculations that depend on there being exactly one way to arrange nothing.
Underestimating how large factorials get. Factorials grow far faster than people expect, so a seemingly modest number can have a factorial with many digits. Assuming a factorial will be manageable in size leads to surprise, which is why a calculator is essential beyond small numbers.
Applying factorials to non whole numbers. The standard factorial is defined for whole numbers only. Trying to take the factorial of a fraction or decimal does not fit the basic definition, though an advanced extension exists. For counting problems, use whole numbers.
Confusing factorial with exponentiation. A factorial multiplies a descending run of whole numbers, which is different from raising a number to a power. Mixing up the factorial of a number with the number to some power gives a completely different, wrong result.

Factorials underpin counting, so our GCD and LCM Calculator and general Scientific Calculator complement this for broader maths. To express a resulting probability, the Percentage of a Number calculator converts it to a percentage.

Large factorial result shown instantly

Frequently Asked Questions

What is a factorial?

The factorial of a whole number is the product of all the whole numbers from one up to that number, written with an exclamation mark after it. So the factorial of four is four times three times two times one, which equals twenty four. Factorials appear throughout mathematics, especially in combinatorics and probability, wherever you need to count the number of ways things can be arranged or selected.

How do I calculate a factorial?

Enter the whole number whose factorial you want, and the calculator multiplies together all the whole numbers from one up to it, giving the result instantly. For example, the factorial of five is five times four times three times two times one, which is one hundred and twenty. Because factorials grow very quickly, the calculator handles the large numbers that soon become impossible to compute by hand.

Why is zero factorial equal to one?

The factorial of zero is defined as one, which seems odd but is not arbitrary. There is exactly one way to arrange zero objects, the empty arrangement, so counting arrangements gives one. This definition also keeps the formulas of combinatorics consistent and lets the recursive pattern, where each factorial equals the number times the previous factorial, extend cleanly down to zero. So zero factorial equals one, not zero.

Why do factorials get so large so quickly?

Factorials grow faster than exponential growth because each step multiplies by an ever larger number. The factorial of ten already exceeds three million, and the factorial of twenty reaches into the quintillions. This explosive growth reflects how rapidly the number of possible arrangements of things multiplies as you add more items, which is exactly why factorials quickly become impossible to compute by hand.

What are factorials used for?

Factorials are the foundation of combinatorics, the mathematics of counting arrangements and selections. The number of ways to arrange a set of objects in order is the factorial of how many there are. Permutations and combinations, which count ordered and unordered selections, are built from factorials. This makes them essential in probability and statistics, where many questions reduce to counting the possible outcomes.

Can I calculate the factorial of a decimal?

The standard factorial is defined only for whole numbers, so taking the factorial of a fraction or decimal does not fit the basic definition. There is an advanced mathematical extension, called the gamma function, that generalises factorials to other numbers, but for the counting and probability problems where factorials are normally used, you work with whole numbers, which is what this calculator computes.

What is the difference between a factorial and a power?

A factorial multiplies together a descending run of whole numbers, so the factorial of four is four times three times two times one. A power raises a single number to an exponent, so four to the power of two is four times four. These are entirely different operations that grow at different rates and give different results, so it is important not to confuse the factorial of a number with a power of it.

Is the factorial calculator free?

Yes, it is completely free with no account and no usage limit. You can calculate as many factorials as you like, including large ones, as often as you like, at no cost. It runs entirely in your browser on any device, so there is nothing to download or install, and the factorial appears instantly whenever you enter a number, even when the result is a very large figure.