BYTETOOLS

Permutation & Combination Calculator: Real-World Use Cases

Permutations (nPr) and combinations (nCr) answer one everyday question in many disguises: how many ways can a group of things be arranged or chosen? From lottery tickets and PIN codes to sports rosters and seating plans, the same two formulas quietly power the numbers. Below are concrete scenarios, each worked out so you can reproduce it in seconds.

Where permutations and combinations show up

The rule of thumb decides which one you need: if reordering the same items counts as a new outcome, it is a permutation; if the group is the same no matter the order, it is a combination. Here are common situations and which side of that line they fall on.

ScenarioOrder matters?UseExample
6-number lottery drawNonCr49C6 = 13,983,816 tickets
4-digit PIN (no repeats)YesnPr10P4 = 5,040
Race podium (gold/silver/bronze)YesnPr8P3 = 336
Pizza toppings chosenNonCr10C3 = 120
Committee from a clubNonCr20C5 = 15,504
Seating people in a rowYesnPr6P6 = 720

Worked example: lottery and gambling odds

Imagine a 6-from-49 lottery. Because the order the balls come out does not matter, you want a combination. Enter n = 49 and r = 6 and the calculator returns 49C6 = 13,983,816. That single number is your odds of matching all six: about 1 in 14 million. Want the odds of matching five plus the bonus, or four numbers? You can build every prize tier from smaller nCr values, and the tool shows the factorial expression so a maths teacher can verify the working with a class.

Worked example: teams, rosters and schedules

A coach with 15 players choosing a starting 5 is a combination: 15C5 = 3,003 possible line-ups, because the five names are a set regardless of who is listed first. But assigning those five to five distinct positions is a permutation: 5P5 = 120 arrangements. Multiply them and you see why rotating a squad feels endless. League organisers use the same maths to count fixtures — a round-robin of 10 teams needs 10C2 = 45 unique matchups.

Worked example: passwords, tickets and IDs

Security and logistics lean heavily on permutations. A 4-character code drawn from 10 digits with no repeats gives 10P4 = 5,040 possibilities, while a raffle that hands numbered first, second and third prizes to 100 entrants has 100P3 = 970,200 ordered outcomes. Developers reach for nPr and nCr when estimating collision risk or the size of an ID space before committing to a scheme.

Everyday planning problems

Combinatorics is not just for exams. Picking 3 movies from a shortlist of 12 for a weekend (12C3 = 220), arranging 8 guests around a table, or deciding how many unique bouquets a florist can build from a bucket of flowers all reduce to the same two buttons. Because the calculator uses exact BigInt arithmetic, even large planning problems return precise counts rather than rounded scientific notation.

Try the Permutation & Combination Calculator — free and 100% in your browser.

FAQ

How do I calculate lottery odds with this tool?

Lottery draws ignore order, so use the combination result. Enter the pool size as n and the numbers drawn as r; for a 6-from-49 game that is n = 49, r = 6, giving 13,983,816 to one. If there is a separate bonus ball, calculate each prize tier as its own nCr and add them.

Should I use nPr or nCr for a seating arrangement?

Seating is about order, so it is a permutation. To seat r people in r chairs use nPr with n = r, which equals r factorial. Five people in five seats is 5P5 = 120 distinct arrangements.

How many ways can I pick a team of players?

Choosing the members of a team is a combination because the group is the same regardless of listing order. Use nCr with n as the squad size and r as the number selected. Assigning specific positions afterwards is a separate permutation step.

Can I use combinations to plan a menu or itinerary?

Yes. Any "choose r things from n options where order is irrelevant" question is a combination — dishes, movies, destinations or toppings. If the sequence matters, such as a tasting order, switch to the permutation result instead.

Related free tools

Built by ByteVancer

ByteTools is a free product of ByteVancer, a software and web development studio that builds web apps, SaaS platforms and custom software. If your team needs bespoke tools, calculators or a full product built to spec, explore what ByteVancer can create for you.