Permutation and Combination Calculator
MathCalculate permutations (nPr) and combinations (nCr) instantly. Enter n and r values to find the number of arrangements and selections with full formula breakdown. Free tool.
Permutations (nPr) — order matters
Combinations (nCr) — order doesn't matter
Factorials Used
What is a nPr nCr?
The Permutation and Combination Calculator computes both nPr (permutations — ordered arrangements) and nCr (combinations — unordered selections) simultaneously for any values of n (total items) and r (items chosen). It also displays the key factorials n!, r!, and (n−r)! used in the formulae, along with a full step-by-step calculation breakdown.
Permutations and combinations are the mathematical tools for counting — answering questions like "how many ways can 10 runners be assigned medals?" (permutation: order matters) or "how many 4-person committees can be formed from 12 candidates?" (combination: order doesn't matter). The fundamental distinction is whether the sequence or arrangement of the chosen items matters to the problem.
In the context of probability, knowing how to count favourable and total outcomes using combinations is essential. The number of ways to draw 5 cards from a deck (52C5 = 2,598,960) is the total-outcomes denominator for any 5-card hand probability. Use this calculator alongside the Probability Calculator to first count outcomes, then compute the probability.
These topics appear in the CBSE Class 11 Mathematics syllabus (Chapter 7: Permutations and Combinations) and are a mandatory part of the JEE Main and JEE Advanced Mathematics section.
How to use this nPr nCr calculator
Set Total Items (n) — use the slider or type the total number of distinct items available. For a class of 30 students, n = 30. Range is 0 to 20.
Set Items Chosen (r) — use the slider or type how many items are being selected or arranged. Ensure r ≤ n; the slider automatically caps r at the current n value.
Read Permutations (nPr) — the dark result card shows nPr with the formula substitution. Use this if order matters in your problem.
Read Combinations (nCr) — the white result card below shows nCr. Use this if order does not matter (committees, teams, selections).
Check the Factorials panel — verify n!, r!, and (n−r)! individually to confirm you are applying the correct formula to your problem.
Formula & Methodology
Permutation:nPr = n! / (n − r)! Combination:nCr = n! / (r! × (n − r)!) Relationship:nPr = r! × nCr Key factorial values: - 0! = 1 (by definition) - 1! = 1 - 5! = 120 - 10! = 3,628,800 - 15! = 1,307,674,368,000 - 20! = 2,432,902,008,176,640,000 Variable definitions: - n — total number of distinct items - r — number of items to select or arrange (0 ≤ r ≤ n) - n! — n factorial = product of all integers from 1 to n - (n−r)! — factorial of remaining (unchosen) items Worked example — forming a cricket team: A cricket club has 18 players. They need to select 11 players for a match (combination) and then assign the captaincy and vice-captaincy (permutation within the 11). Step 1 — Combinations (selecting 11 from 18, order irrelevant):18C11 = 18! / (11! × 7!) = 31,824 ways to select the team Step 2 — Permutations within selected 11 (assigning captain and vice-captain):11P2 = 11! / (11−2)! = 11 × 10 = 110 ways to assign the two roles Step 3 — Total arrangements (team selection × role assignment):31,824 × 110 = 3,500,640 distinct captain-and-vice-captain configurations This two-stage counting problem illustrates the multiplication principle: first combine, then permute within the selection. Assumption: All n items are distinct (no two identical). Permutation and combination formulas change when items are repeated or non-distinct — those cases (circular permutations, multinomial coefficients) are not covered by the standard nPr and nCr formulas.