Combination and Permutation Calculator

Enter the total number of items (n) and how many you choose (r) to see combinations and permutations, with and without repetition, all at once.

  • Runs on your device
  • Keyboard-first
  • Free, no sign-up

Result

—

Combinations (order doesn’t matter)
—
Permutations (order matters)
—
Combinations with repetition
—
Permutations with repetition
—

Calculated on your device. Nothing you type is sent anywhere.

Cite
APA: Mr. Behairy. (2026). Combination & Permutation Calculator. Anubis Calc. https://calculatoranubis.com/en/combination-calculator
MLA: Mr. Behairy. "Combination & Permutation Calculator." Anubis Calc, 2026, https://calculatoranubis.com/en/combination-calculator.
Embed

Copy this snippet to embed this calculator on your site or blog for free:

<iframe src="https://calculatoranubis.com/en/embed/combination-calculator" width="100%" height="520" style="border:0;border-radius:18px" loading="lazy" title="Combination & Permutation Calculator"></iframe>
<p><a href="https://calculatoranubis.com/en/combination-calculator" rel="noopener">Combination & Permutation Calculator — Anubis Calc</a></p>

How it works

Combinations and permutations both count the ways to choose items. One question decides which you need: does order matter? Picking 3 people for a committee — order doesn’t matter, so it is a combination. Picking a president, vice-president and treasurer — order matters, so it is a permutation. The calculator returns all four cases as exact whole numbers, even when the answer runs to dozens of digits.

combinations: C(n, r) = n! ÷ (r! (n − r)!) permutations: P(n, r) = n! ÷ (n − r)! with repetition: C(n + r − 1, r)  ·  nʳ

Worked examples. Choosing 3 from 10 people: combinations (a committee) = 10! ÷ (3! × 7!) = 120; permutations (three ranked roles) = 10 × 9 × 8 = 720. With repetition: 220 combinations and 10³ = 1,000 permutations (a 3-digit code). A 6-from-49 lottery has 13,983,816 combinations, and a 5-card poker hand from 52 cards has 2,598,960.

Which one do I need?

TypeOrder matters?Repeats allowed?Example
Combination nCrNoNoChoosing a 5-player team
Permutation nPrYesNoGold, silver and bronze in a race
Combination with repetitionNoYesBuying 4 donuts from 6 flavours
Permutation with repetitionYesYesA 4-digit PIN: 10,000 options

Factorials

n! is the product of every whole number from 1 to n: 5! = 120. By convention 0! = 1. Factorials explode quickly — 20! is about 2.4 quintillion — which is why ordinary calculators overflow while this one keeps every digit.

Useful identities

  • C(n, r) = C(n, n − r): choosing 3 of 10 is the same as leaving out 7.
  • C(n, 0) = C(n, n) = 1 and C(n, 1) = n.
  • P(n, r) = C(n, r) × r!, because each group can be ordered r! ways.
  • Without repetition, if r > n the answer is 0.

From counting to probability

Probability = favourable outcomes ÷ total outcomes. The chance of a flush (five cards of one suit) is 4 × C(13, 5) ÷ C(52, 5) = 5,148 ÷ 2,598,960 ≈ 0.198%. The chance of winning a 6/49 lottery with one ticket is 1 in 13,983,816.

Convert probabilities to percentages with the percentage calculator, work with fractions in the fraction calculator, and for normal-distribution probabilities use the z-score calculator.

Sources & assumptions

n and r are whole numbers from 0 to 1,000; exact big-integer arithmetic; very long results are shortened with scientific notation.

Reviewed by: Mr. Behairy (Accountant, Financial Auditor & Tax Specialist) · Editorial policy · Formulas reviewed:

Frequently asked questions

What is the difference between a combination and a permutation?

In a permutation order matters (ABC ≠ CBA); in a combination it doesn’t (ABC = CBA).

What is the combination formula?

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

What is the permutation formula?

P(n, r) = n! ÷ (n − r)!. For example P(5, 2) = 5 × 4 = 20.

How many 4-digit PINs are there?

10⁴ = 10,000, because order matters and digits can repeat.

Why is 0! equal to 1?

There is exactly one way to arrange nothing, and it keeps the formulas correct when r = 0 or r = n.

How do I find nCr on a calculator?

On most scientific calculators: n, then the nCr key (often Shift + ÷), then r. For very large numbers use this tool.