Factorial Calculator (n!) with Expressions & Permutations
Step-by-Step • Expressions • Permutations & Combinations
Popular Examples
Recent Calculations
Calculate factorials (n!), permutations (nPr), and combinations (nCr) with our advanced calculator. Features step-by-step breakdowns, expression parsing, visual growth charts, and calculation history for easy understanding of factorial mathematics.
How to Use
- Enter a number (0-170) to calculate its factorial
- Use the expression solver for complex calculations like 10!/5! or (6!+4!)/(5!)
- Calculate permutations (nPr) to find arrangements of r items from n items
- Calculate combinations (nCr) to find selections of r items from n items
- View step-by-step breakdowns to understand the calculation process
- Copy or share your results with one click
Features
- Factorial Calculation: Compute n! for numbers 0 to 170 instantly
- Expression Parser: Solve complex expressions with multiple factorials
- Permutation Calculator: Calculate nPr = n!/(n-r)! for arrangements
- Combination Calculator: Calculate nCr = n!/(r!(n-r)!) for selections
- Step-by-Step Breakdown: Visual expansion showing each multiplication
- Power Search: Natural language input like "10 factorial" or "10 choose 3"
- Calculation History: Review and reload your last 10 calculations
- Popular Examples: Real-world scenarios like deck shuffling, lottery odds
- Scientific Notation: Automatic formatting for very large numbers
- Mobile Optimized: Touch-friendly inputs and responsive design
Common Use Cases
- Mathematics Education: Learn factorial concepts with visual breakdowns
- Combinatorics: Calculate permutations and combinations for probability
- Algorithm Analysis: Understand O(n!) time complexity
- Statistics: Compute binomial coefficients and probability distributions
- Programming: Verify factorial implementations and edge cases
- Puzzle Solving: Calculate possible arrangements and selections
- Game Theory: Determine possible game states and outcomes
- Cryptography: Understand keyspace sizes and combinations
Tips & Best Practices
Use the expression solver for ratios like 10!/5! to avoid overflow
Check the step-by-step breakdown to understand the calculation
Use permutations (nPr) when order matters (e.g., race positions)
Use combinations (nCr) when order doesn't matter (e.g., lottery)
Remember: 0! = 1 by mathematical definition
Maximum factorial is 170! due to computational limits
Use scientific notation for very large results
Save time by using popular examples for common calculations
Understanding Factorials
What is a Factorial?
A factorial (denoted as n!) is the product of all positive integers less than or equal to n. For example:
- 5! = 5 × 4 × 3 × 2 × 1 = 120
- 0! = 1 (by definition)
- 1! = 1
Permutations vs Combinations
Permutations (nPr)
Order matters
Formula: nPr = n!/(n-r)!
Example: Arranging 3 people from 10 for podium positions (1st, 2nd, 3rd)
10P3 = 10!/7! = 720 ways
Combinations (nCr)
Order doesn't matter
Formula: nCr = n!/(r!(n-r)!)
Example: Choosing 3 numbers from 10 for lottery
10C3 = 10!/(3!×7!) = 120 ways
Factorial Table (Quick Reference)
| n | n! | Value |
|---|---|---|
| 1 | 1! | 1 |
| 2 | 2! | 2 |
| 3 | 3! | 6 |
| 4 | 4! | 24 |
| 5 | 5! | 120 |
| 6 | 6! | 720 |
| 7 | 7! | 5040 |
| 8 | 8! | 40320 |
| 9 | 9! | 362880 |
| 10 | 10! | 3628800 |
| 11 | 11! | 3.99168 E+7 |
| 12 | 12! | 4.790016 E+8 |
| 13 | 13! | 6.2270208 E+9 |
| 14 | 14! | 8.71782912 E+10 |
| 15 | 15! | 1.307674368 E+12 |
| 20 | 20! | 2.432902008 E+18 |
| 25 | 25! | 1.551121004 E+25 |
| 30 | 30! | 2.652528598 E+32 |
| 50 | 50! | 3.04140932 E+64 |
| 100 | 100! | 9.332621544 E+157 |
| 170 | 170! | 7.257415615 E+306 |
Frequently Asked Questions
A factorial (n!) is the product of all positive integers less than or equal to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. Factorials are used in combinatorics, probability, and algebra.
To calculate n!, multiply all integers from n down to 1. For example: 6! = 6 × 5 × 4 × 3 × 2 × 1 = 720. Our calculator shows step-by-step breakdowns for easy understanding.
0! equals 1 by mathematical definition. This is because n! = n × (n-1)!, so 1! = 1 × 0!, which means 0! = 1!/1 = 1. This definition is essential for combinatorics formulas.
Permutations (nPr) count arrangements where order matters (e.g., race positions: 1st, 2nd, 3rd). Combinations (nCr) count selections where order doesn't matter (e.g., lottery numbers). Formula: nPr = n!/(n-r)! and nCr = n!/(r!(n-r)!).
