---
slug: permutation-calculator
title: "Permutation Calculator"
category: math
updated: 2026-11-17
canonical: https://calcseed.com/c/math/permutation-calculator/
html: /c/math/permutation-calculator/
---

# Permutation Calculator

Calculate the number of ways to arrange r items chosen from n, order mattering. Free and instant.

## Quick answer

**Quick answer:** with the default inputs (10, 3), the permutations is **720**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| n (total items) | 10 |  |
| r (chosen) | 3 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Permutations | 720 |  |

## Formula

```text
P(n, r) = n! ÷ (n − r)!
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| n (total items) | number |  | 10 |
| r (chosen) | number |  | 3 |

## Outputs

| Result | Format |
| --- | --- |
| Permutations | primary |
| Permutations | number |

## How it works

### What this calculator does

Enter n items and how many r you want to line up, and the calculator counts the ordered arrangements. At the defaults, P(10, 3) = 720: three items chosen from ten fill 720 different orders, because who stands in which slot matters. The input allows n up to 170, beyond which the underlying factorial overflows standard arithmetic.

A permutation is a selection where order matters. Choosing three runners for a podium, three digits for a code, or three students for the first three seats all produce different outcomes for every different arrangement, even when the same people or digits are involved. The count multiplies the choices slot by slot: n ways to fill the first slot, n − 1 for the second, n − 2 for the third, and so on down to the r-th slot.

The factorial form arrives at the slot-product by dividing out the unchosen tail: 10! ÷ 7! cancels the factors 1 through 7 and leaves 10 × 9 × 8.

#### Fill the slots one at a time

Ten candidates compete for the first position, nine remain for the second, eight remain for the third, and the product is 720, exactly what the calculator reports. Each placement permanently removes one option, which is why the factors shrink and why the count is smaller than the 1,000 outcomes that independent choices would give.

### Permutation counts at a glance

| n | r | P(n, r) | What it counts |
| --- | --- | --- | --- |
| 10 | 3 | 720 | Podium orders from 10 runners |
| 10 | 4 | 5,040 | Four-digit codes from 10 digits |
| 5 | 2 | 20 | President and vice president pairs from 5 people |
| 7 | 7 | 5,040 | Full orderings of 7 items |
| 26 | 3 | 15,600 | Three-letter codes without repeats |
| 10 | 0 | 1 | The empty arrangement |

Two rows reward attention. When r equals n, the count collapses to plain n factorial — seven items arrange in 7! = 5,040 orders. When r equals 0, the count is 1 because there is exactly one way to choose nothing. Note that four-digit codes without repeated digits give 10 × 9 × 8 × 7 = 5,040, not the 10,000 that repetition would allow.

### Permutation versus combination

The pair differ only in whether order counts. From 10 people, P(10, 3) = 720 counts every podium ordering, while the combination C(10, 3) = 120 counts only which three people make the group. The ratio between them is 3! = 6, the number of internal orders each group of three can take, and 120 × 6 = 720. Use permutations for rankings, codes, seats and schedules; use combinations for teams, committees, hands of cards and pizza topping choices.

#### A concrete comparison

Suppose five applicants compete for three ranked interview slots, with nobody holding more than one. The number of ranked slates is P(5, 3) = 5 × 4 × 3 = 60. The unranked version, just choosing three of five to advance, is C(5, 3) = 10, and ranking only the top two from five is P(5, 2) = 20. Same pool, three different questions, three different answers — deciding which question you are asking matters more than the arithmetic.

### Where permutations matter in 2026

Security estimates use permutations constantly. A four-digit PIN without repeated digits has P(10, 4) = 5,040 possibilities; allowing repeats doubles that to 10,000. Six-character passwords from 26 letters without repeats have P(26, 6) = 26 × 25 × 24 × 23 × 22 × 21 = 165,765,600 orderings, and every added character multiplies the count by roughly 20. That collapse-resistant growth is the entire argument for longer passphrases.

Scheduling and rankings run the same math. Nine players fill a batting order in 9! = 362,880 ways, a teacher assigning 5 presentations to 5 time slots has 120 schedules, and award ceremonies arrange medal standings with the same podium logic. Any question phrased as first, second and third, or slot A, B and C, is a permutation in disguise.

### Common mistakes

- Using permutations when order does not matter; committees call for combinations, which divide by r!
- Computing n! ÷ (n − r)! with the wrong subtraction; P(10, 3) divides by 7!, not by 3!
- Setting r larger than n; the calculator caps r at n, and P(3, 5) has no meaning
- Forgetting that 0! = 1 when r = 0, which is why P(n, 0) = 1 rather than 0
- Allowing repeats silently; once an item is used, the next slot has one fewer choice

### Sanity checks with small cases

The fastest self-check is a case small enough to list by hand. P(3, 2) should give 3 × 2 = 6, and the six orders of A, B and C taken two at a time are AB, BA, AC, CA, BC and CB. If a formula produces anything other than 6 on that test, the slots are being filled in the wrong order.

A second check compares against the full factorial. Since P(10, 3) is a piece of 10! = 3,628,800, the answer 720 must divide it evenly, and indeed 3,628,800 ÷ 720 = 5,040, which is itself 10 × 9 × 8 × 7. Results that fail a divisibility spot-check like this usually point to a swapped subtraction inside the factorial denominator.

## FAQ

### How do I calculate P(10, 3)?

Multiply the slot choices: 10 × 9 × 8 = 720. Equivalently, 10! ÷ 7! cancels the shared factors and leaves the same product.

### What is P(n, n)?

It equals n factorial, since arranging all n items is the full definition. P(7, 7) = 7! = 5,040.

### When do I use permutation instead of combination?

When order matters. Rankings, PINs, seating charts and race finishes are permutations; teams, committees and card hands are combinations. P(10, 3) = 720 while C(10, 3) = 120.

### How many 4-digit codes have no repeated digits?

P(10, 4) = 10 × 9 × 8 × 7 = 5,040. Allowing repeated digits raises the count to 10,000, exactly twice as many.

### Why does P(n, 0) equal 1?

There is exactly one way to arrange nothing: the empty arrangement. The formula agrees, because n! ÷ n! = 1 and 0! = 1 by definition.

### What is the difference between P(5, 3) and C(5, 3)?

P(5, 3) = 60 counts ranked orderings of three from five; C(5, 3) = 10 counts unranked selections. The ratio is 3! = 6, the internal orders of each trio.

### How does r affect the count?

Each extra slot multiplies by the next smaller factor. Going from P(10, 3) = 720 to P(10, 4) multiplies by 7, reaching 5,040, and P(10, 5) multiplies by 6 more to reach 30,240.

### Why does the calculator stop at n = 170?

The formula uses factorials, and 170 factorial is the largest value standard arithmetic can represent, at about 7.26 × 10&#8306;&#8307;&#8308;. Beyond that the intermediate products overflow.

### How many ways can 9 batters fill a lineup?

P(9, 9) = 9! = 362,880, the number of complete orderings of nine distinct players. Choosing a 4-person batting nucleus from 9 in order would instead be P(9, 4) = 3,024.

## Method and sources

Methodology: Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: 2026-11-17.
- Permutation: P(n, r) = n! / (n - r)!.
