Skip to content
BestCalculators LogoBestCalculators
Free online calculators and converters

Education & Grades

Permutation and Combination Calculator: nPr and nCr

Work out combinations and permutations together, with and without repetition, so you can see which one your question is actually asking for.

The pool. Above 170 the factorials stop fitting in a computer’s number, which is a real limit rather than an arbitrary one.

Picking more than the pool holds gives zero, because there is genuinely no way to do it.

Combinations — order does not matter

13,983,816

Choosing 6 from 49 when the order is irrelevant. There are 10,068,347,520 permutations of the same choice, which is 720 times as many.

Permutations — order matters
10,068,347,520

Always the larger of the two, because every combination can be shuffled into several different orders and each one counts separately.

How many orderings each combination has
720

Exactly r factorial. Dividing the permutations by this is what turns them into combinations — that is the whole difference between the two.

Combinations with repetition allowed
25,827,165

When you can pick the same thing twice — scoops of ice cream, coins from a jar. Larger than plain combinations, because repeats add cases rather than removing them.

Permutations with repetition allowed
13,841,287,201

Simply n to the power of r. This is the one that counts PIN codes and passwords, where each position is independent of the others.

Chance of one specific combination
0.00000715%

One ticket against every possible draw. Buying a second ticket doubles a number this small and still leaves it this small.

Stated as one in
13,983,816

The form odds are usually quoted in, and the reason a 6-from-49 draw is so hard to win.

n factorial
608,281,864,034,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000

Every possible ordering of the entire pool. It grows faster than almost anything else in mathematics.

r factorial
720
Combinations of the ones you leave behind
13,983,816

Identical to the answer above. Choosing 6 from 49 is the same act as choosing which 43 to reject, which is a useful shortcut when r is large.

Total subsets of the pool
562,949,953,421,000

Every item is either in or out, so it is 2 to the power of n. Summing the combinations across every possible r gives exactly this.

How to use this calculator

  1. Enter the total pool size into the 'How many things to choose from' field, keeping in mind that values above 170 exceed standard numeric limits.
  2. Enter the selection size into the 'How many you pick' field, ensuring it does not exceed your pool size to avoid a zero result.
  3. Review the primary **permutation and combination calculator** results to see both ordered and unordered arrangements instantly.
  4. Examine the advanced metrics, including factorials, repetition scenarios, and the odds of selecting one specific combination.

Understanding the Permutation and Combination Calculator

When you need to figure out how many ways a set of items can be arranged or selected, a reliable permutation and combination calculator saves you from manual arithmetic errors. Counting possibilities forms the bedrock of probability theory, statistics, and everyday decision-making, yet the formulas quickly become unmanageable by hand. Whether you are organizing a tournament, selecting committee members, or analyzing a lottery draw, distinguishing between different grouping rules determines whether your answer is correct.

The fundamental difference between these two mathematical concepts lies entirely in whether sequence matters. If you draw three cards from a deck and the order in which they leave your hand changes the outcome, you are dealing with permutations. If you hold those same three cards in your hand and their arrangement makes no difference to your final hand, you are counting combinations. Using a dedicated permutation and combination calculator ensures you apply the correct mathematical lens to your specific grouping problem without second-guessing the equations.

The Core Maths: nCr, nPr, and Factorials

At the heart of every combinatorial calculation are factorials, represented by an exclamation mark. A factorial, such as n!, multiplies every whole number from one down to that integer. Because these numbers grow astronomically fast, standard computing limits cap inputs at 170 because larger factorials exceed floating-point memory capabilities. When evaluating a standard ncr calculator output, you are computing n! ÷ (r! × (n − r)!), which strips away duplicate groups generated by different internal orderings.

Conversely, evaluating an npr calculator skips the division by r!, resulting in a much larger number because every distinct sequence is counted separately. The relationship between them is straightforward: an nPr value is simply the corresponding nCr value multiplied by r!. This multiplier represents the exact number of internal orderings each unique combination possesses, bridging the gap between ordered arrangements and unordered selections.

Real-world counting problems frequently introduce variations like repetition or complementary groupings. When items can be chosen more than once, the pool effectively expands. A standard factorial calculator function handles individual components, but compound scenarios require specific adjustments like pow(n, r) for ordered selections with replacement. Meanwhile, the number of subsets left behind always mirrors the choices you made, demonstrated by the identity where choosing r items is mathematically identical to leaving n - r items behind.

Another hidden calculation performed behind the scenes is the total power set of the pool, expressed as 2^n. This figure represents every possible subset that can be formed from your initial pool, regardless of size. When calculating the exact odds of hitting one specific winning combination, the tool converts your total combinations into a percentage and a formatted fraction expressed as 'one in nCr', providing clear context for games of chance or risk analysis.

Reference Guide for Common Inputs

To understand how pool sizes and selection counts impact your final output, reference the table below. It highlights how rapidly combinations and permutations scale as you increase your input variables, demonstrating why manual calculation becomes impractical beyond very small numbers.

Pool Size (n)Selection (r)Combinations (nCr)Permutations (nPr)
1024590
10525230,240
2031,1406,840
5021,2252,450

Common Pitfalls and How to Avoid Them

The single most frequent mistake in combinatorial math is misjudging whether sequence truly matters to the question being asked. Treating an ordered seating arrangement as an unordered committee selection will undercount your results by a factor of r!. Always re-read your problem statement and ask yourself: if the first two items swapped places, would the real-world outcome be different? If yes, you need a permutation; if no, you need a combination.

Another error involves inputting a selection size that exceeds your available pool. Mathematically, picking more items than exist yields a result of zero because there is genuinely no way to physically complete the task. Ensure your pool size matches your physical constraints before relying on the output for academic assignments, lottery analysis, or professional logistics planning.

The formula

nCr = n! ÷ (r! × (n − r)!) order does not matternPr = n! ÷ (n − r)! order mattersnPr = nCr × r! the ratio between themwith repetition: C(n+r−1, r) and nʳ

Frequently asked questions

What is the difference between permutations and combinations?

The primary difference is whether the internal order of your selection matters. Permutations count every unique sequence as a separate outcome, while combinations treat groups with the exact same items as identical regardless of their sorting order.

Why does the calculation fail when my pool size is very large?

Computer processors face a hard mathematical limit when dealing with factorials that exceed standard floating-point memory. Once a pool size surpasses 170, the resulting factorials become too large for standard digital storage, triggering an overflow error.

How do I know if my problem allows repetition?

You have repetition when an item can be selected more than once during a single trial, such as rolling a die multiple times or entering a 4-digit PIN code. Standard combinations and permutations assume that once an item is picked, it is removed from the available pool.

What does the 'one in' probability metric mean?

The probability output translates your total number of unique combinations into a single chance ratio. For instance, a result of one in 252 means your chosen target represents exactly one specific outcome among 252 equally likely possibilities.

Can my selection size be larger than my total pool?

No, you cannot select more items than exist in your starting pool without replacement. Attempting to pick a larger sample size will correctly return a result of zero because the physical task is impossible.

Sources

Last reviewed . Results are for general guidance and are not professional advice.