Math July 13, 2026 · 8 Min Read

Permutation Calculator – Guide & Formulas

Calculate permutations (nPr) where order matters. Supports selections with and without repetition.

Try the free calculator

Put these formulas into practice with our instant, step-by-step Permutation Calculator.

Open Calculator ›

Free online **permutation calculator** — **calculate permutations (nPr)** instantly with step-by-step results. Our **nPr calculator** helps you find how many ways to arrange and order items from a group where **order does matter**. Whether you need to **calculate permutations** for lottery odds, password combinations, seating arrangements, or probability problems, this tool provides accurate results with detailed explanations.

Key Takeaway

Use the free Permutation Calculator to calculate permutations (npr) where order matters. supports selections with and without repetition. Get instant results with step-by-step explanations.

How to Use the Permutation Calculator

  1. Enter the total number of items in the set (n) in the first field.
  2. Enter the number of items to select and arrange (r) in the second field.
  3. Toggle repetition mode if selecting items multiple times.
  4. Review the step-by-step **permutation formula** breakdown and final arrangements count.
  5. Copy or share your permutation results.

The Formula

nPr = n! / (n - r)!

Variable Definitions

  • n: Total number of items in the set
  • r: Number of items to select and arrange
  • nPr: The number of unique ordered permutations — also written as P(n,r)
  • n!: n factorial — the product of all positive integers up to n
  • (n-r)!: The factorial of the difference between n and r

Creating a 3-Digit Lock Combination

Find the number of ways to create a 3-digit passcode from the numbers 0 to 9, where digits cannot repeat.

  1. Step 1: Set n = 10 (total digits available) and r = 3 (passcode length).
  2. Step 2: Apply the permutation formula: P(10, 3) = 10! / (10 - 3)! = 10! / 7!.
  3. Step 3: Calculate 10! / 7! = 10 × 9 × 8 = 720.
  4. Step 4: There are 720 unique permutations — 720 different possible 3-digit passcodes.
  5. Step 5: The probability of guessing the correct code is 1 in 720 (approximately 0.139%).

Financial Advisory Notice

This calculator is for educational and informational purposes. Results should be verified for critical applications such as cryptographic password strength analysis.

Frequently Asked Questions

What is a permutation calculator?

A permutation calculator computes the number of ways to arrange and order items from a group where order matters. Our nPr calculator uses the permutation formula P(n,r) = n! / (n-r)! to give instant results with step-by-step explanations.

How do I calculate permutations?

To calculate permutations, use the formula nPr = n! / (n - r)!, where n is the total items and r is the number arranged. For example, P(10,3) = 720. Our online permutation calculator does this automatically with detailed steps.

What is the difference between permutations and combinations?

In permutations, order matters — AB and BA are different. In combinations, order does not matter — {A,B} equals {B,A}. Use our permutation calculator for ordered arrangements, or our combination calculator for unordered selections.

What is the permutation formula?

The permutation formula is P(n,r) = n! / (n-r)!, also written as nPr. This counts the number of ways to arrange r items selected from a set of n items where the order of selection matters.

What is a permutation with repetition?

When repetition is allowed, the formula simplifies to n^r, because each of the r choices has n available options. For example, a 4-digit PIN where digits can repeat gives 10^4 = 10,000 permutations.

What are permutations used for?

Permutations are used in cryptography (password strength), probability (lottery odds), scheduling (race finishing orders), genetics (gene sequencing), and anywhere the order of selection matters.

Is this permutation calculator free?

Yes, this free permutation calculator is 100% free with no signup required. Calculate nPr permutations online with step-by-step results instantly.

Can r be larger than n in a permutation?

No. Without repetition, you cannot select more items than you have in the pool. Therefore, r must be less than or equal to n. With repetition allowed, r can exceed n.

What does nPr mean?

nPr stands for "n permutations of r" or "n taken r at a time." It represents the number of ways to arrange r items chosen from a set of n distinct items where order matters.

What is 5P3?

5P3 = 5! / (5-3)! = 5! / 2! = 60. There are 60 unique ways to arrange 3 items selected from a group of 5. Our nPr calculator computes this instantly.

How many permutations of 4 letters from the alphabet?

P(26, 4) = 26! / 22! = 26 × 25 × 24 × 23 = 358,800 permutations. Our permutation calculator with steps shows the full calculation.

What is 0 factorial?

0! = 1 by mathematical convention. This ensures the permutation formula works correctly for edge cases, such as when r = n (all items selected).

How do permutations relate to the binomial theorem?

Permutations count ordered arrangements while combinations count unordered ones. The relationship is P(n,r) = C(n,r) × r!, where C(n,r) is the binomial coefficient.

What is a circular permutation?

In circular permutations, arrangements that can be rotated into each other are considered the same. The formula is (n-1)!, which accounts for rotational equivalence.

What is a permutation of a multiset?

When items repeat, the formula becomes n! / (n1! × n2! × ... × nk!), where n1, n2, etc. are the counts of each repeated item. This avoids counting duplicate arrangements.

How does repetition affect permutation count?

With repetition, each position has n choices regardless of previous selections, giving n^r total permutations. Without repetition, each position has progressively fewer choices.

What is the maximum nPr value this calculator handles?

This calculator handles values up to n = 170, beyond which JavaScript floating-point arithmetic reaches infinity. Results for large values are displayed in scientific notation.

Can I use letters instead of numbers?

Yes! The permutation formula works regardless of what the items represent. Whether arranging letters, digits, objects, or people, the mathematical calculation is identical.

How many permutations of 3 items from 7?

P(7,3) = 7! / 4! = 7 × 6 × 5 = 210 permutations. This means there are 210 different ordered arrangements of 3 items selected from 7.

What is a derangement?

A derangement is a permutation where no element appears in its original position. The number of derangements of n items is !n = n! × Σ((-1)^k / k!) for k = 0 to n.

How do permutations apply to probability?

Permutations help calculate the number of favorable outcomes in probability problems where order matters. For example, the probability of drawing 3 specific cards in order is 1/P(52,3).

What is the relationship between P(n,r) and C(n,r)?

P(n,r) = C(n,r) × r!. This means permutations equal combinations multiplied by the number of ways to arrange the selected items. Permutations always produce larger values.

What is the permutation calculator formula in plain English?

The permutation formula says: multiply n × (n-1) × (n-2) × ... × (n-r+1). This gives you the number of ways to fill r positions with n available items where order matters.