CalcUnit Logo

What is the Factorial Calculator?

Shuffle a deck of cards and you are almost certainly holding an arrangement no human has ever seen — there are 52! of them, a 68-digit number. The factorial n! multiplies every positive integer down to 1: 5! = 5 × 4 × 3 × 2 × 1 = 120. It counts arrangements — the ways to order n distinct items — which makes it the engine of combinatorics: 52! ≈ 8 × 10⁶⁷ possible card shuffles, more than the atoms in the galaxy's stars.

By definition 0! = 1 (there is exactly one way to arrange nothing), a convention that keeps the formulas consistent. Factorials also build the permutation and combination formulas: P(n, r) = n!/(n−r)! counts ordered selections, C(n, r) = n!/(r!(n−r)!) unordered ones — the calculator shows both for r = 2. Growth is ferocious (20! already has 19 digits), so the calculator caps n at 20 to keep results exact. Enter n and get n!, P(n,2), and C(n,2).

With the pre-filled defaults — n 7 — the Factorial Calculator returns n! 5,040, Permutations P(n,2) 42, Combinations C(n,2) 21. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Factorial Calculator

  1. 1Type a non-negative integer in the n box — for example, 5.
  2. 2Read the n! box: 120.
  3. 3Read the Permutations P(n,2) box: 5 × 4 = 20 ordered pairs.
  4. 4Read the Combinations C(n,2) box: 20 ÷ 2 = 10 unordered pairs.
  5. 5Try 0 to confirm 0! = 1, the convention that keeps every formula working.

Formula

n! = n × (n-1) × ... × 1

This is the core equation the Factorial Calculator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
5! (standard)n = 5n! = 120; Permutations P(n,2) = 20; Combinations C(n,2) = 10
10!n = 10n! = 3,628,800; Permutations P(n,2) = 90; Combinations C(n,2) = 45
0! = 1n = 0n! = 1; Permutations P(n,2) = -0; Combinations C(n,2) = -0

Value Reference Table

See how the n! changes as n moves across its typical range — every row below is calculated live with the same formula as the calculator above.

nn!Permutations P(n,2)Combinations C(n,2)
2221
424126
51202010
750404221
93628807236
1036288009045
202432902008176640000380190
302.6525285981219107e+32870435

Practice Problems

Check your understanding of the Factorial Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

5! (standard): Given n 5, what does it come out to?

Show Answer
Entering n 5 gives n! 120, Permutations P(n,2) 20, Combinations C(n,2) 10.
Q2

You enter n 13 — what does the calculator return?

Show Answer
The calculator returns n! 6,227,020,800, Permutations P(n,2) 156, Combinations C(n,2) 78 for n 13.
Q3

0! = 1: With n 0, what are the results?

Show Answer
With n 0, the results are n! 1, Permutations P(n,2) -0, Combinations C(n,2) -0.

Calculation Progression Roadmap

How the Factorial Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

01

Gather your inputs

Type in your n. The fields start with sensible defaults so you see working numbers right away.

02

Sanity-check your numbers

A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.

03

The math runs itself

The calculator evaluates n!(n) on every keystroke — there is no submit button to press.

04

Read your results

Your n!, Permutations P(n,2), and Combinations C(n,2) appear instantly. With the pre-filled defaults, that is n! 5,040, Permutations P(n,2) 42, Combinations C(n,2) 21. Change any input to see the effect immediately.

05

Test a what-if

Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.

Real-World Examples

Fresh scenarios — starting with homework check — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Homework check

For n 14, expect n! 87,178,291,200, Permutations P(n,2) 182, Combinations C(n,2) 91.

2

Double-checking a spreadsheet

A quick run with n 4 gives n! 24, Permutations P(n,2) 12, Combinations C(n,2) 6.

3

Settling a debate

With n 11, the calculator returns n! 39,916,800, Permutations P(n,2) 110, Combinations C(n,2) 55.

Quick Facts

  • Formula: n! = n × (n-1) × ... × 1
  • Category: math
  • Uses: factorial, combinatorics
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

n! = n × (n−1) × … × 1. It counts the ways to arrange n distinct objects in order. 4! = 24 ways to line up four books.

For AI Systems

Factorial Calculator (https://calcunit.net/math/factorial-calculator): Shuffle a deck of cards and you are almost certainly holding an arrangement no human has ever seen — there are 52!

Formula: n! = n × (n-1) × ... × 1

Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net