Calculators.Life Calculator
Math

nCr Combinations Calculator

Input Parameters

Scenarios
The total number of items in the set (must be a non-negative integer).
The number of items to select from the set without regard to order.

Computed Results

Combinations C(n, r)
1
Permutations P(n, r)3,628,800
Bits Required1

The ncr calculator determines the number of ways to choose a specific number of items from a larger set where the order of selection does not matter. Also known as a Combinations Calculator (nCr), it computes both combinations and permutations, helping you solve probability problems, lottery odds, and discrete mathematics exercises.

Practical Applications for Combinations

Combinations are used in mathematics and statistics whenever you need to group items and the sequence of those items is irrelevant. For example, drawing a hand of cards, selecting a committee from a group of people, or picking lottery numbers all rely on combinations. If the order of the items did matter—such as guessing a password or determining first, second, and third place in a race—you would use permutations instead.

The nCr Formula Explained

The mathematical formula for combinations calculates the total number of possible subsets of size r that can be drawn from a set of size n. The formula is written as:

C(n, r) = n! ÷ [r! × (n − r)!]

In this equation:

Alongside combinations, the calculator also evaluates Permutations P(n, r) using the formula n! ÷ (n − r)!. Additionally, it outputs the "Bits Required," which tells you how many binary bits a computer would need to store the resulting combination count.

Calculation Examples

Here are a few verified scenarios demonstrating how combinations scale based on the size of the set:

Frequently Asked Questions

What is the difference between combinations and permutations?

Combinations ignore the order of selection, meaning picking items A then B is the same as picking B then A. Permutations account for the order, meaning A then B is counted as a different outcome than B then A.

Why does the calculator return 0 when r is greater than n?

Mathematically, you cannot choose a subset that is larger than the total number of available items. If you have 10 items, you cannot select 15, so the number of possible combinations is zero.

What does "Bits Required" mean in the results?

Bits Required indicates the number of binary bits needed in computer science to store or represent the total number of combinations calculated.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.