Permutation combination guide

How to use the Permutation and Combination Calculator

The Permutation and Combination Calculator is most useful when you know the total number of items and the number being chosen, but you are not sure whether order should change the answer. This guide shows how to read nPr and nCr side by side without turning the page into a formula maze.

Open the Permutation and Combination Calculator
Guide image for Permutation and Combination Calculator showing ordered arrangements, unordered groups, and nPr/nCr examples.
Permutation and Combination Calculator guide artwork supports the walkthrough for choosing nPr or nCr, reading exact counts, checking examples, and avoiding order-matters mistakes.View in the smoke-kawaii gallery

Quick start

  1. Enter n, the total number of items.
  2. Enter r, the number of items selected or arranged.
  3. Press Calculate nPr and nCr.
  4. Use nPr when first-second-third order, code order, or ranking order matters.
  5. Use nCr when the same group counts once no matter how the items are arranged.

Best uses

This guide is best when the hard part is deciding whether the same selected items should count once or many times.

  • Find permutations for rankings, podium finishes, codes, or ordered choices.
  • Find combinations for committees, card hands, teams, or unordered groups.
  • Compare nPr and nCr from the same n and r before choosing a probability denominator.
  • Copy exact integer nPr and nCr results for notes, homework, or study checks.

Quick answer

Use nPr for ordered arrangements. Use nCr for unordered selections. The calculator shows both because many counting mistakes happen before the arithmetic starts.

For example, choosing 3 finalists from 10 people gives 10P3 = 720 if gold-silver-bronze order matters, but 10C3 = 120 if you only need the group of 3 people.

Permutation vs combination

A permutation counts arrangements, so ABC and BAC are different outcomes. Use nPr when the first slot, second slot, third slot, or written order changes the meaning.

A combination counts groups, so ABC and BAC are the same group. Use nCr when the selected items matter but their order does not.

  • Use nPr for podium finishes, passwords without repeated characters, ordered codes, seating order, or rankings.
  • Use nCr for committees, teams, card hands, lottery-style picks, or any group where rearranging the same items does not create a new result.
  • If you can swap two selected items and the outcome becomes different, use nPr. If the outcome stays the same, use nCr.

What n and r mean

n is the total pool. If there are 12 people, 52 cards, or 26 letters available, that number is n.

r is how many items you choose or arrange from that pool. If you need 4 committee members, a 5-card hand, or a 3-letter code, that number is r.

The calculator accepts whole numbers from 0 to 500 and requires r to be no larger than n. That keeps the result in the standard no-replacement nPr and nCr setup.

What the calculator is doing

For permutations, the calculator uses nPr = n! / (n - r)!. The exclamation point means factorial, so 5! means 5 x 4 x 3 x 2 x 1.

For combinations, the calculator uses nCr = n! / (r! x (n - r)!). The extra r! division removes duplicate orderings of the same selected group.

This is why nPr is usually larger than nCr. The permutation count treats ABC, ACB, BAC, BCA, CAB, and CBA as six different arrangements, while the combination count treats them as one group.

Example: ranking 3 from 10

Suppose 10 people enter a contest and you need first, second, and third place. Enter n = 10 and r = 3, then press Calculate nPr and nCr.

The calculator returns 10P3 = 720 and 10C3 = 120. For a ranked podium, use 720 because first-second-third order changes the result.

If the same 10 people are being narrowed to an unranked group of 3 finalists, use 120 because the group is the same no matter which finalist name you write first.

Example: cards and committees

A standard 5-card poker hand is a combination problem because the same five cards count as the same hand in any order. Enter n = 52 and r = 5. The combination answer is 2,598,960.

A 4-person committee from 12 people is also usually a combination problem. Enter n = 12 and r = 4. Use 12C4 = 495 unless the four seats have different roles.

If those 4 people must become president, vice president, secretary, and treasurer, order now matters. Use 12P4 = 11,880 because each role assignment is a different arrangement.

Using counts in probability

Many probability problems compare favorable outcomes with total possible outcomes. Permutations and combinations help count those outcomes without listing every case one by one.

The key is to use the same order rule on both sides of the probability fraction. Do not count the favorable outcomes as combinations and the total outcomes as permutations unless the problem truly changes the rules.

What this calculator does not cover

This calculator uses the standard no-replacement setup. Once an item is selected, it is not reused in the same count.

That means it is not the right model for PINs that allow repeated digits, coin flips, dice rolls, or drawing with replacement. Those problems use different counting rules, such as powers like 10^4 for a 4-digit PIN with repeated digits allowed.

Common mistakes to avoid

The biggest mistake is choosing the formula after looking at whichever answer feels nicer. Decide whether order matters before reading the result.

Another common mistake is mixing up the total pool with the selected amount. If 26 letters are available and you need a 3-letter code, n is 26 and r is 3, not the other way around.

  • Do not use nPr for a group just because the number looks more impressive.
  • Do not use nCr for rankings, assigned seats, or named roles.
  • Do not use this no-replacement calculator when repeats are allowed.
  • Do not round or abbreviate huge integer counts before using them in a probability denominator.

Sources and reference checks

The guide follows the standard permutation and combination formulas used in introductory probability. The calculator also exposes both answers because the reader decision is usually about order, not arithmetic.

Use your class, contest, or project wording as the final authority. If it says order matters, assigned roles, arranged, ranked, or password, think nPr. If it says choose, committee, hand, or group, think nCr unless the wording adds order.

Worked examples for Permutation and Combination Calculator

Choose 3 from 1010P3 and 10C3

720 permutations, 120 combinations

Cards example52C5

2,598,960 combinations

Podium order8P3

336 permutations

Four-person committee12P4 and 12C4

11,880 permutations, 495 combinations

Two finalists5P2 and 5C2

20 permutations, 10 combinations

Three-letter ordered code26P3 and 26C3

15,600 permutations, 2,600 combinations

FAQ in plain language

What is the fastest way to use the Permutation and Combination Calculator?

Enter n for the total pool, enter r for the number selected, and press Calculate nPr and nCr. Then choose the answer that matches whether order matters.

How do I know whether to use nPr or nCr?

Use nPr when swapping two selected items changes the outcome. Use nCr when the same selected group counts once even if the items are written in a different order.

Why are the nPr and nCr answers different?

nPr counts every order separately. nCr divides out the duplicate orderings of the same group, so it is smaller whenever r is greater than 1.

Can r be zero in this calculator?

Yes. There is exactly one way to choose or arrange nothing, so nP0 and nC0 both equal 1. That result is normal in these formulas.

Does this calculator allow repeated items or replacement?

No. It uses no-replacement nPr and nCr formulas. If an item can be reused, use a replacement-based counting method instead.

Why does a 5-card hand use 52C5 instead of 52P5?

A normal 5-card hand is the same hand no matter which card you list first. Because the order does not change the hand, 52C5 is the right count.

How do permutations and combinations connect to probability?

They often count favorable outcomes and total possible outcomes. Once those counts are clear, probability is usually favorable outcomes divided by total outcomes.

Related tools

Keep exploring

If your counting problem turns into probability or another statistics step, these nearby tools keep the workflow connected.

Privacy and copying results

Recent answers stay visible only while you work in the current browser tab. They are not sent to a server.

Use Copy answer when you want to save the inputs and result in notes, homework, a message, or a project list. Check the units, labels, and limits before copying.