Permutation and Combination Calculator
Calculate permutations (nPr) and combinations (nCr) with and without repetition, with factorials and step-by-step multiplication-principle solutions.
Calculator
Non-negative integer
Non-negative integer
Results for n=8, r=4
Factorial Breakdown
| Term | Value |
|---|---|
| n! | 40320 |
| r! | 24 |
| (n−r)! | 24 |
| P = n!/(n−r)! | 1680 |
| C = P/r! | 70 |
Results
Permutation (no repetition)
1680P(n,r)
Ordered picks: n!/(n−r)!
4096n^r
Ordered picks with repeats: n^r
70C(n,r)
Unordered picks: n!/(r!(n−r)!)
330
Multiset picks: (n+r−1)!/(r!(n−1)!)
40320
Ways to order all n items
24
Internal orderings divided out for combinations
24
Orderings of the unpicked items
Counts assume n distinct items with integer n, r ≥ 0. Repetition-free modes require n ≥ r. Integers are exact below 1e15; larger counts display in scientific notation.
Visualizations
Counts on log₁₀ Scale
Picked vs Left (no repetition)
Share of Items Picked
Combinations vs Permutations
Formula
Counting starts from the multiplication principle: r ordered slots offer n, n−1, … choices without repetition, or n each with repetition. Forgetting order divides by the r! internal arrangements; multisets map to stars-and-bars positions.
Alternative Form
Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| n | Pool size | count | Distinct items available |
| r | Pick count | count | Items chosen |
| ! | Factorial | count | Product of 1…n; orderings of n items |
| P(n,r) | Permutations | count | Ordered selections |
| C(n,r) | Combinations | count | Unordered selections |
| n^r | With-repetition permutations | count | Ordered picks, repeats allowed |
| n−r | Leftovers | count | Unpicked items whose orderings cancel |
Explanation
Order is the whole divide: permutations keep all r! arrangements distinct while combinations collapse them into one selection. Repetition multiplies choices back at every slot.
Derivation
P(n,r) telescopes n!/(n−r)! by canceling the leftover orderings. C(n,r) further cancels the r! pick orderings. With repetition, each of r slots has n options (n^r); multisets biject to binary strings with r stars and n−1 bars, counted by C(n+r−1,r).
Step-by-Step Calculation
Follow each step to understand how the result is calculated from your inputs.
Validate that n and r are non-negative integers.
Check that enough items exist for repetition-free picks.
Count ordered picks without repetition via the multiplication principle.
Divide out internal orderings for unordered picks.
Allow repeats: every pick independently sees all n items.
Count multisets with stars and bars.
Worked Examples
See how the calculator works with different scenarios.
Scenario
Choose any 4 players from 8 where order does not matter.
Inputs
Calculation
C = 8!/(4!×4!) = 40320/(24×24) = 70
Result
70 possible teams
Interpretation
Order-blind selection collapses 1,680 lineups into 70 squads — the r! = 24 collapse factor.
Understanding Your Result
Your Result: Permutation (no repetition): 1680 P(n,r)
Typical range: C(8,4)=70 teams; P(8,4)=1,680 lineups; C(49,6)≈14M lottery lines.
What This Means
Each count is the number of distinct outcomes under stated order/repetition rules — lineups, teams, codes, or multisets.
Why It Matters
Passwords, lotteries, trials, and sampling plans all stand on these counts; wrong-mode counting errs by factors of r!.
Professional Interpretation
Name the mode (ordered/unordered × with/without repetition) before quoting any count — the label is the calculation.
Recommendations
- •Ask “does rearranging change it?” first
- •Ask “can picks repeat?” second
- •Use C(n,n−r) symmetry for big r
- •Show factorials for auditability
- •Watch for 170! overflow limits
- •Convert counts to probabilities via ratios
Educational Content
Introduction
Combinatorics counts possibilities without listing them. Two binary choices — order matters? repetition allowed? — select among four formulas this calculator evaluates together.
Concept Explanation
The multiplication principle chains independent choices; factorials package descending chains; division forgets structure (order of picks, order of leftovers).
Applications
Benefits
- •All four modes side by side
- •Factorial audit trail included
- •Invalid states explained, never broken output
- •Log-scale chart tames huge counts
- •Step-by-step multiplication chains
Limitations
- •Distinct items assumed (no duplicates)
- •No partial or weighted selection
- •Exact only to ~18!, floating beyond
- •Single (n,r) pair per run
Best Practices
- •State the counting mode explicitly
- •Reduce via C(n,n−r) for large r
- •Use logs for astronomically large counts
- •Verify n ≥ r for repetition-free modes
- •Ratio counts for probabilities
Common Misconceptions
Practical Tips
- •Decide order first, repetition second
- •Use symmetry C(n,r)=C(n,n−r)
- •Keep n, r as integers ≥ 0
- •Read huge counts in scientific notation
- •Compare modes on the log chart
- •Derive lottery odds as 1/C(n,r)
- •Re-run for “what-if” roster sizes
Common Mistakes
Assumptions
This calculator makes the following assumptions to provide estimates:
Limitations
Be aware of these limitations when using this calculator:
Frequently Asked Questions
Answers to common questions about this calculator.
What is the difference between permutation and combination?
What is the permutation formula?
What is the combination formula?
What is a factorial?
When do I allow repetition?
When does order matter?
Why must n be ≥ r without repetition?
What is C(n,r) symmetry?
How do permutations relate to probability?
What are permutations with identical items?
How large can n be before overflow?
What is the stars-and-bars method?
Related Calculators
Explore more calculators related to this topic.
Related Guides
Deepen your understanding with these educational resources.
Glossary
Technical terms used in mortgage calculations explained in plain language.
- Permutation
- Ordered arrangement; P(n,r).
- Combination
- Unordered selection; C(n,r).
- Factorial
- n! = product 1…n; 0! = 1.
- nPr
- Permutation count notation.
- nCr
- Combination count notation (“n choose r”).
- Repetition
- Whether picks may reuse items.
- Multiplication principle
- Chain choice counts by multiplying.
- Stars and bars
- Bijection counting multisets as C(n+r−1,r).
- Symmetry
- C(n,r) = C(n,n−r).
- Sample space
- Set of all counted outcomes.
Authoritative References
Trusted sources and standards referenced by this calculator.
Applicable Standards
Was This Calculator Helpful?
Page Information
2026-08-07
2.0.0
Free to use for educational and professional purposes.