Permutation & Combination Calculator

Calculate exact ordered and unordered selections, with or without repetition.

Enter 3choose 0 or 52 choose 10, then calculate. This sets n and r for a combination without repetition. Leave it blank to use the controls below.
Try a worked example

Loads example values in place of your current inputs. Choose one, then calculate. Examples are hypothetical; your inputs stay in this browser.

  • Choose 3 distinct people from 10 without roles: C(10,3) = 120. Assigning three different roles instead gives P(10,3) = 720.
  • 10 choices at each of 4 positions, with leading zero and repeated digits allowed, gives 10^4 = 10,000 sequences. This is a count, not a security rating.
  • Choose 5 items from 3 types with unlimited repeats and no order: C(7,5) = 21. Without repeats, five distinct items cannot be selected from three choices.

About this tool

Count selections exactly using integer arithmetic. Decide whether order matters and whether a choice can be repeated. One page handles both combinations and permutations so you can compare the assumptions before treating a result as a probability.

Choose the counting model before using the answer

  1. Enter n, the number of distinct available choices, and r, the number of selections or positions. Both must be whole numbers from 0 to 10,000.
  2. Ask whether swapping the same chosen items creates a different outcome. A team without roles is unordered; first, second and third place are ordered.
  3. Enable repetition only when a choice can be used again with no capacity limit. Calculate to compare all four models for the same n and r. The selected model is marked in words.
  4. Inspect the integer working and download the comparison as CSV, or retain only the selected count with Download output. For long products, the first 12 steps are displayed while final counts remain complete.

How the calculation works

Without repetition: P(n,r)=n!/(n−r)!, C(n,r)=n!/[r!(n−r)!]. With repetition: ordered n^r; unordered C(n+r−1,r). Selecting zero items has one arrangement.

Worked example

Choosing three different items from ten without order gives C(10,3)=120. Ordered selections give P(10,3)=720. Ordered selections with replacement give 10³=1,000.

How to calculate n choose r

Read “n choose r” or nCr as choosing r different items from n choices without regard to order. Enter the first number as Available choices n and the second as Selections r. Choose Order does not matter and leave Allow repetition off.

For 3 choose 0, enter 3 and 0. The exact answer is 1 because there is one empty selection. For 52 choose 10, enter 52 and 10. A 10-card hand from a standard 52-card deck has 15,820,024,220 possible selections when the order of the cards does not matter.

Open either example and select Calculate to see the exact count and integer working.

Open 3 choose 0

Open 52 choose 10

The same ten choices can give four different answers

With n = 10 and r = 3, an unordered team of distinct choices has 120 outcomes. Giving the three choices different positions makes their order matter and produces 720 outcomes. Allowing a choice to repeat produces 1,000 ordered sequences or 220 unordered multisets. The difference comes from the outcome definition, not rounding.

For a small check, choose two letters from A, B and C. Without repetition, the unordered outcomes are AB, AC and BC: three combinations. The ordered outcomes are AB, AC, BA, BC, CA and CB: six permutations. With repetition, add AA, BB and CC: six unordered outcomes or nine ordered sequences.

A count does not automatically give a probability

For two independent equally likely draws with replacement from A, B and C, ordered AB and BA are separate sequences. If you merge them into the unordered outcome AB, that outcome has twice the probability of AA. Therefore the six unordered repeated outcomes are not equally likely in that experiment; dividing one by six would be wrong.

Use a probability model only after defining the experiment, possible outcomes and their probabilities. This tool counts distinguishable choices with unrestricted replacement or no replacement. It does not handle identical physical objects, limited inventories, required categories, forbidden arrangements or real password strength.

Check the integer recurrence and boundary cases

For C(10,3), start at 1 and apply the recurrence: 1 × 8 / 1 = 8; 8 × 9 / 2 = 36; 36 × 10 / 3 = 120. For P(10,3), multiply 10 × 9 × 8 = 720. The calculation uses exact integer arithmetic rather than floating-point factorials.

For combinations with repetition, choose r from N = n + r − 1 using the same binomial recurrence; the reduced loop length is min(r, N − r). Selecting zero items counts as one empty selection. With no available choices and positive r, repeated models count zero. A selected no-repeat model with r greater than n is rejected; the comparison shows zero for those impossible alternatives.

Assumptions and limitations

n and r are whole numbers from 0 to 10,000. Without replacement r≤n. Items are distinguishable; constraints, capacities and unequal probabilities are not modeled. Large answers remain exact integers.

A count becomes a probability only after defining equally likely outcomes and a compatible favorable-outcome count. This tool does not infer those assumptions from the numbers alone.

Sources and editorial responsibility

Maintained by Renvoro Pty Ltd. Sources inform the methods and assumptions shown here; outputs have the limitations described on this page.

Common questions

When do I use a permutation or a combination?

Use permutations when order matters, such as gold, silver and bronze places. Use combinations when only which items were selected matters.

What does with replacement change?

A selected item may be chosen again. With order, each of r slots has n choices, giving nʳ. Without order, repeated selections count as the same multiset.

Why is there one way to choose zero items?

There is one empty selection. This gives a count of one regardless of the positive number of available items.

Guide updated 2026-11-19. Calculation method and source dates remain separate.

Method reviewed 2026-10-13. Calculation standards · Report an issue