Math calculators

Combination Calculator

Compute how many ways to choose r items from n when order does not matter (nCr).

nCr

120

What is Combination Calculator?

A combination calculator finds n choose r, written nCr: the number of ways to choose r distinct items from n distinct items when selection order does not matter and items are not repeated. Choosing people for a committee is a standard example because the same members form the same committee regardless of listing order.

The implementation truncates inputs to integers and requires 0 ≤ r ≤ n ≤ 1000. It uses a multiplicative formula rather than directly calculating large factorials, then rounds the numerical result to the nearest integer.

Why Use This Tool?

Combination counts grow rapidly, making manual enumeration impractical. The calculator supports counting problems and provides inputs for probability models when every eligible subset is equally likely.

The numeric answer alone does not establish equal likelihood, independence, or any probability assumption. It only counts unordered selections under the stated distinct-item, no-repetition model.

  • Count unordered selections.
  • Avoid direct full-factorial calculation.
  • Use symmetry between r and n − r.

How Does This Tool Work?

Enter the total number of available items as n and the number chosen as r. The algorithm uses k = min(r, n − r), then multiplies and divides through k terms.

Using the smaller side reduces work because choosing r included items uniquely determines the n − r excluded items. Inputs outside the allowed range return no result.

Understanding Your Results

The output is a count of distinct subsets. For n = 10 and r = 3, the result 120 means there are 120 different three-item groups, not 120 ordered sequences.

nC0 and nCn both equal 1. The result assumes all n items are distinguishable. If items are identical, repetition is allowed, or constraints apply, another counting model is needed.

Why Tracking This Matters

Distinguishing combinations from permutations prevents overcounting by a factor related to r!. Many probability errors begin by counting arrangements when only membership matters.

Large results can exceed JavaScript's exact-integer precision. The tool allows n through 1000, but a displayed finite number at large values may be rounded or eventually represented in exponential notation or become nonfinite.

Benefits of Using Combination Calculator

  • Unordered nCr counting
  • Multiplicative algorithm
  • Symmetry optimization
  • Range validation through n = 1000
  • Handles boundary selections
  • No probability assumptions added

How Is the Result Calculated?

The mathematical factorial formula is n!/[r!(n−r)!]. The implementation evaluates an equivalent product over the smaller of r and n−r, reducing unnecessary intermediate work.

nCr = n! ÷ (r! × (n − r)!), for integers 0 ≤ r ≤ n

n
The total number of distinct available items, truncated to an integer.
r
The number of distinct items selected, truncated to an integer.
!
Factorial: the product of positive integers down to 1.
  • Order does not matter.
  • Selections are modeled without replacement.
  • Items are assumed distinct for counting purposes.

Tips for Better Results

  • Use permutations when order changes the outcome.
  • Enter whole numbers and keep r no larger than n.
  • Verify whether repetition is allowed in the real problem.
  • Do not infer equal probability from counts alone.
  • Use arbitrary-precision software for exact huge counts.

Conclusion

The combination calculator counts unordered, no-repetition selections of distinct items with 0 ≤ r ≤ n ≤ 1000. Confirm that order truly does not matter and use a big-integer system when exactness for extremely large counts is essential.

Privacy & how it works

This calculator runs entirely in your browser with JavaScript. Your inputs are not uploaded to The ToolSphere servers for this tool. Privacy Policy · Disclaimer.

FAQ

When should I use a combination?expand_more

Use it when selecting r distinct items from n distinct items without repetition and when rearranging the selected items does not create a new outcome.

What is the difference between nCr and nPr?expand_more

nCr ignores order. nPr counts ordered arrangements. For valid inputs, nPr = nCr × r!.

Why is nC0 equal to 1?expand_more

There is exactly one way to select nothing: choose the empty set.

Why is nCr equal to nC(n−r)?expand_more

Every choice of r included items uniquely identifies the complementary set of n−r excluded items.

Can r be greater than n?expand_more

No. You cannot choose more distinct items than are available under this no-repetition model.

What happens if I enter decimals?expand_more

Inputs are truncated to integers. Enter whole numbers to make the intended counting problem clear.

Does nCr calculate probability?expand_more

No. It returns a count. A probability calculation additionally requires a valid sample space and assumptions about outcome likelihood.

Are very large answers exact?expand_more

Not always. JavaScript number precision is limited, so sufficiently large integer results can be rounded even within the accepted input range.

Is this calculator free to use?expand_more

Yes. You can use the calculator without creating an account or paying for its core calculation features.

Are my entries uploaded or saved?expand_more

No. The calculation runs in your browser, and the values you enter are not sent to The ToolSphere servers by this calculator.

Is this calculator free?expand_more

Yes. No signup required.

Are my numbers uploaded?expand_more

No. Calculations run in your browser. Inputs are not sent to The ToolSphere servers for this tool.

Suggest an improvement

Tell us what would make this tool more useful. We read every suggestion.

Feedback for: Combination Calculator