Combination Calculator

Calculate combinations C(n,r) without repetition and with repetition, featuring Pascal's triangle visualization and step-by-step solutions

Check Combination Calculator

Try:

About This Tool

Calculator Task Context

Use this calculator when selecting items where order does not matter, such as committees, hands, groups, or subsets.

Formula And Method Used

The calculator uses C(n,r) = n! / (r!(n-r)!) and supports repetition with C(n+r-1,r) when items can be chosen more than once.

Worked Example

  1. For choosing 3 people from 10, C(10,3) = 10! / (3!*7!).
  2. That simplifies to 120 unordered groups.

Common Mistakes And Limits

  • Use permutations when different orders count as different outcomes.
  • For combinations without repetition, r cannot exceed n.
  • Combination counts are exact integers even when intermediate factorials are large.

Related Calculators

Combination Calculator: Compute Unordered Selections with Standard and Repetition Modes

Our combination calculator provides two comprehensive modes for computing the number of ways to select items from a collection when the order of selection does not matter: a standard combination calculator that computes C(n,r) using the binomial coefficient formula n! divided by r! times (n-r)! for selections without replacement, and a combination with repetition calculator that computes C(n+r-1,r) for scenarios where items can be chosen more than once from the available types. Combinations differ from permutations in one critical way: in combinations, the order of the selected items does not matter, so choosing items A, B, C is considered the same selection as choosing B, C, A. Our calculator uses BigInt arithmetic to handle the extremely rapid growth of factorial values, ensuring exact integer results even for large inputs such as C(52,5) which equals 2,598,960 possible five-card poker hands. For computing ordered arrangements where the sequence matters, our Permutation Calculator provides P(n,r) computation with repetition and multiset modes along with tree visualization.

The Binomial Coefficient: Understanding C(n,r) and the Fundamental Counting Principle

The binomial coefficient C(n,r), pronounced "n choose r," is one of the most important quantities in discrete mathematics because it appears not only in counting problems but also in the binomial theorem, probability distributions, Pascal's triangle, and numerous algebraic identities. The formula C(n,r) equals n! divided by r! times (n-r)! can be derived from the permutation formula by recognizing that each combination of r items can be arranged in r! different orders. The symmetry property C(n,r) equals C(n,n-r) has an elegant combinatorial interpretation: choosing r items to include is equivalent to choosing n-r items to exclude. Pascal's triangle arranges the binomial coefficients in a triangular array where each entry equals the sum of the two entries directly above it, expressing the recurrence relation C(n,r) equals C(n-1,r-1) plus C(n-1,r). The binomial theorem states that (a+b) raised to the nth power equals the sum from k equals 0 to n of C(n,k) times a to the (n-k) times b to the k. For computing the probability of specific combinatorial outcomes, our Probability Calculator provides single event, multiple event, and conditional probability calculations with Venn diagram visualization.

Combinations with Repetition: Multiset Coefficients and Stars-and-Bars Counting

Combinations with repetition, also called multiset coefficients, count the number of ways to select r items from n types when each type can be chosen more than once, using the formula C(n+r-1,r). The classic example is choosing scoops of ice cream: if a shop offers 5 flavors and you want 3 scoops where you can repeat flavors, the number of distinct selections is C(7,3) equals 35. The mathematical foundation is the stars-and-bars theorem: distributing r identical items into n distinct categories is equivalent to arranging r stars and n-1 bars in a row, giving C(r+n-1,r) arrangements. Applications include distributing identical candies among children, counting non-negative integer solutions to equations, and counting monomials of a given degree. For statistical analysis of datasets arising from combinatorial sampling, our Statistics Calculator provides comprehensive descriptive statistics with box plot and histogram visualization.

Applications of Combinations in Probability, Lottery Analysis, and Everyday Counting Problems

Combinations have extensive practical applications across probability theory, gambling analysis, committee selection, and sports brackets. In lottery analysis, C(49,6) equals 13,983,816 possible tickets, so the probability of matching all 6 numbers is approximately 1 in 14 million. In poker, C(52,5) equals 2,598,960 possible five-card hands. Committee selection problems are classic combination applications: forming a 5-person committee from 20 candidates gives C(20,5) equals 15,504 ways. In genetics, combinations determine possible genotype configurations. In computer science, combinations appear in algorithm analysis where the number of k-element subsets determines search space size. For generating random numbers to simulate combinatorial experiments, our Random Number Generator provides customizable random number generation with multiple output formats.

Combination Calculator FAQ

Use standard C(n,r) when each selected item is distinct and can be chosen only once, such as card hands, committees, or lottery numbers. Use the repetition mode when you are selecting from types that may repeat, such as choosing several scoops from a flavor list. If r is greater than n in standard mode, the calculator reports an invalid state because a no-replacement selection cannot choose more items than exist.

The result is an unordered count. If order matters, compare it with the related P(n,r) value shown in the result panel or open the permutation calculator. For probability work, divide the number of favorable combinations by the total number of possible combinations for the same sample space.