OctalOne

Permutation Calculator

Calculate nPr (ordered arrangements) instantly. Explore interactive slot animations to understand why order matters, view step-by-step math, and solve challenge problems.

n ≥ 0
0Slider (0 - 20)20
r ≤ n
0Slider (0 - 5)5
Permutation Result (nPr)P(5, 3)
5P3 = 60
5 × 4 × 3 = 60
Try an Example

Interactive Visualizer — Why Order Matters

A permutation is an ordered arrangement. Swapping positions creates a completely new permutation!

Available Items (n = 5)Choose 3 to place in order
A
B
C
D
E
Placing into 3 ordered positions
Ordered Positions / Slots (r = 3)Order #1, #2, #3...
Slot 1
A
Item A → Position 1
Slot 2
B
Item B → Position 2
Slot 3
C
Item C → Position 3

Order Insight

Current arrangement: ABC

Tap Shuffle Positions above to generate a new ordered arrangement. In permutations, ABC ≠ BAC!

Permutation vs Combination

Understand when order matters and when it doesn't.

Permutation: ORDER MATTERS (ABC ≠ BAC)

In a permutation, changing the order of items creates a brand new outcome.

🔑 Safe PIN / PasswordPIN "1-2-3-4" will not open a lock set to "4-3-2-1". Order is critical.
🥇 Race PodiumFinishing Gold, Silver, Bronze is different from Silver, Gold, Bronze.

Quick Challenge: Can You Solve It?

4 runners enter a race. In how many different ways can the 1st, 2nd, and 3rd place podium spots be awarded?

Interesting Facts About Permutations

1. Permutations Grow Extremely Fast

Because nPr multiplies consecutive decreasing integers, values escalate dramatically. For example, 10P5 = 30,240, and 20P10 = 670,442,572,800!

What is a Permutation (nPr)?

In mathematics and combinatorics, a permutation is an ordered arrangement of a collection of distinct objects. The defining characteristic of a permutation is that the sequence or order matters.

  • Total Items ($n$): The total size of the set of available items.
  • Positions to Fill ($r$): The number of distinct spots or slots being filled ($0 \le r \le n$).
  • Order Matters: Selecting item A then B is completely distinct from selecting item B then A ($AB \ne BA$).
  • No Repetition: Once an item is placed in a position, it cannot be chosen for another slot in the same arrangement.

Real-World Examples Where Order Matters

Everyday scenarios that require calculating permutations:

  1. Athletic Races & Podiums: In an 8-runner race, awarding 1st, 2nd, and 3rd medals is $8P3 = 8 \times 7 \times 6 = 336$ possibilities.
  2. Security Passcodes & PINs: Entering digits "4-8-2-1" is different from "1-2-4-8".
  3. Class Officer Elections: Electing a President, Vice President, and Secretary from 10 candidates has $10P3 = 720$ distinct outcomes.
  4. Seating Arrangements: Arranging 5 dinner guests across 5 numbered chairs has $5P5 = 5! = 120$ possible seatings.

Understanding the Permutation Formula

The fundamental counting principle provides the basis for the permutation formula:

Step 1 · Slot 1 Choice

n Options

For the very first position, you have all $n$ items available to choose from.

Step 2 · Subsequent Slots

(n-1), (n-2)... Options

Each subsequent position has one fewer choice because items cannot be reused.

Step 3 · Falling Product

n × (n-1) × ... × (n-r+1)

Multiplying the choices for all $r$ slots yields the exact permutation count without needing giant factorials.

Reference Table of Common Permutations

Quick reference list of frequently calculated permutations for students, teachers, and exams.

3P13
= 3
3P23 × 2
= 6
3P33 × 2 × 1 (3!)
= 6
4P24 × 3
= 12
4P34 × 3 × 2
= 24
4P44! = 24
= 24
5P25 × 4
= 20
5P35 × 4 × 3
= 60
5P55! = 120
= 120
6P26 × 5
= 30
6P36 × 5 × 4
= 120
6P46 × 5 × 4 × 3
= 360
10P210 × 9
= 90
10P310 × 9 × 8
= 720
10P410 × 9 × 8 × 7
= 5,040

You might also like

Frequently Asked Questions

A permutation is an ordered arrangement of objects where the sequence or position matters. Given n total items, nPr calculates the number of unique ways to arrange r of those items into r distinct positions without repetition.

The key difference is whether order matters. In a permutation, changing the sequence creates a different outcome (e.g., PIN 1234 is distinct from 4321). In a combination, order does not matter and only the group members count (e.g., a hand of cards or a fruit salad).

The mathematical formula for permutations is P(n, r) = n! / (n - r)!, which simplifies to the falling product: n × (n - 1) × (n - 2) × ... × (n - r + 1). This multiplies r consecutive decreasing integers starting from n.

nP0 = 1 because there is mathematically exactly one way to arrange zero items into zero slots (the empty set). When r = n, you are arranging all items across all available positions, which equals n! (e.g., 5P5 = 5! = 120).

Yes, 100%. All permutation calculations, visualizer animations, and step evaluations happen directly inside your web browser using native BigInt arithmetic. No numbers or inputs are ever sent to any remote server.