Calculators.Life Calculator
Math

Permutation Calculator

Input Parameters

Scenarios
The total number of items in the set (n ≥ 0).
The number of items to select/arrange (0 ≤ r ≤ n).
Choose whether items can be repeated in the arrangement.

Computed Results

Total Permutations
60
Formula UsednPr = n! / (n - r)!
Combinations (nCr, without repetition)10

The permutation calculator determines the total number of ways to select and arrange a specific number of items from a larger set. It calculates permutations both with and without repetition, providing the exact formula used and comparing the result to combinations when applicable.

Practical Use Cases

Permutations are used whenever the order of selection matters. Common applications include determining the number of possible passwords or PIN codes, calculating seating arrangements, scheduling events, or analyzing probabilities in games and lotteries where the sequence of drawn numbers is important.

How to Use the Calculator

Follow these steps to calculate the number of possible arrangements:

  1. Enter the Total Number of Items (n) available in your set.
  2. Enter the Number of Items Taken (r), which is how many items you are selecting and arranging.
  3. Select whether to Allow Repetition. Choose "yes" if an item can be selected more than once (like digits in a PIN), or "no" if each item can only be used once.

The calculator will display the total permutations, the formula applied, and the corresponding number of combinations (if repetition is not allowed). A visual chart also compares permutations versus combinations.

Formula & Explanation

The calculator uses two distinct formulas depending on whether repetition is allowed.

Without Repetition

When items cannot be repeated, the number of permutations is calculated using factorials:

nPr = n! ÷ (n − r)!

Where n is the total number of items, r is the number of items taken, and ! denotes a factorial (the product of an integer and all the integers below it).

With Repetition

When items can be selected multiple times, the formula simplifies to an exponent:

P_rep(n, r) = n^r

Verified Scenario Walkthroughs

Here are examples of how the calculator processes different inputs:

Small Set with Repetition Allowed

If you have 4 total items and select 2, allowing repetition:

Standard Lottery Style Selection

If you select 6 numbers from a pool of 49 without repetition:

Large Set Permutation Calculation

Selecting 10 items from a set of 100 without repetition yields massive results:

Invalid Selection

If you attempt to select more items than are available (e.g., taking 15 items from a set of 10) without repetition, the result is 0 permutations and 0 combinations.

Inputs & Outputs Table

FieldTypeDescription
Total Number of Items (n)InputThe total number of items in the set (n ≥ 0).
Number of Items Taken (r)InputThe number of items to select/arrange (0 ≤ r ≤ n).
Allow Repetition?InputChoose whether items can be repeated in the arrangement.
Total PermutationsOutputThe total number of possible arrangements.
Formula UsedOutputThe specific mathematical formula applied based on your inputs.
Combinations (nCr, without repetition)OutputThe number of combinations (where order does not matter), provided only when repetition is not allowed.

Frequently Asked Questions

What is the difference between a permutation and a combination?

In a permutation, the order of the selected items matters (e.g., a PIN code where 123 is different from 321). In a combination, the order does not matter (e.g., a hand of cards where the sequence you received them is irrelevant).

What happens if I try to select more items than are available?

If repetition is not allowed, you cannot select more items than exist in the total set (r cannot be greater than n). The calculator will return 0 permutations. If repetition is allowed, you can select more items than the total set size.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.