Permutation and Combination Calculator

Count permutations (order matters) or combinations (order does not), with or without repetition, as an exact whole number. Handles n up to 10,000.

Results

Combinations C(n, r)
120
Exact value
120

How it’s calculated

Use permutations when the order of the chosen items matters (a podium of 1st, 2nd and 3rd place) and combinations when it does not (a committee of 3 people). Results are computed exactly with big integers, so even enormous counts have no rounding error.

Without repetitionWith repetition
Permutationsn! ÷ (n − r)!nʳ
Combinationsn! ÷ (r! × (n − r)!)(n + r − 1)! ÷ (r! × (n − 1)!)

Example: choose 3 people from 10 for a committee (combinations, no repetition) = 10! ÷ (3! × 7!) = 10 × 9 × 8 ÷ 6 = 120. If the 3 people take distinct roles (permutations), it is 10 × 9 × 8 = 720.

Frequently asked questions

What is the difference between a permutation and a combination?

In a permutation the order matters (ABC and CBA are different). In a combination it does not (ABC and CBA are the same group). So there are always at least as many permutations as combinations.

When do I allow repetition?

When the same item can be picked more than once, for example the digits of a PIN code (permutations with repetition: 10⁴ = 10,000) or scoops of ice cream from a set of flavors.

What is 0! and what is C(n, 0)?

0! is defined as 1, and there is exactly one way to choose nothing, so C(n, 0) = P(n, 0) = 1.

Why is a big result shown as 1.23457 × 10ᵏ?

Counts grow very quickly. Results too large for a normal number are written out in full (with commas) up to 60 digits, and in scientific notation beyond that.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator