At a Glance
- Category
- Combinatorics
- Best For
- Students and anyone counting arrangements or selections
- Privacy
- 100% in your browser: nothing you enter is uploaded
- Time Required
- Under a minute
- Cost
- Free
- Updated
- November 2026
Quick Overview
Computes the factorial of n and uses exact big-number arithmetic to give the permutations and combinations of choosing r items from n. Very large results are shown in scientific notation.
Students in probability, statistics and discrete math, teachers, and puzzle or game designers.
When counting arrangements, seating orders, lottery or card combinations, or checking a hand calculation.
Factorials grow very quickly and are easy to get wrong by hand. Exact arithmetic avoids rounding errors.
Key Features & Capabilities
Exact big-number math
Results are calculated exactly, without floating-point rounding.
Permutations and combinations side by side
Choose whether order matters.
Handles large n
Works up to n = 100.
Private
Calculated in your browser.
How to Use This Tool
Enter n
Type the total number of items in the set. Tip: n is a whole number from 0 to 100.
Enter r
Type how many items you pick. It cannot be larger than n. Tip: Leave r at 0 to see only n!.
Read permutations and combinations
Use permutations when order matters and combinations when it does not. Tip: Combinations are always the same as or smaller than permutations.
Check the size of the result
Very large values appear as a × 10^exponent. Tip: Factorials exceed a trillion by n = 15.
Worked Real-World Example
Choosing 3 from 8
A club has 8 members and needs to choose 3. We want the number of ordered arrangements and the number of unordered groups.
How It Works (Math & Calculation Logic)
n! is the product of all whole numbers from 1 to n, with 0! = 1. Permutations P(n, r) = n! ÷ (n − r)!. Combinations C(n, r) = P(n, r) ÷ r!. The tool uses exact BigInt arithmetic, limits n to 100 and caps r at n.
How to Interpret Your Results
Factorials grow faster than exponentials: 10! is 3,628,800 and 20! is about 2.43 × 10^18. Combination counts are largest when r is near n ÷ 2.
C(n, r) = C(n, n − r), so choosing r items is the same as leaving out n − r items.
Decide whether order matters before choosing between permutations and combinations: roles and rankings use permutations, groups and hands use combinations.
Frequently Asked Questions
What is a factorial?
What is the difference between a permutation and a combination?
How do I calculate nCr?
Why is 0! equal to 1?
How large can n be?
Complementary QuickForma Utilities
Probability Calculator
Calculate single-event, joint intersection P(A and B), union P(A or B), and complement probabilities.
Permutation & Combination Calculator
Calculate permutations nPr (order matters) and combinations nCr (order does not matter).
Prime Factorization Calculator
Breaks a whole number into its prime factors in exponent form and lists all of its divisors.
Logarithm Base-b Conversion Solver
Online client-side Logarithm Base-b Conversion Solver tool.
Conic Sections: Ellipse & Hyperbola Solver
Online client-side Conic Sections: Ellipse & Hyperbola Solver tool.
Partial Fraction Decomposition Solver
Online client-side Partial Fraction Decomposition Solver tool.
Poisson Event Probability & Rate Solver
Online client-side Poisson Event Probability & Rate Solver tool.
Continuous Exponential Decay & Reliability
Online client-side Continuous Exponential Decay & Reliability tool.
Bayesian Conditional Probability & Prior Solver
Online client-side Bayesian Conditional Probability & Prior Solver tool.