🧮 Combinations & Binomial Coefficients

Compute combinations for large n and r, distribute identical items with stars-and-bars, and gauge lottery odds. The calculator uses BigInt for exact results when possible and a log-gamma approximation for extremely large values.

1. Standard Combination (n choose r)

Order does not matter, selections without replacement.

Combinations

2. Stars & Bars (Identical Items)

Distribute identical items into distinct bins (non-negative counts).

Ways to distribute

3. Lottery Odds (n choose r)

Estimate the chance of hitting a jackpot from a single ticket.

Total combinations

How to Use

  1. Select the calculator panel that matches your scenario: standard nCr, stars-and-bars, or lottery odds.
  2. Enter non-negative integers respecting the constraints (e.g., 0 ≤ r ≤ n for nCr, at least one bin for stars-and-bars).
  3. Press the relevant compute button to view exact or scientific-notation outputs. Messages will guide you if inputs are inconsistent.
  4. Reset individual sections when starting a fresh calculation to avoid accidental reuse of previous values.

Formula References

Related Probability Tools