Free Online Calculator

Permutation and Combination Calculator

Count arrangements and selections: nPr and nCr.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: nCr and nPr

nCr counts selections where order does not matter; nPr counts arrangements where it does. Choosing 3 from 10 gives 120 combinations or 720 permutations.

Overview of the Permutation and Combination Calculator

Permutations count the ways to arrange items when order matters; combinations count the ways to choose them when it does not. Enter n (total items) and r (items chosen) and the calculator returns nPr, nCr, the versions with repetition allowed, and n! and r!, using exact big-integer arithmetic so even C(100, 50) shows every digit.

Counting underlies probability — see the Probability Calculator — and appears in lotteries and passwords. Related: Big Number Calculator (factorials), Random Number Generator and Number Sequence Calculator.

How We Calculate

The calculator applies the standard method step by step.

  1. n! = n × (n − 1) × … × 1.
  2. Permutations: nPr = n! ÷ (n − r)!.
  3. Combinations: nCr = n! ÷ (r! (n − r)!).
  4. With repetition: permutations nʳ; combinations C(n + r − 1, r).
  5. All calculated with exact integers.
nPr = n! ÷ (n − r)!   nCr = n! ÷ (r! (n − r)!)
Worked example — permutation and combination calculator
ItemValue
Permutations nPr (order matters)720
Combinations nCr (order does not matter)120
Permutations with repetition (nʳ)1,000
Combinations with repetition C(n + r − 1, r)220
n!3,628,800
r!6
Formula check: nPr ÷ r! = nCrconfirmed
Combinations C(n, r)
CasenCr
n = 5, r = 210
n = 10, r = 3120
n = 20, r = 515,504
n = 52, r = 52,598,960
n = 100, r = 50100,891,344,545,564,193,334,812,497,256
Combinations C(n, r) — Pascal's triangle
nr = 0r = 1r = 2r = 3r = 4r = 5
01—————
111————
2121———
31331——
414641—
515101051
6161520156
71721353521
81828567056
9193684126126
1011045120210252

Permutation and Combination Calculator — Frequently Asked Questions

What is the difference between a permutation and a combination?

In a permutation order matters (ABC ≠ CBA); in a combination it does not.

How do I calculate nCr?

nCr = n! ÷ (r! × (n − r)!). C(5, 2) = 120 ÷ (2 × 6) = 10.

How many poker hands are there?

C(52, 5) = 2,598,960 five-card hands.

What is a factorial?

n! is the product of all positive integers up to n: 5! = 120. By definition 0! = 1.

What is a combination with repetition?

Choosing r items from n types when the same type can be chosen more than once: C(n + r − 1, r).

How is nCr related to the binomial theorem?

The coefficients of (a + b)ⁿ are the values nC0, nC1 … nCn — the rows of Pascal's triangle.

How is the permutation and combination calculator calculated?

It uses the standard method: nPr = n! ÷ (n − r)!   nCr = n! ÷ (r! (n − r)!) The full working and a worked example are shown on this page.

How accurate is this calculator?

Decimal results use standard double-precision arithmetic (about 15–16 significant digits). Tools that work with whole numbers — big numbers, factors, bases, combinations — use exact integer arithmetic, so no digits are lost.

Can I use it for homework or exams?

Yes for checking your work and learning the method. The steps and formula are shown so you can understand the answer, but follow your teacher's rules about calculators in exams.

Is my data stored?

No. Everything is calculated in your browser and nothing you enter is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

3 + 8 =
Call WhatsApp