molecalculator

Moles & Molar Mass

nCr on a Calculator: Combinations Made Simple

Calculator No. 01-11771 · Updated · Formula and assumptions shown below

Number of combinations (nCr) 10
Total number of items, n
5
Set in the form below
Items selected, r
2
Set in the form below
You enter
Total number of items, n, Items selected, r
You get
Number of combinations (nCr)
Rounding
0 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Use nCr to find how many different groups of a chosen size can be selected from a larger set when order does not matter. Enter the total number of items, n, and the number selected, r; the calculator returns the combination count as a whole number.

Formula

The combinations formula is nCr = n! / (r! × (n − r)!). Here, n is the total number of distinct items available, r is the number selected, and the exclamation mark means factorial: n! is the product of the whole numbers from 1 through n. By convention, 0! = 1. The result is a count, so it has no physical unit.

The formula applies when the selection is made without replacement and the order of the selected items does not matter. In the calculator, ncr(n,r) evaluates this formula directly. The inputs must be whole numbers, with n ≥ 0 and 0 ≤ r ≤ n.

Worked Example

The defaults are n = 5 and r = 2. Substitute them into the formula:

5C2 = 5! / (2! × (5 − 2)!)

Evaluate the factorials: 5! = 120, 2! = 2, and 3! = 6. Therefore:

5C2 = 120 / (2 × 6) = 120 / 12 = 10

The calculator displays 10. For example, if the five items are A, B, C, D, and E, there are ten distinct pairs. A pair containing A and B is the same selection as a pair containing B and A.

Assumptions

  • All items are distinct and available for selection.
  • Each item can be selected no more than once.
  • Order does not matter; selections with the same members count once.
  • n and r are nonnegative whole numbers, and r cannot exceed n.

What You’ll Need

  • The total number of available items, called n.
  • The number of items to select, called r.
  • A calculator with an nCr or combination function, or the factorial formula if your calculator does not have that function.

Before entering values, decide whether the problem is really about combinations. If you are arranging objects in positions, assigning roles, or making a sequence where order changes the outcome, you need permutations instead. If items can be selected repeatedly, the standard nCr formula is not the right model without adjustment.

Step-by-Step

  1. Identify the complete set. Count how many distinct items are available and call that number n. For example, choosing from five different books gives n = 5. Do not count the same item twice.
  2. Identify the selection size. Count how many items the task asks you to choose and call that number r. Selecting two books gives r = 2.
  3. Check whether order matters. Ask whether swapping the selected items creates a genuinely different result. If choosing A then B is equivalent to choosing B then A, use nCr. If the order creates a different outcome, use nPr or another ordering method.
  4. Open the combination function. On a scientific calculator, look for a key labeled nCr, a probability menu, or a combination option. The exact key sequence varies. Some calculators place nCr above a key as a secondary function, so you may need to press a shift or function key first. Consult the calculator’s own key guide if needed.
  5. Enter n first. Type the total number of available items. Many calculators expect n before selecting nCr. For the example, enter 5.
  6. Select nCr and enter r. Press the combination function, then type the number being selected. In the example, enter 2, giving an expression like 5 nCr 2.
  7. Calculate and check the result. Press the equals or calculate key. The answer should be a nonnegative whole number. For 5 nCr 2, it is 10. If your calculator uses a different entry order, follow its displayed prompt or manual; the mathematical inputs remain n and r.
  8. Use the factorial formula when nCr is unavailable. Work out n!, r!, and (n − r)!, then divide n! by the product of the other two factorials. For large values, avoid writing enormous factorials by hand; use a calculator’s factorial key, a combination function, or a reliable calculator that evaluates nCr directly.
  9. Record what the answer counts. State the selection size and the assumption that order does not matter. This makes it clear whether the result describes groups, teams, sets, or another kind of selection.

Common Mistakes

  • Reversing n and r: n is the total available; r is the number selected. Some calculators accept the numbers in a particular order, so verify what the screen shows.
  • Using nCr when order matters: A committee of three is usually a combination. Assigning a president, treasurer, and secretary from three people is an arrangement because changing roles changes the outcome.
  • Choosing an impossible r: You cannot select more items than exist. If r > n, the input is invalid for ordinary combinations.
  • Entering a decimal or negative count: Standard combinations count selections of whole items. Use whole-number inputs with n ≥ 0 and 0 ≤ r ≤ n.
  • Using combinations for repeated selections: The basic formula assumes each item is chosen at most once. Repeatedly choosing the same type of item requires a different model.
  • Rounding or misreading a large answer: Combination counts are integers, but large results may appear in scientific notation on a calculator. Read the exponent carefully and do not round unless the task specifically calls for an approximation.

Tips

  • Use symmetry as a check: nCr equals nC(n − r). For example, 10C2 must equal 10C8. This is useful for catching an entry error.
  • Check the boundary cases: nC0 = 1 and nCn = 1 because there is exactly one way to select nothing or to select everything. Also, nC1 = n.
  • Estimate before calculating: For small cases, listing a few possible groups can help confirm whether an answer is plausible. Avoid listing every group when n is large.
  • Keep labels with the answer: Write “10 ways to choose 2 from 5,” not just “10,” especially when comparing results from more than one scenario.
  • Use an equivalent reduced calculation if working by hand: Factorials can cancel before multiplication. This reduces the chance of arithmetic errors and avoids unnecessarily large intermediate values.

Troubleshooting

If the calculator reports an error, first check that both inputs are whole numbers and that n is at least r. A negative value, a decimal count, or r greater than n is outside the standard formula’s valid inputs. If the displayed answer is a decimal, check that you selected nCr rather than a general division or statistical function.

If the calculator does not have an nCr key, look for a combinations option in its probability menu. Otherwise use n! / (r! × (n − r)!), remembering that 0! = 1. If factorials are too large for the display, use a calculator that evaluates combinations directly rather than calculating each factorial separately.

If your result differs from a written answer, verify whether that answer counts ordered arrangements, allows repeated choices, or treats identical items as indistinguishable. Those assumptions change the calculation. Also confirm that n and r were not swapped during entry.

Frequently Asked Questions

What does nCr mean?
It means the number of ways to select r items from n distinct items when order does not matter.

How do I type nCr on a calculator?
Usually enter n, choose the nCr function, enter r, and calculate. The precise key sequence depends on the calculator model.

What is the difference between nCr and nPr?
nCr counts unordered selections. nPr counts ordered arrangements, so changing the order creates a different outcome.

Can r be zero?
Yes. There is one way to select no items, so nC0 = 1 for any valid nonnegative n.

Why is 5C2 equal to 5C3?
Selecting two items to include is equivalent to deciding which three of the five items to leave out. In general, nCr = nC(n − r).

Does nCr allow the same item to be selected twice?
No. The standard formula assumes selection without replacement. A problem that permits repeats needs a different combinations formula.

Related

Formula used
in n | Total number of items, n | - | 5 | 0
in r | Items selected, r | - | 2 | 0
out ways | Number of combinations (nCr) | - | ncr(n,r) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →