Use nCr when order does not matter
Use combinations for committees, lottery selections, unordered samples or feature sets chosen from distinct items. If first, second and third positions create different outcomes, use the nPr result instead. Repeated items and selections with replacement are outside this tool.
Exact formula and order check
For integers 0 ≤ r ≤ n, C(n,r) = n! ÷ (r!(n−r)!). The calculator multiplies and divides in a cancellation-safe integer sequence, so the displayed nCr and nPr values are exact rather than floating-point approximations. It also checks nPr = nCr × r! and C(n,r) = C(n,n−r).
Three independent checks
Choosing 2 from 5 gives 5×4÷(2×1) = 10 combinations and 20 ordered selections. Choosing 5 cards from 52 gives 2,598,960 combinations, while 52P5 = 311,875,200 because each hand has 5! = 120 orders. Choosing zero from 10 gives exactly one empty selection. Also C(10,3) = C(10,7) = 120.
Compare a different group size
The optional comparison answers a real planning question: how much does the search space change if a committee, sample or bundle contains one more or fewer item? Both counts and the reduced exact ratio are shown. Only the factor is rounded to the selected display precision.
Sources and calculation scope
Inputs must be whole numbers with n ≤ 1,000. Exact values can contain hundreds of digits, so long answers are condensed in the primary result and remain available under the exact check. Official definitions: NIST DLMF §1.2 and OpenStax Counting Principles. CALC LAB does not generate member lists or repetition cases.