Binomial Coefficient C(n,k) Calculator
Calculate the binomial coefficient C(n,k): the number of ways to choose k items from n, with no overflow. Key in probability and combinatorics.
C(n,k)
—
Binomial coefficient C(n,k)
The binomial coefficient C(n,k) = n! / (k! · (n−k)!) tells you how many ways there are to pick k elements out of a set of n when the order doesn't matter. Lay the coefficients out and you get Pascal's triangle, where every entry is the sum of the two sitting above it. Example: C(5,2) = 5! / (2! · 3!) = 120 / (2 · 6) = 10. A few identities come in handy: C(n,k) = C(n,n−k) (symmetry), C(n,0) = C(n,n) = 1, Σₖ C(n,k) = 2ⁿ (one full row of Pascal's triangle), and Σₖ C(n,k)² = C(2n,n) (Vandermonde). Newton's binomial theorem writes (a+b)ⁿ = Σₖ C(n,k) · a^(n−k) · bᵏ. When n gets large, you're better off computing the value step by step, multiplying and dividing as you go, instead of building out the full factorials.
Applications
C(n,k) shows up everywhere. It's the foundation of combinatorics (counting subsets), drives probability through the binomial distribution (k successes in n trials), and fixes the odds in lotteries (Mega-Sena has C(60,6) = 50.063.860 possible draws). You'll also meet it in subset enumeration algorithms and in polynomial expansion through Newton's binomial.
FAQ
What if k > n or k < 0? By convention C(n,k) = 0. You simply can't choose more elements than the set holds.
Order matters: should I use combination or permutation? Permutations P(n,k) = n!/(n−k)! count ordered arrangements, while C(n,k) = P(n,k)/k! strips the order back out. Lottery numbers use C, rankings use P.
How to compute C(n,k) without huge factorials? Reach for C(n,k) = (n · (n−1) · ... · (n−k+1)) / k!. That's only k terms, and you never have to materialise the whole n!.
Related Tools
Exact Binomial Test
Computes the exact binomial test, which checks whether the observed proportion of successes is compatible with a hypothesized probability, without resorting to the normal approximation. For small samples, where the z-test fails, this is the correct test: it sums the exact probabilities, given by the binomial distribution, of all outcomes as likely or less likely than the observed one. For example: are 8 heads in 10 tosses compatible with a fair coin? Enter the successes, the total and the hypothesized probability.
Block Coefficient (Cb)
Compute a ship's block coefficient (Cb), Cb = ∇/(L·B·T), the ratio of the displaced (carene) volume to the enclosing box (length × beam × draft). It measures how 'full' the hull is: slow cargo ships have a high Cb (~0.8); fast, fine vessels a low Cb (~0.5). It is one of the central parameters of naval architecture. Enter the displaced volume, the length, the beam and the draft.
Linear Equation Solver
Solve first-degree equations (ax + b = 0) instantly. Enter the coefficients and see the value of x with step-by-step solution.
Rainfall Runoff Coefficient by Area Calculator
Computes the weighted average rainfall runoff coefficient from the areas and partial coefficients of each surface type.
Steel Poisson Coefficient
Computes lateral strain from Poisson ratio and axial strain for a steel bar.
Drag Coefficient (Cd)
Compute drag coefficient Cd = 2F/(ρ·v²·A).
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.