This permutations versus combinations interactive tool helps students count selections, arrangements, and possibilities. Explore exactly how the answer changes when order matters or does not matter.
How to use the permutations versus combinations interactive tool
Choose the total number of objects, choose how many will be picked, then compare the two counting methods.
Choose n
Select the total number of different objects available.
Choose r
Select how many objects will be picked or arranged. The tool prevents r from being larger than n.
Decide about order
Choose permutation when order matters or combination when order is ignored.
Explore every result
Compare the formula and browse all results eight at a time.
Permutation versus combination
Permutation: order matters
A-B and B-A count as different results. Examples include race positions, passwords, and arranging objects in a row.
Combination: order does not matter
A-B and B-A describe the same group. Examples include choosing team members, pizza toppings, or subjects to study.
Permutation formula
P(n, r) = n! / (n – r)!. It counts ordered selections of r objects from n available objects.
Combination formula
C(n, r) = n! / (r!(n – r)!). Dividing by r! removes repeated orders of the same group.
Worked comparison
Suppose four objects are available and two are selected.
For permutations, P(4, 2) = 4 x 3 = 12. A-B and B-A are different ordered results.
For combinations, C(4, 2) = 6. A-B and B-A are the same pair, so each pair is counted once.
Ideas for practice
- Compare P(4, 2) and C(4, 2). Explain why one answer is twice the other.
- Choose all available objects. Compare P(n, n) with C(n, n).
- Find a setting where choosing A then B should be different from choosing B then A.
- Find a setting where those two orders should represent the same group.
- Predict the answer before switching modes, then check the formula.
Frequently asked questions
How do I know whether to use a permutation or combination?
Ask whether changing the order creates a different outcome. If yes, use a permutation. If no, use a combination.
What do n and r mean?
n is the total number of available objects. r is the number of objects being selected or arranged.
Why are there usually more permutations?
Permutations count every different order, while combinations group together orders containing the same selected objects.
Why does the combination formula divide by r factorial?
Each chosen group can be ordered in r! ways. Dividing by r! removes those duplicate orders.
Can r be larger than n?
Not when objects cannot be repeated. You cannot choose more distinct objects than are available, so the explorer limits r to n.
Permutations and combinations are two important ideas in mathematics that help us count the number of possible ways to arrange or select objects.
Combination
Combination is used when order does not matter.
For example, choosing 2 ice-cream flavors from 5.
Chocolate + Vanilla is the same as Vanilla + Chocolate, so it is counted only once.
Formula for Combination

This formula adjusts the permutation formula by dividing out the extra arrangements that are the same when order is ignored.
Permutation
Permutation is used when order matters.
For example, arranging 3 colored blocks in a row.
Changing the order changes the arrangement, so each arrangement is counted separately.
Formula for Permutation

n = total number of objects
r = number of objects being arranged
n! (read as n factorial) means multiplying all whole numbers from n down to 1
This formula counts all possible sequences where order makes a difference.
To help learners understand these ideas visually, we created an interactive Permutations and Combinations Explorer.
You can:
- Select how many objects you have
- Choose how many you want to pick
- Switch between Permutation (order matters) and Combination (order doesn’t matter)
The widget automatically displays all possible arrangements or groups along with a detailed mathematical explanation.