How to calculate nCr and nPr?

How do you calculate nCr and nCr? This simple guide explains permutations and combinations in easy words. Imagine setting a 4-digit PIN: every time you swap two digits, you get a completely different PIN, so the order of digits matters hugely.But imagine picking 3 pizza toppings from 10: the order doesn't change what will end up on your pizza. That's the difference. Mathematicians needed two separate counting tools to handle these two very different situations. nPr (permutations) counts arrangements where order matters. nCr (combinations) counts selections where order doesn't. Learn the formulas, step-by-step calculations, and practice problems to master counting.

Table of Contents


The Formulas nCr and nPr: Explained


 nPr: Permutation Formula


 nPr=n!(n−r)!

Where:

  • n = total number of items available  
  • r = number of items you are arranging  

  • condition: r ≤ n


 nCr:  Combination Formula


 nCr=n![r!×(n−r)!]


Where:

  • n = total number of items available  

  • r = number of items you are selecting  

  • condition: r ≤ n


Relation between  nPrandnCr

nCr=nPrr!


Step-by-Step Calculations of nCr and nPr

Example 1: You are organising a 100m sprint race with 5 participants. How many different ways can the gold, silver, and bronze medals be awarded?

Solution: Given: n = 5 (total runners), r = 3 (medals to award) 

Here the order matters as gold ≠ silver ≠ bronze

Write the nPr formula and substitute:

5P3 =  5P3= 5! / (5 − 3)! = 5! / 2!

Expand 5! and 2!:

5! = 5 × 4 × 3 × 2 × 1 = 120

2! = 2 × 1 = 2

Divide:

 5P3= 120 / 2 = 60

So 5P3 = 60 different medal arrangements are possible.


Example 2: A coach must select 3 players from a squad of 5 for a penalty shootout team. How many different teams of 3 can be formed?

Solution: Given: n = 5 (total players), r = 3 (players to select) 

Here the order doesn't matter as team {A, B, C} = {C, A, B}

Write the nCr formula and substitute:

5C3 =  5C3 = 5! / [3! × (5 − 3)!] = 5! / (3! × 2!)

Expand all factorials:

5! = 120, 3! = 6 and 2! = 2

Compute denominator, then divide:

 5C3 = 120 / (6 × 2) = 120 / 12 = 10

Hence,  5C3= 10 different teams of 3 can be formed.


How to Decide: Use nPr or nCr?

It is important to correctly identify which formula to use.

Ask yourself: "If I swap two of my chosen items, do I get a different answer?"

YES → Use nPr

NO → Use nCr

→ Awarding 1st, 2nd, 3rd place

→ Selecting a sports team

→ Creating passwords or PINs

→ Choosing pizza toppings

→ Assigning different job roles

→ Forming a committee

→ Arranging books on a shelf

→ Picking lottery numbers

→ Seating people in specific seats

→ Choosing questions from a paper

→ Scheduling tasks in order

→ Distributing identical items


nPr vs nCr:  Side-by-Side Comparison

Feature

nPr (Permutation)

nCr (Combination)

Full Name

Permutation of n, r

Combination of n, r

Formula

 n!(n−r)!

 n!r!(n−r)!}

Order

Matters: {A, B} ≠ {B, A}

Irrelevant: {A, B} = {B, A}

Value

Always ≥ nCr (for the same n, r)

Always ≤ nPr (for the same n, r)

Keyword Clues

"arrange", "rank", "assign", "order", "schedule", "first/second/third"

"choose", "select", "pick", "group", "team", "committee"

Also Written As

P(n,r) or  nPr

C(n,r) or  nCr

Special Values

nP0 = 1, nPn = n!

nC0 = 1, nCn = 1, nC1 = n

 

Frequently Asked Questions of nCr and nPr

1. What is the differnce between nPr and nCr?

The difference is whether order matters. nPr (permutation) counts the number of ways to arrange r items from n, where every different ordering is a different result. nCr counts the number of ways to choose r items from n, where only the group matters and ordering is ignored.

2. Why does nCr formula have r! in the denominator but nPr dosent?

For any group of r items, there are r! ways to arrange them. So when you compute nPr, you're already counting those r! orderings per group. Since nCr doesn't care about order, it divides nPr by r!

3. Is nCr same as nC(n−r)?

Yes. This is the symmetry property of combinations: nCr = nC(n−r). For example, 10C4 = 10C6 = 210.

4. Can r be greater than n in nCr or nPr?

No. Both nCr and nPr are only defined when r ≤ n. You cannot choose or arrange more items than you have available.

5. What is nC0 and nP0 ?

nC0 = 1 and nP0 = 1 for any value of n.

ShareFacebookXLinkedInEmailTelegramPinterestWhatsApp

Admissions Open for 2026-27

Admissions Open for 2026-27

We are also listed in