Permutations & Combinations

Permutations & Combinations calculates how many ways r items can be arranged out of n items in order (permutations, nPr) and how many groups can be formed regardless of order (combinations, nCr).

Permutations (nPr)20
Combinations (nCr)10

How it works

  1. 1Enter n (total items) and r (items to choose).
  2. 2The permutation (nPr) and combination (nCr) results are calculated instantly.
  3. 3r can't be greater than n, the tool flags it as invalid if it is.
  4. 4n and r must be non-negative integers.

Frequently asked questions

What's the difference between permutations and combinations?+

Order matters in permutations (AB and BA count separately), but not in combinations (AB and BA are the same group), so nPr is always greater than or equal to nCr.

What are the formulas?+

nPr = n! / (n-r)!, nCr = n! / (r! × (n-r)!), a combination is a permutation divided by r! (the number of ways to order those r items among themselves).

When should I use which?+

Use permutations when order matters (e.g. 1st/2nd/3rd place in a race), and combinations when it doesn't (e.g. choosing 3 people for a committee).

What happens when r = 0 or r = n?+

For r=0 both return 1 (there's exactly one way to choose nothing); for r=n, permutations equal n! while combinations remain 1 (there's only one way to choose everything).

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/math/permutation-combination-calculator/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Permutations & Combinations · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Math Tools Guide →

Command Palette

Search for a command to run…