Calculate factorials and combinations
Instantly compute n! (factorial), nCr (combinations), and nPr (permutations) for any valid integers.
About This Tool
Factorial Calculator is useful for statistics, probability problems, and combinatorics exercises in math courses and competitive programming.
Key Features
How to Use
- 1Enter n for a factorial.
- 2Enter n and r for combinations (nCr) or permutations (nPr).
- 3Results appear instantly.
Why Use ToolSnippet Factorial Calculator?
Tips for Best Results
- Use nCr to calculate lottery odds
- Use nPr when order matters (e.g. race standings)
- 0! = 1 by mathematical convention
Frequently Asked Questions
What is n! (factorial)?
n! is the product of all positive integers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.
What is the difference between nCr and nPr?
nCr counts combinations where order does NOT matter. nPr counts permutations where order DOES matter.
Why is there a limit on n?
JavaScript numbers lose precision past 2^53. Factorials above 20! exceed that range.
Related Tools
All Calculators & Math Tools →Loan & Mortgage EMI Amortization Calculator
Calculate monthly EMI repayments, total interest payable, loan amortization schedules, and principal payoff breakdowns.
Angle & Trigonometry Unit Converter
Convert between Degrees, Radians, Gradians, Arcminutes, Arcseconds, and Turns with live trigonometric values.
Aspect Ratio Calculator
Calculate missing width or height from an aspect ratio.