All Over Tools logo
Tool Combiner
Analyze Tools Clean Tools Compare Tools Convert Tools Data Validation Extract Tools Format Tools Generate Tools Organize Tools Transform Tools
Image Tools Video Tools Audio Tools Subtitle Tools Font Tools
Analyze Tools Clean Tools Compress Tools Convert Tools Edit Tools Extract Tools Generate Tools Merge Tools Organize Tools Redact Tools Repair Tools Split Tools
Analyze Tools Clean Tools Compare Tools Convert Tools Extract Tools Generate Tools Merge Tools Transform Tools Validate Tools
Business Calculators Construction Calculators Date And Time Calculators Education Calculators Financial Calculators Food Calculators Health Calculators Math Calculators Science Calculators Sports Calculators Statistics Calculators
Blog About Us Contact Us

Combination Calculator

Find nCr - the number of ways to choose r items from a set of n items when the order of selection does not matter. Enter the total items and the number chosen, choose whether repetition is allowed, and review the formula and result.

Total size of the set you are choosing from. Whole number, 0 or greater.

How many items you select at once. Whole number, 0 or greater.

n and r are treated as plain counts of items - the calculator does not attach a unit. If your items represent a real quantity (people, products, cards, etc.), just count them consistently; the result is a pure number of ways, not a currency, weight, or other measured unit.

How to use the combination calculator

  1. Enter a whole number in Number of items (n).
  2. Enter a whole number in Number chosen (r).
  3. Choose No repetition or Allow repetition.
  4. Click Calculate to show the result and the short Formula & steps list.
  5. Use Copy result or Download result (.txt) to save the output.
  6. Click Reset to clear both inputs, restore No repetition, hide errors, and hide the current result.

What the calculator calculates

The calculator computes combinations, written nCr or C(n, r). Order does not matter, so choosing A then B is the same selection as choosing B then A.

  • Number of items (n): a whole number from 0 through 10,000.
  • Number chosen (r): a whole number from 0 through 10,000.
  • No repetition: each item can be chosen at most once, and r cannot exceed n.
  • Allow repetition: the same item can be chosen more than once.

Formulas and edge cases

For No repetition, the formula is C(n, r) = n! / (r! × (n - r)!). For Allow repetition, it generally uses C(n + r - 1, r). If r = 0, the result is 1 in both modes. With Allow repetition, n = 0 and r > 0 returns 0. With No repetition, that input is rejected because r exceeds n.

The result panel shows a short Given, Formula, symmetry or edge-case, and final-result sequence. It does not list every loop calculation used internally.

Combinations versus permutations

Use combinations when order does not matter. Use permutations when different orders count as different outcomes.

Limits and copying results

Both fields must contain whole numbers from 0 through 10,000. Empty, non-numeric, or out-of-range values show an error instead of a result. With No repetition, r must not exceed n.

The arithmetic runs in the browser from the values you enter. The page also loads shared analytics scripts. Clipboard copying may fail in some environments; the tool can show Could not copy - select and copy manually. You can still use Download result (.txt).

Frequently Asked Questions

What is a combination in math?

A combination is a selection of items from a larger set where the order of selection does not matter. Choosing 3 people from a group of 10 for a committee is a combination, because the same 3 people form the same committee no matter what order they are picked in.

What is the formula for combinations (nCr)?

Without repetition, the formula is C(n, r) = n! / (r! × (n - r)!). With repetition, it is generally C(n + r - 1, r); r = 0 returns 1 in both modes. With Allow repetition, n = 0 and r > 0 returns 0; with No repetition, that input is rejected because r exceeds n.

What is the difference between a combination and a permutation?

A combination ignores order (choosing items A and B is the same as choosing B and A), while a permutation counts different orderings as distinct outcomes. Combinations are always less than or equal to the corresponding permutations for the same n and r.

What happens when r = 0 or n = 0?

The result is 1 when r = 0 in both modes. With Allow repetition, n = 0 and r > 0 returns 0 because no items are available. With No repetition, the same input is rejected because r exceeds n.

What input values are supported?

Number of items (n) and Number chosen (r) must be whole numbers from 0 through 10,000. With No repetition, r must be less than or equal to n.

Related Tools

4 views