Combinations and Permutations Calculator

Calculate ordered permutations or unordered combinations for n items taken r at a time.

Free & Instant•Version: v1.0•Formula, examples and assumptions

Calculator InputsFormula v1.0

Calculated Output

P(n,r) = n!/(n-r)!; C(n,r) = n!/(r!(n-r)!)

Combinations

10
n5
r2
Order mattersNo
Instant Browser CalculationNo Server Logging

Formula and method

P(n,r) = n!/(n-r)!; C(n,r) = n!/(r!(n-r)!)

Inputs are non-negative integers with r no greater than n.

Variables

mode
Count type
n
Total items n
r
Items chosen r

Worked example

Choosing 2 items from 5 gives 10 combinations and 20 permutations.

Who this calculator is for

Students learning counting, probability, and discrete mathematics.

Complete guide to the combinations and permutations calculator

Every figure below comes from this calculator itself. The method is P(n,r) = n!/(n-r)!; C(n,r) = n!/(r!(n-r)!), applied to the tool's default inputs and then stress-tested one input at a time.

What the Combinations and Permutations Calculator works out

Combinations and Permutations Calculator answers one specific question: Calculate ordered permutations or unordered combinations for n items taken r at a time. It is written for students learning counting, probability, and discrete mathematics.

The method is P(n,r) = n!/(n-r)!; C(n,r) = n!/(r!(n-r)!). The inputs are Count type, Total items n, Items chosen r. With the default values - Count type = combinations, Total items n = 5, Items chosen r = 2 - the result is Combinations: 10. Changing Total items n alone leaves the headline result at 10, which tells you that another input is driving the answer. Confirm which quantity actually varies in your scenario before adjusting anything else.

Reading the result, line by line

Alongside 10 this method reports 3 supporting quantities: n: 5; r: 2; Order matters: No. Reading them side by side separates the effect of each assumption.

The worked example is: Choosing 2 items from 5 gives 10 combinations and 20 permutations. Use it to confirm the direction of the calculation before entering your own figures, and keep intermediate values unrounded until the final step.

How to interpret the answer

Inputs are non-negative integers with r no greater than n.

Applying that reading here: 10 alongside n of 5 describes one specific scenario, not a range of possibilities. Adjust the quantity that is genuinely uncertain in your case, then read both figures again.

The same formula can be run backwards: begin with the answer you need and solve for whichever input is under your control. Starting from 10 is the quickest way to see which lever matters.

Run one deliberately rough version of this calculation first; if 10 moves in the direction and by the order of magnitude you expect, the inputs were read as intended.

Common mistakes to avoid

Using permutations when order does not matter, such as choosing a committee rather than assigning roles. Entering r greater than n, which has no valid selection and must return zero.

Before you act on the result, re-read Count type, Total items n, Items chosen r and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Change Total items n deliberately and check that the result moves the way the formula predicts - here 10 should shift smoothly rather than jump.

Limitations and responsible use

Counts without replacement only; selections that allow repeats need the separate with-replacement formulas. Assumes all items are distinct, so duplicates require dividing out the repeated orderings.

All of the above holds only within those limits. You can retrace every step from the formula printed above; what cannot be checked from here is whether the inputs describe your situation accurately. For a consequential decision, verify the operative figures against a primary source before relying on the answer.

Frequently asked questions

How many ways can I choose 2 items from 5?

There are 10 combinations because order does not matter, and 20 permutations if the order does. The ratio is 2! = 2, which is why permutations exceed combinations wherever r exceeds one.

What does 5! mean?

Factorial 5 is 5 × 4 × 3 × 2 × 1 = 120, the number of ways to order five distinct items. Factorials appear in both formulas because they count arrangements.

Related Mathematics Calculators

Explore another calculator in this subject.