Combination Calculator

All free toolsAdvanced Mathematics
Advanced MathematicsFree online tool

Combination Calculator

Calculate unordered selections nCr.

Uses exact integer arithmetic where BigInt is supported. Values are limited to n ≤ 500 for responsive browser performance.

Free online tool by SOCE. Check inputs and results before using them for important decisions.

Combination Calculator – Free Online nCr Formula Guide

The SOCE Combination Calculator page helps students, teachers, engineers, researchers, and mathematics learners understand combinations, factorials, binomial coefficients, and counting principles through mathematical formulas and worked examples.

Combinations are a fundamental concept in combinatorics, probability, statistics, and discrete mathematics. They describe the number of ways to select objects from a collection when the order of selection does not matter.

Whether you are studying the nCr formula, choosing objects without repetition, combinations with repetition, or the difference between combinations and permutations, this Combination Calculator resource provides explanations to support accurate mathematical calculations.

What Is a Combination Calculator?

A Combination Calculator is a mathematical tool used to determine the number of possible selections from a collection of objects when order does not matter.

For example, suppose five students are available and two must be selected to form a team.

Selecting students A and B is the same team as selecting students B and A.

Therefore, the order of selection does not create a new combination.

The number of possible teams is:

5C2 = 10

This is the basic principle of combinations.

Combinations are also represented using the notation:

C(n,r)

or:

n choose r

Combination Calculator Formula (nCr)

The standard combination formula for selecting r objects from n distinct objects without repetition is:

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

Where:

  • n = total number of distinct objects.
  • r = number of objects selected.
  • n! = factorial of n.
  • r! = factorial of r.
  • (n − r)! = factorial of n − r.
  • nCr = number of unordered selections.

The formula applies when n and r are non-negative integers satisfying:

0 ≤ r ≤ n

Worked Example: Calculate 5C3

Find the number of ways to select three objects from five distinct objects.

Using the formula:

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

= 5! / (3!2!)

= 120 / (6 × 2)

Answer: 10 combinations

Therefore, there are 10 ways to select three objects from five distinct objects when order does not matter.

How to Use the Combination Calculator

The general process for solving a combination problem is:

  1. Identify the total number of distinct objects, n.
  2. Identify the number of objects to select, r.
  3. Confirm that order does not matter.
  4. Determine whether repetition is allowed.
  5. Choose the appropriate combination formula.
  6. Substitute the values into the formula.
  7. Simplify the factorial expression.
  8. Verify that the result is a non-negative integer.

For example:

n = 6

r = 2

Without repetition:

6C2 = 6! / (2!4!)

= (6 × 5)/(2 × 1)

Answer: 15 combinations

Understanding Factorials in Combinations

A factorial is the product of positive integers from 1 to a specified non-negative integer.

Factorial notation uses the symbol:

n!

For n ≥ 1:

n! = n × (n − 1) × … × 2 × 1

By definition:

0! = 1

Examples:

  • 1! = 1
  • 2! = 2
  • 3! = 6
  • 4! = 24
  • 5! = 120
  • 6! = 720

Factorials appear in combination formulas because they help count possible arrangements and remove duplicate orderings.

Why Is 0! Equal to 1?

The value 0! = 1 follows the empty-product convention and is consistent with the factorial recurrence.

It also ensures that the combination formula works when selecting zero objects or all available objects.

For example:

5C0 = 5! / (0!5!)

Answer: 1

There is exactly one way to select nothing from a set.

Combination Calculator Without Repetition

A combination without repetition involves selecting distinct objects, with each object chosen at most once.

The formula is:

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

Worked Example: Selecting a Committee

A class contains eight students.

How many different committees of three students can be formed?

Because the order of students does not matter:

8C3 = 8! / (3!5!)

= (8 × 7 × 6)/(3 × 2 × 1)

= 336/6

Answer: 56 committees

This assumes that any group of three students is permitted.

Combination Calculator With Repetition

Combinations with repetition allow the same type of object to be selected more than once, while order still does not matter.

For n available types and r selections, the number of possible multisets is:

C(n + r − 1, r)

Equivalently:

(n + r − 1)! / [r!(n − 1)!]

This formula applies when n ≥ 1 and r ≥ 0, and each type can be selected an unlimited number of times.

Worked Example

An ice cream shop offers four flavours.

A customer selects three scoops, and the same flavour may be selected more than once.

The order of scoops does not matter.

Here:

n = 4

r = 3

Number of combinations:

C(4 + 3 − 1, 3)

= C(6,3)

= 6!/(3!3!)

Answer: 20 combinations

If repetition were not allowed, the result would instead be:

4C3 = 4

The repetition rule changes the counting formula.

Combination Calculator vs Permutation Calculator

Combinations and permutations are related counting methods, but they answer different questions.

Combination Formula

When order does not matter:

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

Permutation Formula

When order matters:

nPr = n! / (n − r)!

Worked Comparison

Suppose five students are available and two are selected.

If the students are selected to form a two-person team:

5C2 = 10

If the students are assigned first and second place:

5P2 = 20

Therefore:

  • Combination: 10
  • Permutation: 20

The relationship between permutations and combinations is:

nPr = nCr × r!

Each unordered group of r distinct objects can be arranged in r! different orders.

Combination Calculator and the Symmetry Property

One of the most useful properties of combinations is:

nCr = nC(n − r)

This is called the symmetry property.

Worked Example

Calculate:

10C3

Using the formula:

10C3 = 120

By symmetry:

10C7 = 120

Therefore:

10C3 = 10C7 = 120

Selecting three objects from ten is equivalent to deciding which seven objects are excluded.

This property can simplify calculations involving large values of r.

Combination Calculator and Pascal’s Triangle

Pascal’s triangle is a triangular arrangement of binomial coefficients.

The first rows are:

1

1 1

1 2 1

1 3 3 1

1 4 6 4 1

1 5 10 10 5 1

Each interior entry equals the sum of the two entries directly above it.

The mathematical identity is:

C(n,r) = C(n − 1,r − 1) + C(n − 1,r)

for integers satisfying 1 ≤ r ≤ n − 1.

Worked Example

Calculate:

6C2

Using Pascal’s identity:

6C2 = 5C1 + 5C2

= 5 + 10

Answer: 15

Pascal’s triangle is useful for understanding combinations, recursive counting, and binomial coefficients.

Combination Calculator and the Binomial Theorem

Combination values are also called binomial coefficients because they appear in the binomial theorem.

For a non-negative integer n:

(a + b)ⁿ = Σ C(n,r)aⁿ⁻ʳbʳ

where the summation runs from r = 0 to n.

Worked Example

Expand:

(a + b)³

The relevant combination values are:

3C0 = 1

3C1 = 3

3C2 = 3

3C3 = 1

Therefore:

(a + b)³ = a³ + 3a²b + 3ab² + b³

The coefficients 1, 3, 3, 1 are obtained directly from combinations.

Combination Calculator for Probability Problems

Combinations are useful for counting favourable outcomes when order does not matter.

For equally likely outcomes:

P(A) = Favourable outcomes / Total possible outcomes

Worked Example: Drawing Cards

A standard deck contains 52 cards, including 13 hearts.

Two cards are drawn without replacement, and their order is ignored.

Find the probability that both cards are hearts.

Total possible two-card hands:

52C2 = 1,326

Favourable two-heart hands:

13C2 = 78

Therefore:

P(Both hearts) = 78/1326

= 1/17

Answer ≈ 5.8824%

This assumes all two-card hands are equally likely.

Combination Calculator for Selecting Teams

Suppose ten students are available, and a team of four must be selected.

The order of team members does not matter.

Number of teams:

10C4 = 10!/(4!6!)

= (10 × 9 × 8 × 7)/(4 × 3 × 2 × 1)

Answer: 210 teams

If team members are assigned distinct roles, the problem may instead require permutations or additional counting rules.

Combination Calculator for Multiple Groups

Some selection problems involve choosing objects from different categories.

Worked Example

A research team must include:

  • Two students selected from five structural engineering students.
  • One student selected from four geotechnical engineering students.

The number of possible groups is:

5C2 × 4C1

= 10 × 4

Answer: 40 groups

This assumes that every permitted selection from the first category can be paired with every permitted selection from the second category.

Combination Calculator for Engineering and Research

Combinations are useful in engineering when selecting subsets of objects, tests, sensors, or design alternatives without considering their order.

Experimental Test Selection

Suppose eight distinct experimental specimens are available, and three must be selected for testing.

The number of possible selections is:

8C3 = 56

This describes the number of mathematical selections, not necessarily the number of statistically appropriate experimental designs.

Structural Health Monitoring

Suppose six candidate sensor locations are available, and three locations must be selected.

If order does not matter and there are no additional restrictions:

6C3 = 20

There are 20 possible location subsets.

Actual sensor placement should also consider structural response, observability, installation constraints, and monitoring objectives.

Engineering Design Alternatives

Combinations can be used to count possible subsets of available design options.

However, engineering constraints may eliminate some mathematical combinations.

Construction Planning

Combinations can help count possible groups of workers.

 

Combination Calculator, Combination Calculator Online, Free Combination Calculator, nCr Calculator, n Choose r Calculator, Combination Formula Calculator, Combination Calculator with Steps, Combinations with Repetition