Mathematics calculator

Combination Calculator

Count selections of r distinct objects from n objects when selection order does not matter.

Calculator inputs

Enter your values

Unordered selections
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

What Is a Combination in Math?

A combination counts a group selected from distinct objects when order does not matter. Selecting the same four people in a different order still creates one group. The count is written C(n,r), often read as “n choose r.”

This combination calculator counts unordered selections without replacement for 0 ≤ r ≤ n ≤ 100. It reports the count and factorial notation. It does not assign roles, permit repeated selections, list the groups or turn the count into a probability.

How to Calculate n Choose r

  1. Enter the number of distinct available objects in Total objects n, from 0 through 100.
  2. Enter the group size in Objects selected r, a whole number from 0 through n.
  3. Select Calculate. Read the combination count and substituted formula.
  4. Check that rearranging a group would not create a new outcome. If roles or positions differ, an ordered permutation model is more appropriate.

The implementation uses the symmetry C(n,r) = C(n,n−r) and an equivalent multiplicative calculation rather than constructing three large factorials separately. The displayed notation preserves your original r.

Results display as comma-grouped whole numbers. The mathematical answer is an integer, but the internal arithmetic is floating point, so a very large displayed count can lose final digits. No arbitrary-precision or generated-list feature is provided.

Combination Formula and Symmetry

C(n,r) = n!/[r!(n−r)!]

Symmetry: C(n,r) = C(n,n−r)

C(n,0) = C(n,n) = 1

Ordered comparison: P(n,r) = C(n,r) × r!

An ordered selection counts each group once for every possible internal ordering. Dividing the permutation count by r! removes those duplicate orderings and leaves the number of unordered groups.

Choosing r objects also identifies the n−r objects left out, which explains symmetry. Choosing none or choosing the entire available set each has one possible group. The empty set is one valid selection, not zero selections.

Reference: OpenStax: Counting Principles. Unordered selections, factorial formulas and their relationship to ordered permutations. Form limits, rounding and reporting conventions follow this calculator’s implementation.

Total Objects, Group Size and Selection Count

Total objects n
Distinct available objects, a whole number from 0 to 100.
Objects selected r
Unordered group size with 0 ≤ r ≤ n.
Number of combinations
Featured C(n,r), formatted as a whole number; large counts may have approximate final digits.
Notation
C(n,r) using the group size you entered, even if the internal calculation uses its symmetric complement.
Substituted formula
Factorial ratio showing n, r and n−r.
Order reminder
Selections with identical members count once, regardless of their order.

Combination Worked Example

Illustrative example. Choose an unordered group of 4 objects from 14 distinct objects.

C(14,4) = (14 × 13 × 12 × 11)/(4 × 3 × 2 × 1) = 24024/24 = 1001. The calculator displays 1,001.

Independently apply the counting recurrence: C(14,4) = C(13,4) + C(13,3) = 715 + 286 = 1001. Choosing the 10 objects left out also gives C(14,10) = 1001.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

Combination Worked Example
QuantityValue
Distinct available objects14
Unordered group size4
Ordered product24,024
Internal orders per group24
Combination count1,001
Recurrence check715 + 286 = 1,001

Why Complementary Group Sizes Have Equal Counts

Choosing a group uniquely identifies the objects excluded from it. That one-to-one pairing explains why choosing r and choosing n−r have the same count.

Symmetry reduces the number of factors needed in the numerical calculation, but the form keeps your original group size in its notation and input references.

Why Complementary Group Sizes Have Equal Counts
QuestionEquivalent questionCount
Choose 4 from 14Leave out 10 from 141,001
Choose 10 from 14Leave out 4 from 141,001
Choose noneLeave out all 141
Choose all 14Leave out none1

How to Interpret an Unordered Count

C(14,4) = 1001 means there are 1001 four-member groups from 14 distinct objects. It does not say that any one group has a particular probability unless you also specify the selection mechanism.

Selecting 10 objects from 14 gives the same count as selecting 4 because each selected group has a unique complementary excluded group. This equality concerns counts, not identical group sizes.

Combination formulas assume distinct objects and no replacement. Problems with repeated identical items, ordered roles or allowed reuse need a different count. Verify large totals with exact integer arithmetic if their last digits matter.

Common Combination Mistakes

  • Counting every internal ordering as a different group.
  • Using the formula when the same object can be selected repeatedly.
  • Treating identical objects as distinct without justification.
  • Entering fractional counts or r greater than n.
  • Assuming an empty selection has zero possibilities.
  • Reading a large floating-point-derived integer display as an exact count.

Frequently Asked Questions

When should I use combinations?

Use combinations for unordered groups of distinct objects selected without replacement. If internal roles or positions matter, use permutations instead.

What is the n choose r formula?

C(n,r) = n!/[r!(n−r)!], with nonnegative integers and r no greater than n.

Why do we divide by r factorial?

An ordered count includes every internal ordering of the same group. Dividing by r! counts each unordered group once.

Why does choosing r give the same count as choosing n−r?

Each selected group uniquely determines its excluded complement. This pairing gives C(n,r) = C(n,n−r).

What happens when r is zero or equals n?

The count is 1 in both cases. There is one empty group and one group containing the entire available set.

Does this form allow replacement or repeated identical items?

No. It assumes distinct available objects and selects each at most once. Reuse or identical-object models require different formulas.

Does a combination count give a probability?

No. A probability also needs a selection mechanism or a sample space with appropriate equally likely outcomes.

Are the large counts exact integers?

The mathematical result is an integer, but this implementation uses floating-point arithmetic. Large formatted counts can have approximate final digits; use an exact method when needed.

Sources and References