How do I use the permutation and combination calculator?
Type n, the total number of items you have, and r, how many of them you are choosing. The calculator instantly shows the permutations nPr and the combinations nCr, along with n factorial and the full working. With the default values n=10 and r=3, you get P(10, 3)=720 permutations and C(10, 3)=120 combinations. Tick "Allow repetition" when the same item can be picked more than once, and press Sample to load the classic 52 choose 5 card problem.
What is the difference between permutations and combinations?
Both count ways of choosing items, but they treat order differently. A permutation counts arrangements, so picking A then B is different from B then A. A combination counts selections, so A then B and B then A are the same pick. That is why the permutation count is always larger: for 10 items taken 3 at a time there are 720 arrangements but only 120 selections. If the order of your picks changes the outcome, use permutations; if only the final group matters, use combinations.
Which formulas does the calculator use?
Permutations use P(n, r)=n! / (n - r)!, which expands to n x (n - 1) x ... down r terms. Combinations use C(n, r)=n! / (r! x (n - r)!), which divides the permutation count by r! to remove the orderings. The exclamation mark means factorial: 10!=3,628,800. Every result is computed with exact whole-number arithmetic, so even huge answers like C(100, 50) come out digit-perfect instead of rounded.
When should I use permutations and when combinations?
Use permutations for anything ordered: race podiums, rankings, seating plans and codes. Ten runners fighting for gold, silver and bronze give P(10, 3)=720 possible podiums. Use combinations for groups: committees, teams and lottery tickets. Choosing a 3-person committee from 10 people gives C(10, 3)=120. A 5-card poker hand from a 52-card deck gives C(52, 5)=2,598,960 possible hands, and a 6-from-49 lottery has C(49, 6)=13,983,816 combinations, which is why jackpots are so rare.
How does repetition change the count?
With repetition allowed, each pick can reuse items you already chose, so the counts grow. Permutations with repetition are simply n to the power r: a 3-digit PIN from 10 digits has 10^3=1,000 possibilities. Combinations with repetition use C(n + r - 1, r): picking 3 scoops from 10 ice-cream flavours, repeats allowed, gives C(12, 3)=220 combinations. Turn on the repetition tick box and the calculator switches to these formulas automatically.
Is it free and private?
Yes. The permutation and combination calculator is completely free, needs no sign-up, and runs entirely in your browser. Your numbers are never sent to a server, so you can check homework, probability problems or lottery odds in private. It works on phones, tablets and desktop computers.