Permutations & Combinations Calculator
Free nPr and nCr calculator — exact permutation and combination counts with formulas, for probability and counting problems.
Free nPr and nCr calculator — exact permutation and combination counts with formulas, for probability and counting problems.
Compute 49C6 yourself and see exactly why the jackpot is so hard to hit.
How many 4-digit PINs without repeats? Arrangement counting made exact.
Exact nPr and nCr values with big-integer precision — no scientific-notation rounding errors.
How many distinct groups of 4 from a class of 20? One input away.
Five toppings you can take or leave give 32 possible pizzas, because each is independently on or off. That is why 'over a thousand combinations' claims are easier to hit than they sound.
Drawing cards, picking a jury or dealing a hand changes the odds at every step. Settling whether order matters and whether items go back is the part that decides which formula applies.
Permutations count arrangements where order matters; combinations count selections where it doesn't. Picking a president and vice-president from 10 people: 10P2 = 90 (order matters). Picking 2 committee members: 10C2 = 45 (order doesn't). Every combination corresponds to r! permutations, which is why nPr = nCr × r!.
nPr = n!/(n−r)! — multiply n × (n−1) × … for r factors. nCr = n!/(r!(n−r)!) — the same, divided by r! to cancel the orderings. Example: 10P3 = 10×9×8 = 720; 10C3 = 720/6 = 120. This calculator computes both exactly using big-integer arithmetic, so even large results are precise.
Use combinations for lottery-style problems ("chance of matching 6 of 49 numbers" → 49C6), card hands, and group selection. Use permutations when positions are distinct — race finishing orders, PINs without repeated digits, seating arrangements. The classic test: if swapping two chosen items creates a "different" outcome, order matters — use permutations.
By definition 0! = 1, which makes the formulas consistent: nC0 = 1 (one way to choose nothing) and nCn = 1 (one way to choose everything). Similarly nP0 = 1. These edge cases aren't arbitrary — they're required for the binomial theorem and recursive identities to hold.
Then the plain factorial overcounts, because swapping two identical letters produces an arrangement you cannot tell apart from the original. Divide by the factorial of each repeat count to correct it. The word MISSISSIPPI has eleven letters with four S, four I, two P and one M, so the number of distinguishable arrangements is 11! divided by (4! times 4! times 2!), which comes to 34,650 rather than the 39,916,800 that 11! alone would suggest. The same correction applies to arranging coloured beads, scheduling identical shifts, or counting routes on a grid where the moves in each direction are interchangeable.
Fix one position and arrange the rest, giving (n-1)! rather than n!. The reason is that a circular seating plan has no first chair — rotating everybody one place to the left produces the same arrangement of neighbours, so all n rotations of a layout are really one layout. Eight people around a table therefore have 7! = 5,040 distinct arrangements, not 40,320. If the arrangement can also be flipped over and still count as the same, as with a bead necklace or a bracelet, divide again by two to get (n-1)!/2. Deciding which of the three counts applies is usually harder than the arithmetic.