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
- 1Type a non-negative integer in the n box — for example, 5.
- 2Read the n! box: 120.
- 3Read the Permutations P(n,2) box: 5 × 4 = 20 ordered pairs.
- 4Read the Combinations C(n,2) box: 20 ÷ 2 = 10 unordered pairs.
- 5Try 0 to confirm 0! = 1, the convention that keeps every formula working.
Formula
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
| Scenario | Calculation | Result |
|---|---|---|
| 5! (standard) | n = 5 | n! = 120; Permutations P(n,2) = 20; Combinations C(n,2) = 10 |
| 10! | n = 10 | n! = 3,628,800; Permutations P(n,2) = 90; Combinations C(n,2) = 45 |
| 0! = 1 | n = 0 | n! = 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.
| n | n! | Permutations P(n,2) | Combinations C(n,2) |
|---|---|---|---|
| 2 | 2 | 2 | 1 |
| 4 | 24 | 12 | 6 |
| 5 | 120 | 20 | 10 |
| 7 | 5040 | 42 | 21 |
| 9 | 362880 | 72 | 36 |
| 10 | 3628800 | 90 | 45 |
| 20 | 2432902008176640000 | 380 | 190 |
| 30 | 2.6525285981219107e+32 | 870 | 435 |
Practice Problems
Check your understanding of the Factorial Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
5! (standard): Given n 5, what does it come out to?
Show AnswerHide Answer
You enter n 13 — what does the calculator return?
Show AnswerHide Answer
0! = 1: With n 0, what are the results?
Show AnswerHide Answer
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.
Gather your inputs
Type in your n. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.
The math runs itself
The calculator evaluates n!(n) on every keystroke — there is no submit button to press.
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.
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.
Homework check
For n 14, expect n! 87,178,291,200, Permutations P(n,2) 182, Combinations C(n,2) 91.
Double-checking a spreadsheet
A quick run with n 4 gives n! 24, Permutations P(n,2) 12, Combinations C(n,2) 6.
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
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
