Combination Calculator

Created by Luis Hoyos
Last updated: Jun 29, 2022

This combination calculator, or nCr calculator, helps you calculate the number of combinations or permutations in a set (often denoted as nCr) and generates the list of every single possible combination or permutation (up to the length of 20 elements).

If you switch on the advanced mode of this combination calculator, you'll find the number of permutations.

If you still have doubts about the difference between permutation and combination, we'll explain it in the following article. You'll find the difference between those two terms and the nCr formula.

Combinations and permutations have many applications:

  • Have you wondered about your chances of winning the main prize in a lottery? How probable is winning the second prize? To answer both and other similar questions, you need to use combinations. Speaking of money, have you already seen the Harry Potter currency calculator, which shows how wizards paid in this Universum? It's worth checking for sure!
  • Physicists use permutation to predict theoretical material properties relevant to everyday life, such as the average velocity of gas particles, which is strongly related to the energy of those particles and, consequently, their temperature and density.

Difference between combination and permutation calculation

When studying statistics, we usually confuse combinations and permutations. Before using this calculator, we must know the difference.

  • Combination: Calculates the number of ways you can choose r elements out of a set containing n distinct objects, no matter the order. There are two types of combinations:
    • Combinations with repetition.
    • Combinations without repetition.
  • Permutation: Like combinations, it calculates the number of ways you can choose r elements out of a set containing n distinct objects but taking all the possible orders into account. Each possible ordering of the same group of elements accounts for an additional permutation. Similarly, there are two types of permutations:
    • Permutations with repetition.
    • Permutations without repetition.

As these definitions can be a bit confusing and a picture worth a thousand words, we created the following graphic, which describes perfectly these concepts and their differences.

Image describing through an example the combination and permutation concepts.

nCr formulas to calculate combinations and permutations

The following table contains the formulas to calculate the number of combinations and permutations. The exclamation mark stands for the factorial, which you can calculate with our exclamation point calculator, or simply, factorial calculator.

Arrangement type

Formula

Combination

Without repetition

C(n,r)=n!r!(nr)!C(n,r) = \frac{n!}{r!(n-r)!}

With repetition

C(n,r)=(r+n1)!r!(n1)!C'(n,r) = \frac{(r+n-1)!}{r!(n-1)!}

Permutation

Without repetition

P(n,r)=n!(nr)!P(n,r) = \frac{n!}{(n-r)!}

With repetition

P(n,r)=nrP'(n,r) = n^r

In the previous formulas:

  • CC — Number of possible combinations without repetition;
  • CC' — Number of possible combinations with repetition;
  • PP — Number of possible permutations without repetition;
  • PP' — Number of possible permutations with repetition;
  • nn — Total number of objects;
  • rr — Sample size.
Luis Hoyos
Set of objects
Total number of objects n
Sample size r
Number of selections
Combinations
Combinations with repetitions
Permutation / Combination generator
Show
Combinations
People also viewed…

Exponential growth

Use this exponential growth calculator to determine the exponential increase (or decrease) in quantity over time, given the growth rate (or decay rate).

Schwarzschild radius

Discover the fundamental of black hole physics with our Schwarzschild radius calculator.

Tetrahedron volume

Obtain the volume of any regular tetrahedron with this tetrahedron volume calculator!
main background