Permutation and Combination Calculator

Math Tools

Permutation and Combination Calculator

Calculate nPr and nCr values for counting arrangements and selections.

Permutation and Combination Calculator

Calculate nPr and nCr values for counting arrangements and selections.

Permutation counts arrangements where order matters: nPr = n! / (n - r)!

Expression

5P2

Result

20

Recommended Study Tool

Working through probability and counting problems?

A scientific calculator or probability study guide can help with permutations, combinations, factorials, and exam-style counting questions.

View Study Tool

This section may contain affiliate links.

Rectangular banner showing a scientific calculator and probability notes

Permutation vs combination

Use permutations when order matters, such as ranking winners, arranging seats, or assigning positions. Use combinations when order does not matter, such as choosing a team, selecting a committee, or picking lottery numbers.

What is a permutation and combination calculator?

A permutation and combination calculator is a counting tool that helps you solve nPr and nCr problems quickly. It is useful when you want to know how many possible arrangements or selections can be made from a larger set of items.

In probability, statistics, combinatorics, exams, and everyday counting problems, these formulas appear often. Instead of working through factorial expressions by hand, you can enter n and r to get the result instantly.

Permutation and combination formulas

Permutation formula

nPr = n! / (n - r)!

Use this formula when order matters.

Combination formula

nCr = n! / (r! × (n - r)!)

Use this formula when order does not matter.

Worked examples for permutation calculations

These examples show how the selected counting method works.

ExpressionMeaningResult
5P2Arrange 2 items from 5 where order matters20
6P3Arrange 3 items from 6 where order matters120
10P2Arrange 2 items from 10 where order matters90

Permutation vs combination table

This comparison table shows how the results change when order matters versus when it does not.

nrnPrnCr
522010
6312020
724221
103720120

Which should you use: permutation or combination?

The simplest way to choose between permutation and combination is to ask whether changing the order creates a new outcome. If order changes the result, use permutation. If the same selected group counts once no matter how it is arranged, use combination.

SituationDoes order matter?Use
Ranking winnersYesPermutation
Choosing a committeeNoCombination
Arranging seatsYesPermutation
Selecting lottery numbersUsually noCombination
Creating ordered passwordsYesPermutation

How to calculate permutation and combination step by step

First, identify the total number of available items, which is n. Then identify how many items are being selected, which is r. The key question is whether order matters in the final result.

If order matters, use the permutation formula nPr. If order does not matter, use the combination formula nCr. This calculator applies the correct formula automatically after you choose the calculation type.

When to use permutations

Permutations are used when the arrangement itself matters. For example, if you are awarding first, second, and third place, the order of winners changes the outcome, so permutation is the correct method.

Other examples include arranging books on a shelf, setting passwords from selected characters, assigning seats, ranking contestants, or assigning different roles from the same group of people.

When to use combinations

Combinations are used when you only care which items are chosen, not the order in which they appear. For example, choosing 3 students for a committee uses combinations because the same group counts only once.

Other examples include selecting lottery numbers, choosing pizza toppings, forming a team, picking exam questions from a list, or choosing a subset from a larger group.

Permutation and combination calculator FAQ and common questions

What is the difference between permutation and combination?

A permutation counts arrangements where order matters, while a combination counts selections where order does not matter.

What is the formula for nPr?

The permutation formula is nPr = n! / (n - r)!. It is used when order matters.

What is the formula for nCr?

The combination formula is nCr = n! / (r! × (n - r)!). It is used when order does not matter.

When should I use permutation instead of combination?

Use permutation when changing the order creates a different outcome, such as ranks, positions, arrangements, or seatings.

Can r be greater than n?

No. You cannot choose more items than are available, so in standard nPr and nCr problems, r cannot be greater than n.