Combination Calculator
Calculate combinations C(n,r) — the number of ways to choose r items from n items where order does not matter.
Quick Answer
C(n,r) = n! / (r! × (n−r)!). For example, C(5,2) = 5! / (2! × 3!) = 120 / (2 × 6) = 10 ways.
Enter Values
Results
About This Tool
The Combination Calculator computes C(n,r), also written as “n choose r” — the number of ways to select r items from a set of n items when the order of selection does not matter. This is one of the fundamental concepts in combinatorics and probability theory.
The Combination Formula
C(n,r) = n! / (r! × (n−r)!), where n! (n factorial) is the product of all positive integers up to n. The denominator removes duplicate arrangements because combinations treat (A,B) and (B,A) as the same selection. This is what distinguishes combinations from permutations, where order matters.
Combinations vs. Permutations
Combinations count groups. Permutations count arrangements. Choosing 3 people from 10 for a committee is a combination (C(10,3) = 120). Choosing a president, VP, and treasurer from 10 is a permutation (P(10,3) = 720). The permutation count is always larger because it treats each ordering as distinct.
Real-World Examples
Lottery odds use combinations. A 6/49 lottery has C(49,6) = 13,983,816 possible combinations. Poker hands use C(52,5) = 2,598,960. Sports brackets, sampling methods, and genetic combinations all rely on this formula. Understanding combinations helps you calculate probabilities and make better decisions.
Computational Limits
Factorials grow extremely fast. 170! is approximately 7.26 × 10^306, which is near the limit of JavaScript floating-point precision. For values of n above 170, the result overflows. This calculator handles values up to n = 170 accurately.
Frequently Asked Questions
What is C(n,r) in simple terms?
When do I use combinations instead of permutations?
What is the combination formula?
What does C(n,0) equal?
How are lottery odds calculated?
Was this tool helpful?