Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
page
Combinations calculator icon showing three overlapping circles

Combinations Calculator

Combinatorics

Combinations Calculator (nCr)

Try an example:
C(n, r) — combinations
10
P(n, r) permutations: 20
How it's calculated

Combinations count how many ways to choose r items from n when order doesn't matter, using n! ÷ (r! × (n−r)!).

Combinations count how many ways to choose r items from n when order doesn’t matter, from lottery odds to poker hand counts, this calculator computes both the combination and the related permutation count.

How to use this calculator

  1. Enter n (total items) and r (items chosen).
  2. Read C(n,r), the number of combinations, plus P(n,r), the number of permutations.

What this calculator does

Combinations count how many ways to choose r items from n when order doesn’t matter, using n! ÷ (r! × (n−r)!).

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

Why combinations and permutations give different numbers

Permutations count arrangements where order matters (ABC is different from BCA), while combinations count selections where order doesn’t matter (ABC and BCA are the same selection). Since every combination of r items can be arranged in r! different orders, the permutation count is always the combination count multiplied by r!, this calculator shows both so you can see that relationship directly.

Where combinations show up in practice

Lottery odds (choosing 6 numbers from 49, regardless of the order drawn), poker hand counts (choosing 5 cards from 52), and committee selection (choosing 3 people from 10) are all classic combination problems, included as quick-example presets in this calculator, since in each case the order of selection doesn’t change the outcome.

Frequently asked questions

What’s the difference between combinations and permutations?

Combinations count selections where order doesn’t matter, while permutations count arrangements where order does matter, for the same n and r, permutations will always be a larger number since it also accounts for every possible ordering.

Why are lottery odds calculated using combinations, not permutations?

Because the order the numbers are drawn in doesn’t matter for winning, only which numbers were drawn, this makes it a combinations problem rather than a permutations problem.