Skip to content
MasterMath

Combination Calculator

How many ways to choose k items from n when the order does not matter. Choosing 6 from 49 gives the odds of a lottery ticket.

Possible combinations

—

Possible combinations—
The formula—
If order mattered—
Choosing who stays out—

How this was worked out

    The rule

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

    Why it works

    A combination counts selections where order is irrelevant. Start from the number of ordered selections and divide by k!, since every group of k items can be ordered in k! ways and all of those count as one.

    How to do it by hand

    1. Work out how many ordered selections there are
    2. Divide by k!, the number of ways to order each group
    3. The result counts each group exactly once
    4. Choosing k is the same as leaving out n − k

    What is worth knowing

    The default here, 6 from 49, is the standard lottery: 13,983,816 combinations, so one ticket has that chance of winning. The symmetry C(n,k) = C(n,n−k) is worth knowing because it halves the work — choosing 47 from 49 is the same count as choosing 2, and the second is far easier to compute. Combinations with repetition are a different formula and a different question: how many ways to pick k things from n types when you can take several of the same, which is the 'stars and bars' problem.

    Frequently asked questions

    What is the difference between a combination and a permutation?

    Order matters in a permutation and not in a combination. Every combination corresponds to k! permutations.

    What are the odds of a 6-from-49 lottery?

    There are 13,983,816 combinations, so one ticket has roughly a one in fourteen million chance.

    Why is choosing k the same as leaving out n−k?

    Because every choice of who is in determines who is out. The two counts are always equal.

    What are combinations with repetition?

    Choosing k items from n types where you can take several of the same. It is a different formula, sometimes called stars and bars.