Calc Lab Online
Math & Basic Calculators

Combinations Calculator (nCr)

Free online Combinations Calculator (nCr). Calculate n choose r without replacement, simplify factorial steps, explore Pascal's triangle row, and list all subsets.

Sponsored • Leaderboard
★Real-World Examples & Presets
Click to autofill values

nCrCombination Parameters

Specify the total set size (n) and the number of items to select (r).

Population (n ≥ 0)
Subset size (0 ≤ r ≤ n)
Number of Combinations (nCr)Unordered • No Repetition
C(5, 3) = 5! / [3! × (5 - 3)!]
10
Permutations (nPr)
60
Order matters
Subset Orders (r!)
6
Ways to arrange r
Symmetry Identity
C(5, 2)
C(n, r) = C(n, n-r)
Single Draw Odds
10%
1 in 10
Pascal's Triangle • Row 5Row Sum = 25 = 32
1
5
10
10
5
1

Highlighted entries show position r=3 and symmetric position n-r=2.

123Step-by-Step Mathematical Solution

Factorial Cancellation Method
1
Combinations Formula Definition
C(5, 3) = \frac{5!}{3!(5 - 3)!}

The combination formula calculates the number of ways to pick 3 items from a total set of 5 distinct items when the order of selection does not matter and each item can be chosen at most once (without replacement).

2
Simplify Factorial Terms in Denominator
(5 - 3)! = 2!

Calculate (n - r)! = (5 - 3)! = 2!. The denominator is therefore 3! × 2!.

3
Cancel Common Factor (3!) from Numerator and Denominator
\frac{5 × 4}{2 × 1}

To calculate efficiently without computing massive factorials, cancel the largest factorial 3! from the top and bottom. This leaves 2 factor(s) in both the numerator and the denominator.

4
Evaluate Numerator Product and Denominator Product
\text{Numerator} = 20, \quad \text{Denominator} = 2

Multiplying the factors yields a numerator of 20 (which equals the permutation count P(5, 2)) and a denominator of 2 (2!).

5
Divide Numerator by Denominator
\frac{20}{2}

Dividing 20 by 2 gives exactly 10 distinct combinations.

☷The 4 Fundamental Combinatorial Sampling Models

Comparing n=5 and r=3 across all combinations of order and repetition.

Model NameOrderRepetitionFormulaPossible Outcomes
Combinations without Repetition (This Tool)NoNon! / [r!(n-r)!]10
Permutations without RepetitionYesNon! / (n - r)!60
Combinations with Replacement (Multichoose)NoYes(n + r - 1)! / [r!(n - 1)!]35
Permutations with Replacement (Tuples)YesYesnr125

✓All 10 Distinct Combinations

Full list of subsets generated without repetition.

{ A, B, C }{ A, B, D }{ A, B, E }{ A, C, D }{ A, C, E }{ A, D, E }{ B, C, D }{ B, C, E }{ B, D, E }{ C, D, E }
Advertisement • In-Content

How to Use the Combinations Calculator (nCr)

Step-by-step instructions for computing combinations, factorials, and Pascal coefficients

1

Enter Total Population Size (n)

Input the total count of distinct objects or elements available in the initial pool (n ≥ 0).

2

Enter Sample Size to Choose (r)

Input how many distinct items you want to choose (0 ≤ r ≤ n). If r > n, the result without replacement is 0.

3

Optionally Customize Set Elements

Type custom comma-separated names (e.g. Alice, Bob, Charlie) to see personalized subsets when total combinations are 120 or fewer.

4

Review Cancellation & Sampling Grid

Analyze the step-by-step factorial cancellations, the Pascal's triangle row preview, and compare results across all 4 combinatorial sampling models.

Combinations Formula & Mathematical Principles

Understanding binomial coefficients, symmetry, and factorial simplification

In discrete mathematics and probability theory, a combination is a technique that determines the number of possible arrangements in a collection of items where the order of selection does not matter.

The Standard Combination Formula (nCr)
C(n, r) =   nCr   =   (nr)   =   n! / [r! × (n − r)!]

Why Do We Divide by r!?

If order mattered, the number of ways to pick r items from n would simply be the permutation formula:

P(n, r) = n × (n − 1) × … × (n − r + 1) = n! / (n − r)!

However, any chosen group of r items can be arranged in r! different sequences. Because order does not differentiate subsets in combinations, every subset has been over-counted exactly r! times. Dividing by r! collapses all permutations into unique unordered combinations:

C(n, r) = P(n, r) / r!

Core Combinatorial Properties

  • Symmetry Property: C(n, r) = C(n, n − r). Selecting r items to include in a group is physically identical to selecting the (n − r) items to leave behind.
  • Pascal's Identity: C(n, r) = C(n − 1, r − 1) + C(n − 1, r). Each number in Pascal's triangle is the sum of the two numbers directly above it.
  • Power Set Size: ∑k=0n C(n, k) = 2n. Summing all combinations across every possible subset size yields 2n (the cardinality of the power set).

Taxonomy: The 4 Classical Sampling Regimes

Sampling ModelOrder Matters?Replacement Allowed?Mathematical Formula
Combinations (nCr) [This Tool]NoNon! / [r!(n − r)!]
Permutations (nPr)YesNon! / (n − r)!
Combinations with Replacement (CR)NoYes(n + r − 1)! / [r!(n − 1)!]
Sequences / TuplesYesYesnr

Real-World Worked Applications

Example 1: Poker Cards

5-Card Hand from 52 Cards

How many distinct 5-card poker hands can be dealt from a standard 52-card deck?

n = 52, r = 5
C(52, 5) = 52! / (5! × 47!)
= (52×51×50×49×48) / 120
= 2,598,960 hands
Example 2: Lottery 6/49

Jackpot Odds

What is the probability of matching all 6 winning numbers drawn from 49 balls?

n = 49, r = 6
C(49, 6) = 49! / (6! × 43!)
= 13,983,816 tickets
Odds = 1 in 13.98M
Example 3: Committee

3 Members from 10 Candidates

How many unique 3-person project teams can be selected from 10 eligible engineers?

n = 10, r = 3
C(10, 3) = 10! / (3! × 7!)
= (10 × 9 × 8) / (3 × 2 × 1)
= 120 committees

Frequently Asked Questions

Answers to common combinations, factorials, and probability questions

What is the formula for combinations (nCr)?

The formula for combinations without replacement is C(n, r) = n! / [r! × (n - r)!], where n is the total number of items, r is the number of items chosen, and "!" denotes the factorial operation.

What is the difference between combinations and permutations?

In permutations (nPr), order matters (for example, the code 1-2-3 is different from 3-2-1). In combinations (nCr), order does not matter (the hand {Ace, King} is identical to {King, Ace}). Because of this, combinations equal permutations divided by r! (the number of ways to arrange the chosen items).

What is the symmetry property of combinations?

Combinations are symmetric: C(n, r) = C(n, n - r). For example, choosing 3 people out of 10 to be on a committee is mathematically equivalent to choosing the 7 people (10 - 3) who are left off the committee. Thus, C(10, 3) = C(10, 7) = 120.

What happens if r is greater than n in combinations without replacement?

If r > n, the number of combinations without replacement is 0 because you cannot select more unique items than exist in the set. If replacement were allowed, combinations with replacement would be C(n + r - 1, r).

How does Pascal's triangle relate to combinations?

Every entry in Pascal's triangle is a combination! The r-th number in row n (starting at row 0, column 0) is equal to C(n, r). Additionally, the sum of all numbers in row n equals 2^n, which represents the total number of all possible subsets (the power set) of a set with n elements.