MathsFree

Factorial Calculator

Factorial calculator computes n! for any non-negative integer. 5! = 120, 10! = 3,628,800, 20! = 2.43 x 10^18. Used in permutations, combinations, probability, and statistics problems.

Enter Values

Result

Enter values above and click Calculate to see your result.

AI Assistant

Ask about this calculator

I can help you understand the factorial calculator formula, interpret your results, and answer follow-up questions.

Try asking

Formula

#
Core Formula
n!=1×2×3××nn! = 1 \times 2 \times 3 \times \cdots \times n

How it works: Factorial multiplies all positive integers from 1 to n. By convention, 0! = 1.

Worked Example

Calculate 6!.
1Step 1: 6! = 1 x 2 x 3 x 4 x 5 x 6.
2Step 2: 1 x 2 = 2, then 2 x 3 = 6, then 6 x 4 = 24, then 24 x 5 = 120, then 120 x 6 = 720. So 6! = 720. Practical use: How many ways can 6 students line up? Answer: 6! = 720 different arrangements. For combinations: choosing 3 from 6 = 6! / (3! x 3!) = 720 / (6 x 6) = 20.

What is Factorial and When Do You Use It?

Factorial (n!) is the product of all positive integers from 1 to n. It answers the question: how many ways can n objects be arranged?

  • n! = n x (n-1) x (n-2) x ... x 2 x 1. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120
  • 0! = 1 by mathematical convention. This ensures formulas for combinations and permutations work correctly when choosing 0 or all items
  • Factorial growth is extremely fast: 10! = 3.6 million, 15! = 1.3 trillion, 20! = 2.4 quintillion
  • Key applications: permutations (n! arrangements), combinations (n choose r = n! / (r!(n-r)!)), and probability distributions

Factorials are fundamental to combinatorics, probability, and statistics. They appear in the binomial theorem, Taylor series, and almost any counting problem.

You can also calculate changes using our Scientific Calculator, Circumference Calculator or Circle Geometry Theorem Solver.

Frequently Asked Questions

What is 10 factorial?

10! = 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1 = 3,628,800. This means there are 3,628,800 different ways to arrange 10 distinct objects in a line.

Why does 0 factorial equal 1?

0! = 1 by mathematical convention based on the empty product principle. It also ensures that formulas work correctly: for example, the number of ways to choose 0 items from n is n!/(0! x n!) = 1, which requires 0! = 1. Without this convention, many combinatorics formulas would need special cases.

How do I use factorials for combinations?

The combination formula is C(n, r) = n! / (r! x (n-r)!). To choose 3 people from a group of 10: C(10, 3) = 10! / (3! x 7!) = 3,628,800 / (6 x 5,040) = 120 different groups. Unlike permutations, combinations do not care about order.

Why does factorial grow so fast?

Each new factor multiplies by an increasingly large number. 10! is 3.6 million, but 20! is 2.4 quintillion (2.4 x 10^18). By 100!, the result has 158 digits. This rapid growth is called "super-exponential" and is why factorial is used in computational complexity theory.

What is the difference between permutations and combinations?

Permutations (order matters) use P(n,r) = n!/(n-r)!. Combinations (order does not matter) use C(n,r) = n!/(r!(n-r)!). Example: arranging 3 books from 5 has P(5,3) = 60 permutations, but choosing 3 books from 5 has C(5,3) = 10 combinations.

How do I add this Factorial Calculator to my site?

Absolutely. Use the "Embed" option above to tailor the dimensions, color scheme, and styling to match your site. Copy the generated iframe snippet and drop it into your HTML, WordPress editor, or any CMS. There is no cost and no account required. See calculory.com/services/embed-calculators for a step-by-step walkthrough.

Accurate and Reliable

All calculations run locally. Step-by-step solutions you can trust.

Verified Precision

Precise Mathematical Calculations Powered by Calculory AI