UseCalcPro
Home
MathFinanceHealthConstructionAutoPetsGardenCraftsFood & BrewingToolsSportsMarineEducationTravel
Blog
  1. Home
  2. Math

Combination Calculator — nCr with Steps

Calculate combinations with step-by-step formula breakdown

C(n, r)

120

n

10

r

3

P(n,r)

720

Each item can only be selected once. Formula: n! / (r!(n-r)!)

Combination Result

C(10, 3)

120

C(n+r-1, r)

220

Step-by-Step

C(10, 3) = 10! / (3! × (10 - 3)!)

= 10! / (3! × 7!)

= 3,628,800 / (6 × 5,040)

= 120

Pascal’s Triangle — Row 10

1
10
45
120
210
252
210
120
45
10
1

Highlighted value at position r=3 is C(10, 3) = 120

Combination vs Permutation

C(10, 3) — order ignored120
P(10, 3) — order matters720
Ratio P/C = r!6

Formulas

C(n, r) = n! / (r! × (n − r)!)
With rep. = (n+r-1)! / (r! × (n-1)!)
C(n, r) = C(n, n − r)
C(n, 0) = C(n, n) = 1
C(n, 1) = n

Formulas Used

Combination (without repetition)

C(n, r) = n! / (r! × (n - r)!)

Count the number of ways to choose r items from n distinct items where order does not matter.

Where:

n= Total number of items to choose from
r= Number of items being chosen
n!= n factorial = n × (n-1) × ... × 1

Combination with repetition (multiset)

C_rep(n, r) = (n + r - 1)! / (r! × (n - 1)!)

Count the number of ways to choose r items from n types when items can be reused (multiset selections).

Where:

n= Number of item types available
r= Number of items being chosen

Relationship to Permutations

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

Combinations equal permutations divided by r!, because order does not matter in combinations.

Where:

P(n,r)= Number of permutations (ordered arrangements)
r!= Number of ways to arrange r items

Example Calculations

1C(10, 3) — Choose 3-Person Committee from 10

Inputs

n (Total Items)10
r (Items Chosen)3

Result

C(10, 3)120
With Repetition C(12,3)220
P(10, 3)720

C(10,3) = 10!/(3!×7!) = (10×9×8)/(3×2×1) = 720/6 = 120. There are 120 ways to form a 3-person committee from 10 candidates.

2C(52, 5) — Poker Hand

Inputs

n (Total Items)52
r (Items Chosen)5

Result

C(52, 5)2,598,960
P(52, 5)311,875,200

C(52,5) = 52!/(5!×47!) = 2,598,960. There are nearly 2.6 million possible 5-card poker hands from a standard deck.

3C(6, 6) — Select All Items

Inputs

n (Total Items)6
r (Items Chosen)6

Result

C(6, 6)1
P(6, 6)720

C(6,6) = 6!/(6!×0!) = 1. There is only one way to choose all items: take them all. However, P(6,6) = 720 because there are 720 orderings.

Frequently Asked Questions

Q

What is a combination and how does it differ from a permutation?

A combination counts the number of ways to select items where order does not matter. Choosing {A, B, C} is the same combination as {C, B, A}. In permutations, order matters, so ABC and CBA are counted separately. The formula is C(n,r) = n! / (r!(n-r)!).

  • C(10,3) = 120 — choosing 3 people for a committee from 10 (order irrelevant)
  • P(10,3) = 720 — assigning president, VP, secretary from 10 (order matters)
  • C(52,5) = 2,598,960 — number of possible 5-card poker hands
  • P(n,r) = C(n,r) × r! — every combination has r! permutations
  • Lottery "pick 6 from 49": C(49,6) = 13,983,816 possible tickets
ScenarioCombination C(n,r)Permutation P(n,r)
3 from 10120720
5 from 52 (poker)2,598,960311,875,200
2 from 82856
6 from 49 (lottery)13,983,81610,068,347,520
Q

How do you calculate combinations with repetition?

Combinations with repetition (multisets) use the formula C(n+r-1, r) = (n+r-1)! / (r!(n-1)!). This counts selections where the same item can be chosen multiple times. For example, choosing 3 scoops from 5 ice cream flavors: C(5+3-1, 3) = C(7,3) = 35 combinations.

  • 3 scoops from 5 flavors: C(7,3) = 35 combinations (with repetition)
  • Without repetition: C(5,3) = 10 (each flavor at most once)
  • 4 items from 3 types: C(6,4) = 15 multiset selections
  • Distributing 10 identical balls into 4 boxes: C(13,10) = 286 ways
  • Stars and bars method: same formula, different visualization
ScenarioWithout RepetitionWith Repetition
3 from 5 itemsC(5,3) = 10C(7,3) = 35
2 from 4 itemsC(4,2) = 6C(5,2) = 10
4 from 6 itemsC(6,4) = 15C(9,4) = 126
Q

What is Pascal's triangle and how does it relate to combinations?

Pascal's triangle is a triangular array where each entry is C(n,r), the number of combinations of r items from n. Each number equals the sum of the two numbers above it. Row n contains all values of C(n,0) through C(n,n). It is used in probability, algebra, and binomial expansions.

  • Row 0: 1 | Row 1: 1,1 | Row 2: 1,2,1 | Row 3: 1,3,3,1 | Row 4: 1,4,6,4,1
  • Entry at row n, position r = C(n,r)
  • Each entry = sum of two entries above: C(n,r) = C(n-1,r-1) + C(n-1,r)
  • Row sums equal powers of 2: row n sums to 2ⁿ
  • Used in binomial theorem: (a+b)ⁿ = Σ C(n,k) × aⁿ⁻ᵏ × bᵏ
Q

What does "n choose r" mean in math?

"n choose r", written as C(n,r) or ⁷Cr, is the binomial coefficient. It represents the number of ways to choose r items from a set of n distinct items, without regard to order. The formula is C(n,r) = n! / (r! × (n-r)!).

  • C(5,2) = 10 — there are 10 ways to pick 2 items from 5
  • C(n,0) = 1 and C(n,n) = 1 — one way to choose nothing or everything
  • C(n,r) = C(n, n-r) — choosing 3 from 10 = choosing 7 from 10
  • In Excel/Sheets: use =COMBIN(n, r) to calculate
  • Also called binomial coefficient, written as (n r) with parentheses
ExpressionExpansionResult
C(5,2)5!/(2!×3!)10
C(10,3)10!/(3!×7!)120
C(20,5)20!/(5!×15!)15,504
C(52,5)52!/(5!×47!)2,598,960

Understanding Combinations and Binomial Coefficients

1

Combinations vs. Permutations: Order Is the Key Difference

C(52,5) = 2,598,960 — that is the total number of possible 5-card poker hands from a standard deck. If order mattered (as in permutations), the number would be P(52,5) = 311,875,200 — exactly 120 times larger because each combination of 5 cards can be arranged in 5! = 120 different orders. The relationship P(n,r) = C(n,r) × r! is the bridge between the two concepts.

The practical distinction: choosing 3 people for a committee from 10 candidates is a combination problem (C(10,3) = 120) because the committee {Alice, Bob, Carol} is the same regardless of who was chosen first. Assigning those 3 people to specific roles (president, VP, secretary) is a permutation problem (P(10,3) = 720) because Alice-as-president is different from Alice-as-VP. Whenever order or position matters, use permutations. When only the selection matters, use combinations.

Combination vs. permutation examples
ScenarioOrder Matters?FormulaResult
3-person committee from 10NoC(10,3)120
President/VP/Sec from 10YesP(10,3)720
5-card poker handNoC(52,5)2,598,960
Lottery: 6 from 49NoC(49,6)13,983,816
2

Combinations with Repetition: The Multiset Formula

Standard combinations assume each item can be chosen at most once. Combinations with repetition (multisets) allow the same item to be selected multiple times, using the formula C(n+r–1, r) = (n+r–1)! / (r! × (n–1)!). Choosing 3 scoops from 5 ice cream flavors (where you can repeat flavors) gives C(5+3–1, 3) = C(7,3) = 35 combinations — compared to only C(5,3) = 10 without repetition.

The stars and bars visualization explains why: imagine 3 stars (items chosen) and 4 bars (dividers between 5 flavors). The number of ways to arrange 3 stars among 4 bars is C(7,3). This same technique solves distribution problems: how many ways can 10 identical balls be placed into 4 distinct boxes? C(10+4–1, 10) = C(13,10) = 286 ways. Use the Probability Calculator to find the likelihood of specific combinations occurring in random processes.

How repetition multiplies the number of possible selections
ScenarioWithout RepetitionWith RepetitionRatio
2 from 4 itemsC(4,2) = 6C(5,2) = 101.67×
3 from 5 itemsC(5,3) = 10C(7,3) = 353.50×
4 from 6 itemsC(6,4) = 15C(9,4) = 1268.40×
3

Pascal’s Triangle and the Binomial Theorem

Pascal’s triangle is an infinite triangular array where the entry at row n, position r equals C(n,r). Row 4 contains 1, 4, 6, 4, 1 — corresponding to C(4,0) through C(4,4). Each entry equals the sum of the two entries above it: C(n,r) = C(n–1,r–1) + C(n–1,r). This recursive property makes it possible to compute large combinations without evaluating factorials directly.

The binomial theorem uses Pascal’s triangle coefficients: (a+b)ⁿ = Σ C(n,k) × aⁿ⁻ᵏ × bᵏ for k = 0 to n. Expanding (x+1)⁴ gives 1x⁴ + 4x³ + 6x² + 4x + 1 — the coefficients 1, 4, 6, 4, 1 are exactly row 4 of Pascal’s triangle. Row sums equal powers of 2 (row 4: 1+4+6+4+1 = 16 = 2⁴), which is equivalent to counting all subsets of a set with n elements.

  • Row 0: 1
  • Row 1: 1, 1
  • Row 2: 1, 2, 1
  • Row 3: 1, 3, 3, 1
  • Row 4: 1, 4, 6, 4, 1
  • Row 5: 1, 5, 10, 10, 5, 1
  • Each row sums to 2ⁿ (total subsets of an n-element set)

Related Calculators

Permutation Calculator

Calculate nPr permutations

Probability Calculator

Calculate event probability

Statistics Calculator

Calculate statistical measures

Fraction Calculator

Fraction operations made easy

Triangle Calculator

Calculate triangle area, perimeter, and semi-perimeter from base and height. Shows step-by-step solutions using standard formulas and Heron's formula.

Pythagorean Theorem Calculator

Solve a\u00B2 + b\u00B2 = c\u00B2 for any missing side with step-by-step solutions. Identifies Pythagorean triples and calculates triangle area, perimeter, and angles.

Related Resources

Permutation Calculator

Calculate nPr and ordered arrangements

Probability Calculator

Calculate event probability with combinations

Statistics Calculator

Calculate mean, median, and standard deviation

Percentage Calculator

Calculate percentages and proportions

Last Updated: Mar 26, 2026

This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.

UseCalcPro
FinanceHealthMath

© 2026 UseCalcPro