One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Permutation and Combination Calculator

Quick Answer

A permutation counts ordered selections: P(n, r) = n! ÷ (n − r)!. A combination counts unordered selections: C(n, r) = n! ÷ (r!(n − r)!). Choosing 3 from 10 gives 720 permutations but only 120 combinations, because each group of 3 can be ordered 3! = 6 ways.

Result

C(10, 3) = 120

Permutations P(10, 3)720
Combinations C(10, 3)120
Permutations with repetition1,000
Combinations with repetition220
Step-by-step calculation
  1. P(n, r) = n! ÷ (n − r)! = 720 (order matters)
  2. C(n, r) = n! ÷ (r! (n − r)!) = 120 (order does not matter)
  3. Repetition allowed: n^r = 1,000 ordered, and C(n + r − 1, r) = 220 unordered

About the Permutation and Combination Calculator

Enter the total number of items n and the number chosen r, and the calculator returns four counts: permutations and combinations without repetition, and the same two with repetition allowed. Use permutations when order matters (race finishes, passwords) and combinations when it does not (lottery numbers, committees).

The arithmetic is done with exact big integers, so large values such as C(1000, 500) are exact rather than rounded to floating point. Very long results are shown in scientific form with the digit count.

How to Use the Permutation and Combination Calculator

  1. Enter n, the total number of distinct items.
  2. Enter r, how many you pick.
  3. Use the tile that matches your problem: ordered or unordered, with or without repetition.

Formula and Method

Permutations

P(n, r) = n! ÷ (n − r)!

Order matters, no repetition.

Combinations

C(n, r) = n! ÷ (r!(n − r)!)

Order does not matter, no repetition.

With repetition

nʳ and C(n + r − 1, r)

Ordered and unordered selections when items can be reused.

Worked Example

Choosing 3 finalists from 10 people

Input: n = 10, r = 3

  • P(10, 3) = 10 × 9 × 8 = 720
  • C(10, 3) = 720 ÷ 3! = 720 ÷ 6 = 120

Result: 720 ways if first, second and third place are distinguished; 120 if only the group matters.

Frequently Asked Questions

What is the difference between a permutation and a combination?

A permutation counts arrangements where order matters; a combination counts selections where it does not. P(n, r) = C(n, r) × r!.

What is 0! (zero factorial)?

0! = 1 by definition, which makes C(n, 0) = 1 and C(n, n) = 1 consistent: there is one way to choose nothing and one way to choose everything.

When do I use repetition?

When an item can be chosen more than once, such as a 4-digit PIN (10⁴ = 10,000 ordered options) or picking scoops of ice cream from a few flavours.

How large can n be?

Up to 1,000 in this calculator. Larger values would produce numbers with thousands of digits.

Related Calculators

All Math & Statistics Calculators →

Sources and Further Reading

Accuracy and Scope

Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.