Combinations & Permutations

Exact nCr and nPr counts with or without repetition. Inputs: 0 to 10,000; displays exact results up to 1,000 digits.

Count combinations and permutations

A combination counts selections when order does not matter. A permutation counts arrangements when order matters. Choose whether an item can be used more than once to match your problem.

Calculate nCr and nPr

Enter whole numbers from 0 to 10,000. Exact counts with more than 1,000 digits are not displayed.

How many distinct items or types are available?

How many items are chosen, or how many positions are filled?

Can an item be selected more than once?

Repetition changes the counting model and formulas for both results.

Your results

Combinations (nCr)

Order does not matter.

C(10, 3) = 10! / (3! × 7!)

120

Permutations (nPr)

Order matters.

P(10, 3) = 10! / (7)!

720

Check: nPr = nCr × r! because each selected group can be arranged in r! orders.

Try an example

Formulas and how they work

Let n be the number of distinct item types and r the number selected or positions filled. Without repetition, r cannot be greater than n. With repetition, an item can be used again.

Without repetition

Combination: nCr = n! / (r! × (n − r)!). Order is ignored.

Permutation: nPr = n! / (n − r)!. Order creates a different arrangement.

With repetition

Combination: C(n + r − 1, r), when n is greater than zero. Order is ignored.

Permutation: n^r. Each of the r positions can use any of n item types.

For example, choosing 2 people from 5 gives 5C2 = 10 groups and 5P2 = 20 ordered pairs. If the 5 item types can repeat, the counts become C(6, 2) = 15 combinations and 5² = 25 permutations.

Calculator features

  • Compare exact nCr and nPr counts with or without repetition.
  • Check whole-number inputs and see clear limits instead of rounded answers.
  • Copy both counts with the input values and selected assumptions.
  • Use examples to switch the inputs and repetition setting together.
  • Calculations run in this browser; entered values are not sent to a calculator service.

Frequently asked questions

What is the difference between nCr and nPr?

nCr counts groups where order does not matter. nPr counts arrangements where changing the order creates a different result.

When should I allow repetition?

Allow repetition when an item type can be selected again, such as a digit appearing more than once in a PIN. Leave it off when each available item can be used at most once.

Can r be greater than n?

Without repetition, no: there are not enough distinct items. With repetition, it is valid because the same type can be used more than once.

What happens when r is zero?

There is exactly one way to choose or arrange nothing, so nC0 and nP0 are both 1. This follows the convention 0! = 1.

Why might a count not be displayed?

Inputs are limited to whole numbers from 0 to 10,000, and a count with more than 1,000 digits is hidden to keep the page responsive and readable. The calculator never rounds or shortens an exact count.

Infinio Tools
© 2026 Infinio Labs