Combinatorics Calculator – nCr, nPr & More
All counting forms together: C(5,2)=10, P(5,2)=20, with-repetition variants nʳ=32 and C(6,2)=15 — pick the right rule for each problem.
Figures are estimates from this calculator’s standard formula — adjust the inputs in the tool below for your exact number.
How the Combinatorics Calculator Works
Counting problems differ on two axes — does order matter, and can items repeat — producing four standard formulas the calculator computes side by side. Choosing 2 from 5: unordered without repetition gives C(5,2) = 10; ordered without repetition gives P(5,2) = 5×4 = 20; ordered with repetition gives 5² = 25; unordered with repetition gives C(6,2) = 15. The tool prints all four together with the formula substitution so the source of each number is visible, then helps you classify your problem with two questions (order? repeats?). Factorial expansions are shown canceled, e.g. C(10,3) = (10×9×8)/(3×2×1) = 120, avoiding huge intermediate factorials. Sum rules appear for completeness: ΣC(n,k) = 2ⁿ counts all subsets, so a 5-element set has 32 subsets — the answer to many "how many groups" questions.
- 1
Enter n and r
The pool size and selection size
- 2
Answer two questions
Does order matter? Are repeats allowed?
- 3
Read the matching formula
All four counts are shown with substitutions
- 4
Sanity-check the spread
Ordered ≥ unordered, repetition ≥ no-repetition
Use Cases
Committee Formation
C(9,4) = 126 unordered committees from 9 people
Race Finishes
P(8,3) = 336 podium orders in an 8-runner race
Password Counting
Ordered with repetition: 62⁸ for 8-char alphanumeric
Tips
- 1
Order matters → permutations; otherwise combinations
- 2
Repetition allowed → nʳ (ordered) or C(n+r−1, r) (unordered)
- 3
All subsets of an n-set total 2ⁿ
Common Mistakes
Using nPr when the problem says "group" or "committee" — order-free
Forgetting repetition when items are returned or unlimited
Computing C(5,2) as 20 by skipping the r! divisor
Confusing 2ⁿ subsets with n! arrangements
FAQs
C(5,2) or P(5,2) — which for choosing 2 of 5?
How many podium orders in an 8-runner race?
How many 2-toppings picks from 5 with doubles allowed?
How many subsets does a 5-element set have?
What is C(10,3)?
Related tools
Pick another tool to continue your calculation.
Combinations with Repetition – C(n+r−1, r)
Calculate combinations with repetition.
Complex Number Calculator – Arithmetic & Modulus
Perform operations on complex numbers.
Complex Number Calculator - Calculate with Complex Numbers
Perform calculations with complex numbers online. Add, subtract, multiply, divide, and find magnitude and phase of complex numbers. Essential calculator for engineering and advanced mathematics.
Base-N Converter – Positional Notation Steps
Convert between any numeral bases from 2 to 36.
Roman Numeral Converter – Numbers & Dates
87 = LXXXVII, 2026 = MMXXVI, 494 = CDXCIV. Convert both ways between Roman and Arabic numbers with the full chart from I = 1 to M = 1000.
Symbolic Derivative Calculator – d/dx
Calculate symbolic derivatives of basic functions.