Permutation and Combination Calculator (nPr, nCr)

Permutations count ordered arrangements and combinations count unordered selections. For n = 10 items and r = 3 chosen, there are P(10, 3) = 720 permutations and C(10, 3) = 120 combinations, and 720 = 120 × 3!.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

Permutations vs Combinations: What Is the Difference?

Both permutations and combinations answer the question “in how many ways can I choose r items from n?”. The difference is whether the order of the chosen items matters.

If order matters, you are counting permutations. Awarding gold, silver and bronze to three of ten runners is a permutation problem, because Anna–Ben–Cara is a different result from Ben–Anna–Cara. If order does not matter, you are counting combinations. Picking a three-person committee from ten people is a combination problem, because the same three people form the same committee in any order.

This calculator gives you both numbers at once, so you can see exactly how much order inflates the count.

Quick Comparison

Permutation P(n, r)Combination C(n, r)
Does order matter?YesNo
Typical wordingarrange, rank, order, line up, schedulechoose, select, pick, form a group
ExampleGold, silver, bronze among 10 runnersA committee of 3 from 10 people
Result for n = 10, r = 3720120
RelationshipP(n, r) = C(n, r) × r!C(n, r) = P(n, r) ÷ r!

Permutation and Combination Formulas

P(n, r) = n! ÷ (n − r)! C(n, r) = n! ÷ [ r! × (n − r)! ]
  • n is the total number of distinct items available.
  • r is the number of items chosen (0 ≤ r ≤ n).
  • n! (“n factorial”) is the product 1 × 2 × 3 × … × n, with 0! = 1.
  • The extra r! in the combination formula divides out the r! different orders in which the same r items can be arranged.

A useful symmetry is C(n, r) = C(n, n − r): choosing 3 people to include is the same as choosing the 7 to leave out. For a deeper look at each, see the dedicated permutation calculator and combination calculator, which also handle repetition.

Worked Example: 3 Chosen from 10

Take n = 10 and r = 3.

  1. Permutations: P(10, 3) = 10! ÷ 7! = 10 × 9 × 8 = 720.
  2. Combinations: C(10, 3) = 720 ÷ 3! = 720 ÷ 6 = 120.
  3. Check: 120 × 6 = 720, so each group of three people can be arranged in six orders.
  4. 10! = 3,628,800.

More Everyday Examples

SituationTypen, rCount
Podium finishes among 8 runnersPermutation8, 3336
Choosing 3 of 8 runners for a relay squadCombination8, 356
Five-card poker hands from 52 cardsCombination52, 52,598,960
Ordered 5-card deals from 52 cardsPermutation52, 5311,875,200
Six-number lottery from 49 ballsCombination49, 613,983,816

The lottery shows why combinations matter for probability: your single ticket has a 1 in 13,983,816 chance, because only the set of numbers counts, not the order in which they are drawn.

How to Use This Permutation and Combination Calculator

  1. Enter the total number of items n.
  2. Enter the number of items chosen r. It cannot be larger than n.
  3. Read P(n, r), C(n, r) and n! in the results.
  4. Open the steps to see the factorial cancellation.

Ask yourself first whether swapping two chosen items gives a different outcome. If yes, use the permutation figure. If not, use the combination figure.

Real-World Uses of Permutations and Combinations

  • Probability: counting favourable and total outcomes for cards, dice and lotteries. See the probability calculator.
  • Computer science and security: estimating how many passwords, PINs or keys are possible, and how long brute-force would take.
  • Scheduling and logistics: counting the possible orders of tasks, deliveries or tournament matches.
  • Business: choosing teams, product bundles or test groups.
  • Genetics and chemistry: counting possible arrangements of sequences and molecules.

A Quick Decision Guide

Ask yourselfIf yes
Would swapping two chosen items give a different result?Use permutations
Am I just forming a group or a hand?Use combinations
Can the same item be used more than once?Use the repetition versions

As a check, a round-robin among 8 teams where each pair plays once has C(8, 2) = 28 games, because a match between A and B is the same game as B against A.

What Are the Most Common Mistakes With the Permutation and Combination Calculator (nPr, nCr)?

  • Using the wrong one. Always decide whether order matters before computing.
  • Assuming r can exceed n. Without repetition, you cannot pick more items than exist.
  • Forgetting 0! = 1. It makes C(n, 0) = C(n, n) = 1 work.
  • Ignoring repetition. If items can be chosen more than once, the formulas change.
  • Identical items. If some items are indistinguishable, divide by the factorials of their counts.
  • Overflow. Factorials grow explosively: 20! is already 2.4 quintillion, and values this large may be shown in scientific notation.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is the difference between a permutation and a combination?

A permutation counts arrangements where order matters, and a combination counts selections where order does not matter. P(n, r) is always r! times larger than C(n, r).

What is the formula for nPr and nCr?

nPr = n! ÷ (n − r)! and nCr = n! ÷ [r! × (n − r)!].

How do I know whether to use a permutation or a combination?

Ask whether rearranging the chosen items creates a new outcome. If it does (a ranking, a code, a seating plan), use permutations. If it does not (a team, a hand of cards), use combinations.

What is 10 choose 3?

C(10, 3) = 120. There are 120 different groups of three that can be chosen from ten items when order does not matter.

What does n! mean?

n factorial is the product of all whole numbers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120.

Can I use this for repeated items or choices?

This tool covers selections without repetition. For repetition, use the combination calculator or the permutation calculator, which have a repetition option.