nPr Permutation Calculator

Find nPr — permutations of n items taken r at a time — with or without repetition, computed exactly using BigInt arithmetic.

nPr Permutations Without Repetition
Result
nPr
nPr

Enter n and r and click Calculate to see the result.

Guide

About the Permutation Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This free permutation calculator finds nPr — the number of ways to arrange r items chosen from a set of n, where the order of arrangement matters — with exact results computed using BigInt arithmetic, so even large factorials never lose precision to floating-point rounding. It also covers permutations with repetition allowed, where the same item can be reused across positions. Whether you're solving a probability homework problem, estimating a password's keyspace, or counting race-finish orderings, this permutation calculator with steps shows the exact factorial substitution behind every answer.

What This Calculator Measures

A permutation counts ordered arrangements: choosing r items out of n and arranging them in a specific sequence, where swapping the order of any two chosen items creates a distinct outcome. This calculator computes the "without repetition" case (nPr = n!/(n−r)!, the classic permutation formula) and the "with repetition" case (n^r, where items can repeat across positions).

Who Should Use This Calculator

Students and teachers working through combinatorics and probability coursework, computer scientists estimating password or key-space sizes, statisticians computing arrangement probabilities, event organizers counting seating or scheduling orders, and anyone who needs an exact — not approximate — count of ordered arrangements can use this tool.

Why Permutations Matter

Many real problems hinge on whether order matters. A race's first-second-third finish order, a PIN code, a book arrangement on a shelf, or a relay-team running order are all permutation problems, not combination problems, because rearranging the same items produces a genuinely different outcome. Getting this distinction right is essential for correct probability calculations.

Real-World Applications

Cryptographers estimate password and key-space sizes using permutation counts. Race organizers calculate the number of possible podium orderings. Schedulers count the ways to sequence tasks or appointments. Geneticists count possible DNA/RNA sequence orderings. Statisticians use permutations as the building block for many probability distribution formulas.

Tips for Accurate Results

  • Ask yourself "does swapping the order of two chosen items change the outcome?" — if yes, it's a permutation problem, not a combination.
  • Use "With Repetition" mode only when the same item can genuinely be reused (like digits in a PIN); use "Without Repetition" for cases like seating people or ranking finishers.
  • Remember r cannot exceed n in "Without Repetition" mode — you can't arrange more items than exist without reusing one.
  • For counting unordered selections instead, use the Combination Calculator.
Formula

The Permutation Formula, Explained

How this calculator counts ordered arrangements

Permutations Without Repetition
nPr = n! ÷ (n − r)!

Permutations With Repetition
nPr (with repetition) = n^r

Where:
n = the total number of distinct items available.
r = the number of items being chosen and arranged, in order.
n! = n factorial, the product of all positive integers from 1 up to n (with 0! defined as 1).
🔢

Order Matters

Permutations treat different orderings of the same items as distinct outcomes — ABC and BCA count as two separate permutations.

🔁

Repetition Changes Everything

Without repetition, each choice shrinks the pool by one; with repetition, every position has the full n choices again, giving the much larger n^r.

🎯

nPn = n!

When you arrange every item (r=n), the permutation formula reduces to the plain factorial, since (n−n)! = 0! = 1.

⚙️ Why This Formula Works

Filling r ordered positions one at a time without reuse gives n choices for the first position, (n−1) for the second, and so on down to (n−r+1) for the last position. Multiplying this shrinking sequence of choices together is exactly what n!/(n−r)! computes, since the factorial notation "cancels" everything from (n−r) downward.

🎯 When to Use Each Mode

  • Without Repetition: seating arrangements, race rankings, unique item ordering
  • With Repetition: PIN codes, license plates, any scenario where items can repeat

📋 Assumptions

  • n and r are non-negative integers
  • Without repetition mode requires r ≤ n
  • All n items are treated as distinguishable from one another

⚠️ Limitations

  • Does not handle permutations of a multiset with identical/indistinguishable items (a distinct formula applies there)
  • Undefined (and rejected) when r>n in without-repetition mode
  • Very large n can produce extremely large exact BigInt results that take a moment to compute and display
Walkthrough

Step-by-Step: How to Use the Permutation Calculator

From choosing a mode to reading the exact count

Choose repetition mode

Pick "Without Repetition" (the standard nPr case) or "With Repetition" depending on your problem.

Enter n and r

Type the total number of items (n) and how many you're arranging (r).

Click "Calculate"

The calculator applies the matching permutation formula instantly using exact BigInt arithmetic.

Read the result

See the exact permutation count, plus the factorial substitution used to reach it.

Verify the answer (optional)

For small n and r, manually list a few arrangements to spot-check the calculator's count.

Example

Worked Example

Arranging 3 runners on a podium out of 10 racers

Scenario

10 runners finish a race. In how many distinct orders can 3 of them fill 1st, 2nd, and 3rd place?

n10
r3
ModeWithout Repetition
Step 1 — Apply the formula: nPr = n! ÷ (n−r)! = 10! ÷ 7!.
Step 2 — Cancel the shared factorial terms: 10! ÷ 7! = 10 × 9 × 8.
Step 3 — Multiply: 10 × 9 × 8 = 720.
10P3
720

Explanation: There are 720 distinct ways to fill the podium, because swapping which runner takes 1st vs 2nd vs 3rd creates a genuinely different outcome. If repetition were somehow allowed (it isn't, in a real race), the count would instead be 10³ = 1000.

Interpretation

Understanding Your Permutation Result

What the result represents

ModeWhat the Result Means
Without RepetitionThe exact count of ordered arrangements of r items chosen from n, with no item reused
With RepetitionThe exact count of ordered arrangements of r positions where any of the n items can be reused

Typical ranges: permutation counts grow extremely fast (factorially or exponentially) as n and r increase — even modest values like n=20, r=10 produce results in the billions.

Manual verification: for small n and r, list out a handful of arrangements by hand and confirm the pattern matches the displayed factorial substitution.

Use Cases

Practical Use Cases for the Permutation Calculator

Where counting ordered arrangements matters

🎓

Combinatorics & probability homework

Check permutation word problems step by step, with the exact factorial shown.

🏁

Race & competition rankings

Count the number of possible podium or finishing-order outcomes.

🔐

Password & PIN strength

Estimate a keyspace size using permutations with repetition.

💻

Computer science & algorithms

Analyze the complexity of algorithms that enumerate orderings.

🧬

Genetics & bioinformatics

Count possible sequence orderings in DNA/RNA analysis.

📅

Scheduling & task ordering

Count the ways to sequence a fixed set of tasks or appointments.

🪑

Seating arrangements

Work out how many ways guests can be seated in a row of chairs.

🎲

Games & puzzles

Count possible card, tile, or piece orderings in games and puzzles.

📊

Statistics & data science

Use permutation counts as building blocks for probability calculations.

🎯

Standardized test prep

Practice the permutation problems common in SAT/GRE/GMAT quantitative sections.

📻

Coding theory

Analyze ordered symbol sequences in signal and coding theory.

🏆

Tournament bracket analysis

Count possible ordered outcomes for multi-round competitions.

Pros & Cons

Advantages and Limitations

What this permutation calculator does well, and where it doesn't apply

✅ Advantages

  • Free, instant, and requires no signup or account
  • Runs entirely in your browser — no data ever leaves your device
  • Covers both with-repetition and without-repetition permutation modes
  • Uses BigInt arithmetic for exact results, even with large n
  • Shows the factorial substitution behind every answer
  • Validates r ≤ n automatically in without-repetition mode
  • Removes manual factorial-cancellation errors
  • Fast-loading and fully mobile-friendly
  • Consistent, exact results every time
  • Useful across school, computer science, and statistics contexts
  • Free to use as many times as needed, with no calculation limit
  • Pairs directly with the dedicated Combination Calculator for unordered counts

⚠️ Limitations

  • Does not handle multiset permutations (repeated/indistinguishable items within the n items themselves)
  • Rejects r>n in without-repetition mode rather than guessing an answer
  • Requires non-negative whole-number inputs for n and r
  • Very large n can take a moment to compute and display the full exact digit count
  • Does not compute combinations (unordered selections) — a separate dedicated tool covers that
  • Assumes the user has correctly identified whether their problem is a permutation or a combination
Reference

Permutation vs Combination

The single question that tells them apart: does order matter?

ConceptOrder Matters?FormulaExample (n=10, r=3)
Permutation (nPr)Yesn!/(n−r)!720
Combination (nCr)Non!/(r!(n−r)!)120

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Using the permutation formula when the problem actually asks for an unordered selection (a combination)
  • Entering r>n in without-repetition mode and expecting a nonzero answer
  • Forgetting that permutations always overcount relative to combinations by a factor of r!
  • Confusing "with repetition" (items can reuse) with "without repetition" (items are used once)
  • Manually miscounting factorial cancellations for larger n

💡 Expert Tips & Best Practices

  • Ask "does swapping the order change the outcome?" — yes means permutation, no means combination
  • Use the Combination Calculator whenever order doesn't matter
  • Use the Factorial Calculator to verify the individual factorial values used here
  • For small n and r, sanity-check by listing a few arrangements by hand
  • Remember nPn always equals n! — a quick way to check the r=n edge case
📝

Summary: This permutation calculator gives you an instant, free, exact way to count ordered arrangements — with or without repetition — using BigInt-precision factorial math. Pair it with the Combination Calculator when order doesn't matter, and the Factorial Calculator to check the underlying factorial values.

FAQ

Frequently Asked Questions

Common questions about permutations

What is the permutation formula?
The permutation formula (without repetition) is nPr = n! / (n−r)!, where n is the total number of items and r is how many you're arranging in order. Example: 10P3 = 10!/(10−3)! = 10×9×8 = 720.
What does nPr mean?
nPr means "the number of permutations of n items taken r at a time" — the number of distinct ordered arrangements possible when choosing r items out of n and arranging them in sequence, with no item reused.
What is the difference between a permutation and a combination?
A permutation counts arrangements where order matters (ABC and BCA are different permutations), while a combination counts selections where order does not matter (ABC and BCA are the same combination). Permutations are always greater than or equal to combinations for the same n and r, since permutations count every ordering of each combination separately.
How do you calculate permutations with repetition allowed?
When repetition is allowed (the same item can be reused in different positions), the formula is simply n^r — n choices for each of the r positions, multiplied together. Example: choosing a 3-digit PIN from 10 digits with repeats allowed gives 10³ = 1000 possibilities.
Why do permutations without repetition use factorials?
Filling r positions one at a time without reusing an item, you have n choices for the first position, (n−1) for the second, (n−2) for the third, and so on down to (n−r+1) for the last — multiplying these together gives n!/(n−r)!, since the factorial notation is a compact way to write that shrinking product.
Can r be larger than n?
Not in the "without repetition" mode — you cannot arrange more items than exist without reusing one, so nPr is undefined (and this calculator rejects it) when r>n. In "with repetition" mode, r can be any positive value, since items can be reused.
How large can n and r be in this calculator?
This calculator uses JavaScript's BigInt type internally, so it computes exact factorials and permutation counts for large values of n without the rounding errors or overflow a standard floating-point calculation would hit — practical limits are set by your browser's memory and how long you're willing to wait for extremely large factorials.
What is 0! and why does it matter here?
0! is defined to equal 1 by convention. This matters because when r equals n, the permutation formula becomes n!/(n−n)! = n!/0! = n!/1 = n!, which correctly represents all possible full orderings of n items.
What is a real-world example of a permutation?
Arranging 3 books out of a shelf of 8 in a specific left-to-right order is a permutation problem: 8P3 = 8!/5! = 8×7×6 = 336 distinct arrangements, because swapping which book goes first, second, or third creates a genuinely different arrangement.
How do you calculate the number of ways to arrange all n items in a row?
When r equals n (arranging every item), the permutation formula simplifies to nPn = n!. Example: the number of ways to arrange all 5 books on a shelf is 5! = 120.
What happens if I enter 0 for n or r?
n=0 with r=0 is a valid edge case returning 1 (there is exactly one way to arrange zero items: do nothing). If n=0 but r>0 in without-repetition mode, the calculator correctly returns 0, since you cannot arrange any items from an empty set.
Can n or r be negative or a decimal?
No. Permutations are defined only for non-negative whole numbers, so this calculator requires n and r to be non-negative integers and will alert you if a negative number or a decimal value is entered.
How is a permutation different from a factorial?
A factorial (n!) is the number of ways to arrange ALL n items. A permutation (nPr) is the number of ways to arrange only r of the n items. When r=n, a permutation and a factorial give the same result, since nPn = n!.
Where are permutations used outside of math class?
Permutations show up in password and PIN strength analysis, race/competition ranking possibilities, scheduling and seating arrangements, DNA sequence analysis, cryptography key-space calculations, and any scenario where the order of a selection matters.
Learn More

Authoritative Resources on Permutations

Trusted educational references to go deeper on combinatorics

Related Calculators

Explore other statistics & probability tools