Combination & permutation calculator

nPr counts order. nCr does not. Same n and r, four answers once you allow repetition.

Report error
nCr
order does not count
nPr
order counts
n!
full permutations of n

C(n,k) for k = 0…n

nCr vs nPr

Four counts

KindFormulaValue

The actual r-subsets (when C ≤ 120)

#Subset
C(n,r) = n! / (r!(n−r)!). P(n,r) = n! / (n−r)!.

n and r

Permutation & Combination Calculator

Permutations and combinations both count ways to select objects from a set. The deciding question is whether order matters.

Use n for the total number of distinct objects and r for the number selected. A combination ignores the order of the selected objects; a permutation treats different orders as different outcomes.

Quick rule: If ABC and BCA are the same outcome, use a combination. If they are different outcomes, use a permutation.

Order Matters or Not?

The same three objects can produce two different counting problems
Combination ABC = ACB
Order is ignored
Permutation ABC ≠ ACB
Order creates a new result

Four Common Counting Cases

What changes the formula?

CaseOrderReplacementTypical notation
CombinationDoes not matterNonCr
PermutationMattersNonPr
Combination with replacementDoes not matterYesC(n+r−1,r)
Permutation with replacementMattersYesnr

Permutation and Combination Formulas

nPr = n! / (n − r)!
nCr = n! / [r!(n − r)!]

The combination formula removes duplicate orderings from the permutation count. The relationship can be written as:

nPr = nCr × r!

Notation at a glance

SymbolMeaningExample
nTotal number of distinct objects10 people
rNumber selected or arranged3 people
n!Factorial of n5! = 120
nPrOrdered selections10P3 = 720
nCrUnordered selections10C3 = 120

Choosing 3 from 10

Imagine 10 distinct people. Selecting 3 people for a committee ignores their order; assigning those 3 people to three different positions does not.

Combination:
10C3 = 10! / (3! × 7!) = 120

Permutation:
10P3 = 10! / 7! = 720

The permutation count is six times larger because the same three selected people can be arranged in 3! = 6 different orders.

When Objects Can Be Used More Than Once

Allowing repetition changes the number of available choices at each position. For ordered selections, every position has n choices.

Permutation with repetition = nr
Combination with repetition = C(n + r − 1, r)

Example with n = 5 and r = 3

TypeCalculationResult
Permutation, no repetition5P360
Combination, no repetition5C310
Permutation, repetition125
Combination, repetition5H3 = C(7,3)35

Handshake Problem

If every pair in a group of n people shakes hands exactly once, the order of the two people does not matter. That makes this a combination problem: choose 2 people from n.

C(n,2) = n(n − 1) / 2
10 people → C(10,2)
= 10 × 9 / 2
= 45 handshakes

Which Formula Fits?

Common counting problems

ProblemUseAnswer
Choose 2 prizes from 6Combination6C2 = 15
Choose 3 students from 25Combination25C3 = 2,300
Assign 2 distinct roles from 11 peoplePermutation11P2 = 110
Choose 4 favorites from 18 menu itemsCombination18C4 = 3,060
Three positions, 10 choices each, repeats allowedPermutation with repetition10³ = 1,000

How nCr Values Form a Pattern

Combination values appear in Pascal's triangle. For a fixed n, the row lists C(n,0), C(n,1), C(n,2), and so on through C(n,n).

Selected rows

nValues of C(n,r)
01
11, 1
21, 2, 1
31, 3, 3, 1
41, 4, 6, 4, 1
51, 5, 10, 10, 5, 1
101, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1

Conditions and Edge Cases

Standard without-replacement formulas

ConditionResult
r = 0nCr = 1 and nPr = 1
r = nnCr = 1 and nPr = n!
0 < r < nBoth counts are valid; nPr ≥ nCr
r > nNo valid selection without repetition

Frequently Asked Questions

What is the simplest way to remember nPr vs. nCr?

Think of a permutation as a lineup: changing the order changes the result. Think of a combination as a group: changing the order does not.

Why is nPr usually larger than nCr?

For the same selected objects, a permutation counts their possible orders. A combination treats those orders as duplicates.

What if r is greater than n?

For the standard without-replacement formulas, no selection is possible when r > n. Repetition uses different formulas.

Are permutations and combinations useful in probability?

Yes. Both are standard counting tools for probability problems where the number of possible outcomes must be determined.