Home/Mathematics/Permutations

Formula & Calculator

Permutations

Counts the number of ways to arrange r items selected from a set of n distinct items, where the order of selection matters.

MathematicsCombinatoricsResearch

Permutations (nPr) CalculatornPr = n! / (n−r)!

nPr = n! / ( nr )!
nPr = number of permutations  ·  n = total items  ·  r = items to arrange
Domain: n ≥ 0, 0 ≤ r ≤ n (integers)
⟹ SolvenPr, n, r
Solve for:
Presets:
nPr
nPr: n: r:
✓ Copied!
Permutations Gauge
Small Medium Large Very Large
nPr = n! / (n−r)!  ·  n and r are non‑negative integers with r ≤ n

Interpretation

nPr = n!/(n−r)!. Number of ways to choose and arrange r items from n. Used in combinatorics, probability, and scheduling.

nPr = n! / (n - r)!
Permutations

Variables

SymbolQuantityUnit
nPrNumber of permutations
nTotal number of distinct items
rNumber of items being arranged

What it means

The number of permutations (ordered arrangements) of r objects selected from a set of n distinct objects is nPr = n!/(n−r)!. This counts the number of sequences, where order matters. It is used in problems involving passwords, race results, seating arrangements, and in algorithm analysis (e.g., number of possible states). In probability, permutations are used to calculate the number of favourable outcomes. Understanding permutations is foundational for combinatorics and discrete mathematics, with applications in computer science, cryptography, and operations research.

Worked example

Permutations – Two Examples

Real‑World
Scenario: How many ways to arrange 3 books from 5 on a shelf? Order matters.
ParameterValue
n5
r3
1₅P₃ = 5!/(5−3)! = 120/2 = 60
Result 60 ✓ Arrangements
Scenario: A race has 8 runners. How many ways to award gold, silver, bronze?
ParameterValue
n8
r3
1₈P₃ = 8!/5! = 8·7·6 = 336
Result 336 ✓ Podium outcomes
Insight: Order matters – arrangement of distinct items. Use nPr = n!/(n−r)!.

Common mistakes

  • Permutations: nPr = n!/(n−r)! – order matters.
  • If r > n: The result is 0 (or undefined).
  • n!: Factorial of n – ensure n is a non‑negative integer.
  • Applications: Used in counting arrangements, seating, and sequences.
  • Check: For small numbers, verify manually.

Applications

Permutations, nPr = n!/(n−r)!, give the number of ordered arrangements of r items from a set of n. This is fundamental in combinatorics and probability. Engineers use it in scheduling, resource assignment, and cryptography. In operations research, it helps in sequencing and routing problems. In computer science, it appears in algorithm analysis and graph problems. By calculating permutations, professionals can quantify the number of possible orders, which is essential for optimisation, risk assessment, and decision‑making in diverse fields such as logistics, software testing, and game theory.

  • Task scheduling and assignment problems
  • Cryptography – key space and password strength
  • Production sequencing and route planning
  • Probability calculations in games and betting
  • Combinatorial optimisation and search algorithms

Frequently Asked Questions

Q01What is the permutations formula?
A01

The number of ways to arrange r items from a set of n distinct items, where order matters, is nPr = n! / (n – r)!. It counts ordered selections.

Q02What is the common mistake when using permutations?
A02

Using permutations when the order of selection doesn't actually matter, which should instead use the combinations formula.

Q03What is the difference between permutations and combinations?
A03

Permutations consider order; combinations ignore order. For example, ABC and CBA are different permutations but the same combination.

Q04What is n! (factorial)?
A04

n! = n × (n–1) × … × 1. 0! = 1 by definition.

Q05How many ways can you arrange 3 books on a shelf from 5 different books?
A05

5P3 = 5! / (5–3)! = 5! / 2! = 120 / 2 = 60.

Q06What is the number of permutations of n distinct objects?
A06

nPn = n! (all objects are arranged).

Q07What are circular permutations?
A07

For n distinct objects in a circle, the number of arrangements is (n–1)!, because rotations are considered the same.

Q08What are the applications of permutations?
A08

  • Arranging items in a sequence.
  • Counting passwords.
  • Scheduling tasks.

Q09What is the permutations with repetition?
A09

If repetitions are allowed, the number of permutations is n^r (e.g., 10^4 for a 4‑digit code).

Q10What is the relationship between permutations and the factorial?
A10

Permutations are derived from factorials: nPr = n! / (n–r)!.