Skip to content

Math

Permutation and Combination Calculator

Enter n and r to calculate permutations and combinations. nPr counts ordered arrangements, while nCr counts groups where order does not matter. The result also shows n! and r!. Use it for probability, statistics, and counting problems that choose r items from n distinct items without replacement.

Updated 2026-11-12 Editorial estimate Calccc Editorial Team Free · No sign-up

Loading calculator…

What this calculator does

Permutations and combinations both count ways to choose items from a group, but they answer different questions. A permutation treats a different order as a different outcome: a first, second, and third place finish is not the same as the reverse. A combination treats order as irrelevant: a committee of three people is one group no matter who is listed first. This calculator shows both counts side by side so you can see how much the ordering adds.

How to use it

  1. Enter n, the total number of distinct items.
  2. Enter r, the number of items you choose.
  3. Read nPr for ordered arrangements.
  4. Read nCr for unordered groups.
  5. Check n! and r! to see the factorials used in the formulas.

How it works

nPr = n! / (n - r)! and nCr = n! / (r! x (n - r)!). A factorial such as 5! means 5 x 4 x 3 x 2 x 1, and 0! is defined as 1. Because nCr = nPr / r!, the combination count removes the r! orderings of each chosen group. The formulas require whole numbers with 0 <= r <= n, and they assume items are distinct and chosen without replacement.

Example calculations

Example 1: n = 5, r = 2

There are 20 ordered pairs and 10 unordered pairs. The factorials are 5! = 120 and 2! = 2.

Example 2: n = 10, r = 3

There are 720 ordered triples and 120 unordered groups. 10! is 3,628,800 and 3! is 6.

Example 3: n = 6, r = 6

There are 720 orders of all six items but only 1 group. Both 6! values are 720.

What the result means

The question to ask is whether order changes the outcome. Choosing a president, vice president, and treasurer from a club is a permutation because each office is different. Choosing three members for a committee is a combination because the roles are identical. Passwords, race finishes, and seating charts are ordered. Teams, lottery tickets, and pizza toppings usually are not. If every item is selected (r = n), there is exactly one combination but n! permutations, which is a useful check on the formula. The counts grow very fast as n rises, because each added item multiplies the number of arrangements.

Common mistakes

  • Using combinations when order matters, such as for a password or a podium finish.
  • Using permutations when the group is unordered, such as a committee.
  • Entering r larger than n.
  • Forgetting that the formulas assume no replacement.
  • Treating 0! as 0 instead of 1.

Assumptions and limits

  • All n items are distinct.
  • Each item can be chosen at most once.
  • r is a whole number from 0 to n.
  • Order matters for nPr and does not matter for nCr.
  • No item is repeated or put back after selection.

Frequently asked questions

What is the difference between a permutation and a combination?

A permutation counts arrangements where order matters. A combination counts groups where order does not matter. For the same n and r, nPr is always larger.

What do n and r mean?

n is the total number of distinct items available. r is how many of them you choose.

Can r be 0?

Yes. Choosing nothing counts as 1 way, so nP0 and nC0 both equal 1. This follows from 0! = 1.

Can r be larger than n?

No. You cannot choose more items than the group contains, so the calculator rejects r > n.

Does this allow repetition?

No. These formulas are for sampling without replacement. If items can repeat, the count uses a different formula, usually base n to the power r.

Why is nCr smaller than nPr?

Each unordered group of r items can be arranged in r! different orders. Dividing nPr by r! removes those duplicates.

Sources

This calculator is an educational math aid only. It does not replace a statistics course, a textbook, or professional analysis. Verify inputs and rounding when a result will be used for research, testing, or business decisions.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Go deeper

Guides that explain the math

Permutations and Combinations: Order Matters or Not
Math

Permutations and Combinations: Order Matters or Not

The difference between permutations and combinations, how factorials produce both formulas, and a decision method for repetition, identical items, and probability questions.

7 min read

Calccc Editorial Team · Updated 2026-11-12

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.