Permutation and Combination Calculator (nPr · nCr)

Enter n and r to get the permutation, combination, their repetition versions and the factorial at once.

🔒 Your input is never sent to a server. n and r are integers from 0 to 1000.

How to use

Enter integers for n and r and the results appear immediately. Permutations and combinations are calculated only when r ≤ n. Large numbers are computed exactly (no digit limit), and very large values also show their approximate size.

Formulas
  • Factorial n! = n × (n−1) × … × 2 × 1 (0! = 1)
  • Permutation ₙPᵣ = n! / (n−r)! — the number of ways to choose r items in order
  • Combination ₙCᵣ = n! / (r!(n−r)!) — the number of ways to choose r items without order
  • Permutation with repetition ₙΠᵣ = nʳ — arrange r items in order, repeats allowed
  • Combination with repetition ₙHᵣ = ₙ₊ᵣ₋₁Cᵣ — choose r items without order, repeats allowed
FAQ

How do I tell permutations from combinations?

If the order matters it is a permutation (lining up, passwords); if the order does not matter it is a combination (choosing representatives, a lottery).

How many outcomes does a 6/45 lottery have?

Enter n = 45 and r = 6 and the combination is 8,145,060.

Results are for reference only and accuracy is not guaranteed. Terms & disclaimer