BYTETOOLS

nPr vs nCr: Pro Tips and Mistakes to Avoid

The one question that decides every counting problem is "does order matter?" β€” if it does, you want a permutation (nPr); if it doesn't, you want a combination (nCr). Get that wrong and every answer that follows is wrong. Permutations and combinations are easy to compute but easy to misapply. This guide covers the judgment calls and the classic errors, so you pick the right formula and trust the result.

First decide: does order matter?

Before touching any formula, ask whether rearranging the same items counts as a new outcome. A race podium (gold, silver, bronze) cares about order β€” that is a permutation. A committee of three cares only about who is in it, not the sequence β€” that is a combination. A quick test table:

SituationOrder matters?Use
PIN codes, passwordsYesnPr
Race finishing positionsYesnPr
Lottery number drawNonCr
Choosing a team or committeeNonCr
Dealing a hand of cardsNonCr

A reliable habit: because nPr is always greater than or equal to nCr for the same n and r, if your answer feels too large for a "selection" problem, you probably used a permutation by mistake.

The double-counting trap

The most common error is using a permutation where order is irrelevant, which counts every group multiple times. Choosing 2 people from 5 has 5C2 = 10 outcomes, but 5P2 = 20 β€” exactly double, because it treats {Ann, Bob} and {Bob, Ann} as different. Whenever a permutation answer is a neat multiple of what you expected, suspect that you have counted each unordered group r! times. Dividing nPr by r! gives nCr, which is the built-in relationship the two results demonstrate side by side.

Common mistakes and fixes

  • Entering r greater than n. You cannot choose more items than you have; the calculator flags this rather than returning nonsense. Recheck which number is the total.
  • Forgetting repetition rules. Standard nPr and nCr assume each item is used at most once. A 4-digit PIN allowing repeated digits is not 10P4 β€” it is 10⁴. Make sure your problem truly forbids repeats before applying these formulas.
  • Rounding huge results. Ordinary calculators overflow into scientific notation and lose digits. This tool uses BigInt, so trust its exact value over a rounded one from elsewhere.
  • Mislabelling n and r. n is the pool, r is the pick. Swapping them silently produces a plausible-looking but wrong answer, so confirm which is which before reading the result.

Verify with the formula on screen

The strongest safeguard is to expand the formula boxes and confirm the expression matches your intent β€” seeing 5 Γ— 4 for 5P2 or (5 Γ— 4) Γ· (2 Γ— 1) for 5C2 makes an error obvious. Compute both nPr and nCr together, sanity-check that the permutation is the larger of the two, and you will rarely go wrong. It all runs privately in your browser, so you can test edge cases freely.

Try the Permutation & Combination Calculator β€” free and 100% in your browser.

FAQ

How do I know whether to use nPr or nCr?

Ask if reordering the same items creates a new outcome. If yes β€” like ranking finishers β€” use nPr. If no β€” like picking a committee β€” use nCr. When unsure, note that the permutation count is always the larger of the two.

Why is my permutation answer exactly double the combination?

Because with r = 2 there are 2! = 2 orderings of every pair, so nPr counts each unordered pair twice. Dividing nPr by r! converts it back to nCr, which removes the duplicates.

Do these formulas handle repeated items, like a PIN with repeats?

No. Standard nPr and nCr assume no item repeats. A 4-digit PIN that allows repeats is 10⁴, not 10P4, so use plain multiplication when repetition is permitted.

Can I trust the result for very large n and r?

Yes. The calculator uses BigInt arithmetic, so large answers stay exact to every digit instead of rounding into scientific notation the way many calculators do.

Related free tools

Built by ByteVancer

ByteTools is a free product of ByteVancer, a software and web development studio building web apps, SaaS and custom software. If you need dependable, custom-built calculators or data tooling, explore how ByteVancer can help.