nCr

Combinations Calculator

How many ways to choose r items from n when the order does not matter, exactly.

Statistics & ProbabilityTop 100 · #62Runs in your browser

Result…

Repetition

 

…

How it's calculated

Without repetition: C(n, r) = n! ÷ (r! × (n − r)!)
With repetition: C(n + r − 1, r)

Combinations count selections where order does not matter: a poker hand, a lottery draw, a committee. The count is exact (whole-number arithmetic with no rounding); very large results are shown in scientific notation with the exact digits below when they fit. If order matters, use permutations.

Your numbers, step by step

    About the Combinations calculator

    This combinations calculator counts how many ways you can choose r items from n when the order does not matter: a poker hand, a lottery draw, a team picked from a squad, or toppings from a menu. Enter the number of items to choose from and how many are chosen, and say whether the same item can be picked more than once. It gives the exact count and the formula it used, C(n, r) without repetition or C(n + r − 1, r) with it. The count uses whole-number arithmetic with no rounding, so even C(100, 50) comes out to every digit. Very large results are shown in scientific notation, with the exact digits below when they fit. If the order of the items does matter, as with a race finish or a PIN, use the permutations calculator instead, and turn counts into chances with the probability calculator.

    How to use it

    1. Enter the “Items to choose from (n)”.
    2. Enter the “Items chosen (r)”.
    3. Under “Repetition”, choose “Not allowed” if each item can be picked once, or “Allowed” if it can repeat.
    4. Read the number of combinations and the formula used.

    Worked example

    Choosing 3 people from 10 can be done in C(10, 3) = 120 ways. If the same choice may repeat, there are C(10 + 3 − 1, 3) = 220. A 5-card hand from a 52-card deck has 2,598,960 possibilities, and picking 6 numbers from 49 has 13,983,816.

    Updated

    Questions people ask

    How do I calculate combinations?

    Use C(n, r) = n! ÷ (r! × (n − r)!). For 3 from 8, that is 8! ÷ (3! × 5!) = 56.

    What is the difference between combinations and permutations?

    Combinations ignore order and permutations count it. Choosing 3 from 10 gives 120 combinations but 720 permutations, since each group of 3 can be arranged 6 ways.

    What does nCr mean?

    It is shorthand for “n choose r”, the number of combinations of r items from n. Calculators often label the key nCr.

    When should I allow repetition?

    When the same item can be chosen again, like scoops of ice cream where two can be the same flavour. For people, cards or lottery balls, each can be chosen only once.

    Why can't r be bigger than n?

    Without repetition you cannot choose more items than exist, so the calculator stops there. With repetition allowed, r can be any size.

    More in Statistics & Probability