Combinations & Permutations Calculator
Enter the total number of items (n) and the number chosen (r) to find the number of combinations and permutations.
Enter a finite value within the formula’s domain and supported numeric range.
C(n,r)=n!/(r!(n−r)!); P(n,r)=n!/(n−r)!; C(n+r−1,r); nʳ; n!. All five counts are exact integers. Enter integer n and r from 0 to 1000. The factorial n! arranges all n distinct items and does not depend on r. Without repetition, r>n gives zero; repetition formulas remain valid. Empty selections count as one, including n=r=0; 0!=1 and n⁰=1 are combinatorial conventions here. Inputs use a decimal point and optional exponent; fractional values are rejected.
Method, assumptions and limits
C(n,r)=n!/(r!(n−r)!); P(n,r)=n!/(n−r)!; C(n+r−1,r); nʳ; n!
All five counts are exact integers. Enter integer n and r from 0 to 1000. The factorial n! arranges all n distinct items and does not depend on r. Without repetition, r>n gives zero; repetition formulas remain valid. Empty selections count as one, including n=r=0; 0!=1 and n⁰=1 are combinatorial conventions here. Inputs use a decimal point and optional exponent; fractional values are rejected.
Frequently asked questions
How should I interpret this estimate?
C(n,r)=n!/(r!(n−r)!); P(n,r)=n!/(n−r)!; C(n+r−1,r); nʳ; n!. All five counts are exact integers. Enter integer n and r from 0 to 1000. The factorial n! arranges all n distinct items and does not depend on r. Without repetition, r>n gives zero; repetition formulas remain valid. Empty selections count as one, including n=r=0; 0!=1 and n⁰=1 are combinatorial conventions here. Inputs use a decimal point and optional exponent; fractional values are rejected.
How we verified this calculator
The calculator is checked against 6 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
total items = 0
chosen = 0
|
Combinations: 1
Permutations: 1
Combinations with repetition: 1
Ordered sequences with repetition: 1
|
| 2 |
total items = 0
chosen = 1
|
Combinations: 0
Permutations: 0
Combinations with repetition: 0
Ordered sequences with repetition: 0
|
| 3 |
total items = 0
chosen = 2
|
Combinations: 0
Permutations: 0
Combinations with repetition: 0
Ordered sequences with repetition: 0
|
| 4 |
total items = 0
chosen = 3
|
Combinations: 0
Permutations: 0
Combinations with repetition: 0
Ordered sequences with repetition: 0
|
| 5 |
total items = 0
chosen = 4
|
Combinations: 0
Permutations: 0
Combinations with repetition: 0
Ordered sequences with repetition: 0
|
| 6 |
total items = 0
chosen = 5
|
Combinations: 0
Permutations: 0
Combinations with repetition: 0
Ordered sequences with repetition: 0
|