Free, with every step shown

Permutation and Combination Calculator (nPr, nCr)

Enter n and r to get nPr, nCr and the versions with repetition, with every digit exact. Choosing 3 of 10: 10P3 = 720 ordered ways and 10C3 = 120 groups. A poker hand is 52C5 = 2,598,960.

The steps show why nCr is nPr divided by r!.

Calculate nPr and nCr

n = how many items you choose from, r = how many you pick (whole numbers up to 1000). Every digit is exact.

10P3 = 720 · 10C3 = 120

Permutations (order matters), 10P3
720
Combinations (order doesn’t matter), 10C3
120
Permutations with repetition, nʳ
1,000
Combinations with repetition, C(n + r − 1, r)
220
  1. nPr = n! / (n − r)! = 10! / 7! = 10 × 9 × 8 = 720
  2. nCr = nPr / r! = 720 / 3! = 720 / 6 = 120
  3. Each group of 3 items can be ordered in 3! = 6 ways, which is why nCr is nPr divided by r!.
Explain the steps with AI

Worked examples

Example 1: Medals for 3 of 10 runners

Gold, silver and bronze: order matters.

  1. 10P3 = 10 × 9 × 8

720 ways.

Example 2: A 3-person committee from 10

Order does not matter.

  1. 10C3 = 10P3 ÷ 3! = 720 ÷ 6

120 committees.

Example 3: 4-digit PINs

Digits 0–9, repeats allowed, order matters.

  1. nʳ = 10⁴

10,000 PINs.

Stuck on a step, or have a word problem?

Press Explain the steps with AI under any answer and the MathAI GPT math solver opens with your numbers already filled in, then explains the method line by line and answers follow-up questions. You can also type or photograph the whole question. On your phone, use MathAI GPT for iPhone or MathAI GPT for Android.

Permutation and combination FAQ

What is the difference between a permutation and a combination?

A permutation counts arrangements where order matters (gold, silver, bronze); a combination counts selections where order does not (a 3-person committee). Choosing 3 of 10: 10P3 = 720 orderings but only 10C3 = 120 groups.

What is the formula for nPr?

nPr = n! ÷ (n − r)! = n × (n − 1) × … × (n − r + 1). For 10P3 that is 10 × 9 × 8 = 720.

What is the formula for nCr?

nCr = n! ÷ (r!(n − r)!) = nPr ÷ r!. For 10C3: 720 ÷ 3! = 720 ÷ 6 = 120.

How many 5-card poker hands are there?

52C5 = 2,598,960. Order does not matter in a hand, so it is a combination; the number of ordered deals would be 52P5 = 311,875,200.

What if items can be repeated?

Ordered with repetition: nʳ (a 4-digit PIN from 10 digits has 10⁴ = 10,000 options). Unordered with repetition: C(n + r − 1, r) (3 scoops from 10 flavours, repeats allowed: C(12, 3) = 220).

How do I know if order matters?

Ask whether swapping two chosen items gives a different outcome. If yes (positions, rankings, codes), use permutations; if no (teams, hands, samples), use combinations.

Related calculators