N C R Calculator






nCr Calculator: Combinations Formula & Examples


nCr Calculator (Combinations)

Calculate the number of combinations (n choose r) from a set of ‘n’ items.


The total size of the set you are choosing from. Must be a non-negative integer.


The size of the subset you are choosing. Must be a non-negative integer and not greater than ‘n’.

Combinations Growth Chart

Visualization of how nCr changes for a fixed ‘n’ as ‘r’ increases.

What is an nCr Calculator?

An nCr calculator is a tool used to compute combinations. In mathematics, a combination refers to the number of ways you can choose a subset of ‘r’ items from a larger set of ‘n’ items, where the order of selection does not matter. It’s often read as “n choose r”. This concept is fundamental in probability and statistics. For instance, if you have a set of 5 fruits and you want to know how many different pairs of fruits you can pick, an nCr calculator can give you the answer instantly.

This differs from permutations, where the order of selection is important. For example, picking a president and a vice-president is a permutation, but picking two committee members is a combination. The nCr calculator specifically handles scenarios where the arrangement of the chosen items is irrelevant.

The nCr Calculator Formula and Explanation

The calculation is based on the standard combinations formula. The number of combinations, denoted as C(n, r), nCr, or (nr), is calculated as follows:

nCr = n! / (r! * (n – r)!)

This formula is essential for anyone needing to solve combination problems without manual counting. You can learn more about its applications with our Probability Calculator.

Variable Explanations
Variable Meaning Unit Typical Range
n The total number of distinct items in the set. Unitless (count) Any non-negative integer (0, 1, 2, …).
r The number of items to choose from the set. Unitless (count) An integer between 0 and n, inclusive (0 ≤ r ≤ n).
! The factorial operator (e.g., 5! = 5 * 4 * 3 * 2 * 1). N/A Applied to non-negative integers.
nCr The total number of possible combinations. Unitless (count) A non-negative integer.

Practical Examples

Example 1: Choosing a Project Team

Imagine you are a manager and need to select a team of 4 people from a group of 10 qualified employees. How many different teams can you form?

  • Inputs: n = 10, r = 4
  • Formula: 10C4 = 10! / (4! * (10-4)!) = 10! / (4! * 6!)
  • Result: 210. There are 210 different teams you can form.

Example 2: Lottery Combinations

In a lottery, you must pick 6 numbers from a total of 49. How many possible combinations of 6 numbers are there?

  • Inputs: n = 49, r = 6
  • Formula: 49C6 = 49! / (6! * (49-6)!) = 49! / (6! * 43!)
  • Result: 13,983,816. There are nearly 14 million possible combinations. This is a classic use case for an nCr calculator.

How to Use This nCr Calculator

Using our nCr calculator is straightforward. Follow these steps:

  1. Enter the Total Number of Items (n): In the first input field, type the total number of items in your set.
  2. Enter the Number of Items to Choose (r): In the second field, type the number of items you want to select for your subset.
  3. View the Result: The calculator automatically computes the result as you type. The primary result is displayed prominently, along with a breakdown of the factorial calculations used.
  4. Reset if Needed: Click the “Reset” button to clear the fields and start a new calculation.

To better understand factorials, you might find our Factorial Calculator helpful.

Key Factors That Affect nCr

The result of an nCr calculation is primarily affected by two factors:

  • The size of the total set (n): As ‘n’ increases, the number of possible combinations grows very rapidly.
  • The size of the subset (r): The value of nCr is symmetric. For a given ‘n’, the number of combinations is highest when ‘r’ is close to n/2. For example, 10C5 is larger than 10C1 or 10C9.
  • The difference between n and r: Since nCr = nC(n-r), choosing 2 items from 10 (10C2) is the same as choosing 8 items from 10 (10C8).
  • Whether order matters: If order matters, you would need a Permutation Calculator, as permutations (nPr) will yield a much higher number than combinations (nCr).
  • Whether repetitions are allowed: This calculator assumes no repetitions. If items can be chosen more than once, a different formula is required.
  • The values being non-negative integers: The concepts of ‘n’ and ‘r’ are only defined for non-negative integers in this context.

Frequently Asked Questions (FAQ)

1. What is the difference between combinations (nCr) and permutations (nPr)?

Combinations (nCr) are selections where order does not matter. Permutations (nPr) are selections where order does matter. For any given n and r (where r > 1), the number of permutations is always greater than the number of combinations.

2. What does ‘n choose r’ mean?

“n choose r” is just another way of saying nCr. It represents the number of ways to choose ‘r’ elements from a set of ‘n’ elements.

3. Can ‘r’ be greater than ‘n’?

No. If ‘r’ is greater than ‘n’, the number of combinations is 0, because you cannot choose more items than what are available in the set. Our nCr calculator handles this as an invalid input.

4. What is the value of nC0?

nC0 is always 1. There is only one way to choose zero items from a set: by choosing nothing.

5. What is the value of nCn?

nCn is also always 1. There is only one way to choose all ‘n’ items from a set of ‘n’ items: by choosing all of them.

6. Why is 0! (zero factorial) equal to 1?

By mathematical convention, 0! is defined as 1. This makes many mathematical formulas, including the nCr formula, work correctly for edge cases like nC0 and nCn.

7. When should I use an nCr calculator in real life?

Use it for any scenario where you need to find the number of possible groups and the order of selection doesn’t matter. Common applications include lottery odds, card games (like poker hands), committee selection, and menu combinations.

8. Can this calculator handle very large numbers?

The JavaScript used can handle numbers up to a certain limit (around 170! before becoming `Infinity`). For extremely large ‘n’ or ‘r’ values, the result may be shown as “Infinity” or an approximation may be needed. Our nCr calculator attempts to provide accurate results within standard browser capabilities.

© 2026 Your Website Name. All Rights Reserved.



Leave a Reply

Your email address will not be published. Required fields are marked *