Mathematics calculator

Binomial Coefficient Calculator

Count unordered selections of k distinct objects from n, without replacement. Review the large-count display limit before copying long integers.

Calculator inputs

Enter your values

Combinations

Large counts can lose final digits in the browser above 9,007,199,254,740,991. The server count for C(60,30) is exactly 118264581564861424; verify such counts with exact integer arithmetic.

Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

What Does n Choose k Mean?

The binomial coefficient C(n,k), read as “n choose k,” counts groups of k objects chosen from n distinct objects when order does not matter. Choosing the same four people in a different order still creates the same group.

Enter the total number of objects and the number selected. This calculator returns the combination count, factorial formula and symmetric choice n − k. It supports whole numbers with 0 ≤ k ≤ n ≤ 60. It does not count ordered arrangements or selections with replacement.

How to Calculate a Binomial Coefficient

  1. Enter the available number in Total objects n. Use an integer from 0 through 60.
  2. Enter the group size in Objects chosen k. It must be a whole number from 0 through n.
  3. Select Calculate and read the binomial coefficient. Check the displayed notation to confirm which total and group size you entered.
  4. Use the symmetric choice to compare C(n,k) with C(n,n − k). Both count the same selection decisions by recording what you include or leave out.

The server calculates with integer arithmetic. It uses the smaller of k and n − k to shorten the computation, multiplying and dividing at each step instead of forming the full factorials. Under the configured range and a 64-bit PHP runtime, the server can return the exact integer count.

Large-count display limit: the browser reads the response as an ordinary JavaScript number. Above 9,007,199,254,740,991, not every integer can be represented exactly, so final digits may change on screen. For example, C(60,30) is exactly 118264581564861424, but the current browser display can show 118264581564861420. Verify large counts with exact integer arithmetic before copying them.

Binomial Coefficient Formula

C(n,k) = n! ÷ [k! × (n − k)!]

m = min(k, n − k); start R = 1

For i = 1, …, m: R = R × (n − m + i) ÷ i

C(n,k) = C(n,n − k)

The factorial n! multiplies the positive integers from 1 through n, with 0! defined as 1. The denominator removes the repeated orderings of the chosen and unchosen objects. The iterative formula computes the same count without constructing large factorials first.

Each iteration gives an integer in exact arithmetic. In the binomial expansion of (a + b)ⁿ, C(n,k) is the coefficient of aⁿ⁻ᵏbᵏ. This tool returns one coefficient for the supplied n and k; it does not expand the entire polynomial.

Reference: NIST Digital Library of Mathematical Functions: Elementary Algebra. Binomial coefficient definitions and identities. Input limits, rounding rules and interface behavior described here come from this calculator’s implementation.

Total Objects, Chosen Objects and Results

Total objects n
Size of the distinct available set. Whole number from 0 to 60.
Objects chosen k
Number selected without replacement, from 0 through n. Selection order does not matter.
Binomial coefficient
Number of possible groups. The server returns an integer, but very large on-screen counts can lose final digits in the browser.
Notation C(n,k)
The exact input pair written as an n-choose-k expression.
Symmetric choice n − k
Number left out. Choosing this complement gives the same combination count.
Substituted formula
Factorial expression for the entered inputs. It explains the count rather than listing each combination.
n and k reference cards
Input references that help distinguish the full set from the selected group.

n Choose k Worked Example

Illustrative example. Choose four equal-role reviewers from twelve distinct people. A group remains the same however you list its members, so order does not matter.

Enter n = 12 and k = 4. Cancel the 8! factor to obtain C(12,4) = (12 × 11 × 10 × 9)/(4 × 3 × 2 × 1) = 11880/24 = 495 groups.

Check with the iterative method: R becomes 9, then 45, then 165, then 495. Choosing the eight people left out gives the same count, C(12,8) = 495. This example is small enough to display exactly in the browser.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

n Choose k Worked Example
QuantityValue
Total objects n12
Chosen objects k4
Ordered numerator12 × 11 × 10 × 9 = 11880
Repeated orderings per group4! = 24
Combination count495
Symmetric choice8

Combinations, Permutations and Binomial Coefficients

Ask whether swapping two chosen objects creates a different outcome. If it does, the outcome has an order or role assignment. If it does not, the outcome is an unordered group.

For the same twelve people, choosing four equal-role reviewers gives 495 groups. Filling four different roles gives 12 × 11 × 10 × 9 = 11880 ordered arrangements. The 24 orders within each four-person group explain the difference.

Combinations, Permutations and Binomial Coefficients
TaskOrder matters?Count or interpretation
Choose four of twelveNoC(12,4) = 495
Fill four distinct rolesYes12 × 11 × 10 × 9 = 11880
Choose eight to leave outNoC(12,8) = 495
Coefficient of a⁸b⁴ in (a+b)¹²Not a selection orderC(12,4) = 495
Choose four with replacementDifferent modelNot calculated by this form

How to Interpret a Combination Count

A count of 495 means 495 distinct groups fit the selection rule. It is not a probability and does not identify a preferred group. If every group is equally likely, the probability of one particular group would be 1/495, but that probability model is a separate assumption.

There is exactly one way to choose nothing and one way to choose the entire set: C(n,0) = C(n,n) = 1. Consequently, C(0,0) is 1 too. Choosing one object gives C(n,1) = n. These boundary cases are useful quick checks.

Use the result for unordered committees, test subsets or coefficients. If positions or roles differ, such as chair and secretary, order matters and you need a permutation count. If an object can be chosen repeatedly, this calculator’s selection model does not apply.

Common Combination Counting Mistakes

  • Using combinations when the same people in different roles should count separately.
  • Allowing repeated selections even though this model selects each object at most once.
  • Entering k greater than n or a fractional object count.
  • Reading the coefficient itself as a probability.
  • Dividing n by k instead of using the factorial formula.
  • Assuming every digit of a very large browser-displayed integer is exact.

Frequently Asked Questions

What does n choose k mean?

It counts unordered groups of k distinct objects taken from n distinct objects without replacement. It is also written C(n,k), nCk or nCr.

What is 12 choose 4?

C(12,4) = 12!/(4!8!) = 495. There are 495 different four-object groups from twelve distinct objects when order does not matter.

Why are C(n,k) and C(n,n − k) equal?

Every chosen k-object group determines exactly one group of n − k objects left out. Counting the included group or its complement counts the same decisions.

What is n choose zero?

C(n,0) = 1. There is one empty selection. Similarly, C(n,n) = 1 because there is one way to select the entire set, including C(0,0) = 1.

Should I use a combination or a permutation?

Use a combination when swapping chosen objects leaves the outcome unchanged. Use a permutation when order or distinct roles change the outcome. This form calculates combinations only.

Can n or k be negative or decimal?

No. The form requires whole numbers with 0 ≤ k ≤ n ≤ 60. Generalized binomial coefficients for other arguments are outside this calculator’s supported model.

Does the result give a probability?

No. It counts selections. A probability calculation also needs a sample space and a model for which selections are equally likely.

Is every displayed large combination count exact?

No. Although the server computes the supported integer count, the browser can lose final digits above its safe integer range. C(60,30) is exactly 118264581564861424; independently verify such large counts before using the on-screen digits.

Sources and References