nPr and nCr.
P(n,r) = n! / (n−r)! | C(n,r) = n! / [r! × (n−r)!]
There are two core formulas used in this calculator:
Permutation (nPr) — counts ordered arrangements:
P(n, r) = n! / (n − r)!
Combination (nCr) — counts unordered selections:
C(n, r) = n! / [r! × (n − r)!]
Both formulas rely on the factorial function (n! = n × (n−1) × … × 2 × 1). The key difference is that combinations divide out the r! ways the chosen items could be re-ordered, since order doesn't matter in a combination.
**Permutation P(8,3):** P(8,3) = 8! / (8−3)! = 8! / 5! = (8 × 7 × 6 × 5!) / 5! = 8 × 7 × 6 = **336** **Combination C(8,3):** C(8,3) = 8! / [3! × (8−3)!] = 8! / (6 × 120) = (8 × 7 × 6) / (3 × 2 × 1) = 336 / 6 = **56**
Result: P(8,3) = 336 ordered arrangements; C(8,3) = 56 unordered selections
With n = 8 and r = 3:
The ratio 336 / 56 = 6 = 3! confirms that each combination corresponds to exactly 3! = 6 different ordered permutations.
The fundamental question is: does the sequence of selection change the outcome?
Both formulas are built on factorials. The factorial n! grows extremely fast:
For large n and r, calculators or software are essential because hand computation becomes impractical.
nPr = nCr × r!
This shows that a permutation is simply a combination multiplied by the number of ways to order the chosen items (r!). Every combination can generate r! permutations.
| Scenario | Type | Why | |---|---|---| | Arranging books on a shelf | Permutation | Order of books changes the arrangement | | Choosing a lottery ticket | Combination | Numbers drawn in any order win | | Creating a password | Permutation | Different sequences are different passwords | | Forming a sports team | Combination | Team composition, not order, matters | | Assigning ranked medals | Permutation | Gold/Silver/Bronze are distinct positions |
C(10,4) = 10! / (4! × 6!) = (10 × 9 × 8 × 7) / (4 × 3 × 2 × 1) = 5040 / 24 = 210.
This is P(5,5) = 5! = 120 different arrangements.
With repetition allowed the count is 10³ = 1,000, not a permutation. If digits cannot repeat it is P(10,3) = 720.
For equally likely outcomes, P(event) = C(favorable outcomes) / C(total outcomes). For example, the probability of being dealt 5 specific cards from a 52-card deck is 1 / C(52,5) = 1 / 2,598,960.
Each entry in Pascal's Triangle is a combination: row n, position r equals C(n,r). For example, row 4 reads 1, 4, 6, 4, 1, which equals C(4,0), C(4,1), C(4,2), C(4,3), C(4,4).
A permutation counts ordered arrangements — the sequence ABC is different from BAC. A combination counts unordered selections — {A, B, C} and {B, A, C} are the same group. Use permutations when order matters (rankings, passwords) and combinations when it does not (committees, lottery).
Yes. When r = n, P(n,n) = n! (all possible orderings of the full set) and C(n,n) = 1 (there is only one way to choose all items at once).
Both P(n,0) and C(n,0) equal 1. There is exactly one way to arrange or choose nothing — the empty arrangement or empty set.
The calculator handles standard integer inputs, but results grow astronomically fast due to factorials. For very large n (e.g., n > 170), floating-point overflow may occur; look for a big-integer mode or logarithmic output option in the tool settings.
No — the standard nPr and nCr formulas assume items are distinct and selected without replacement. If repetition is allowed, the count of ordered arrangements becomes nʳ instead of P(n,r).
On most scientific calculators, enter n, press the nCr or C(n,r) button (sometimes labeled ⁿCᵣ), enter r, then press equals. In Excel or Google Sheets, use =COMBIN(n,r). For permutations, use =PERMUT(n,r).
Only sources that have been reviewed are shown. Unverified citations are never published.