Permutation Calculator
Enter n (total items) and r (items chosen) to instantly compute P(n,r) — the number of ordered arrangements.
Enter Values
Must be a non-negative integer, max 170.
Must satisfy 0 ≤ r ≤ n.
Quick Examples
Result
Enter n and r, then click Calculate.
Step-by-Step Working
Summary
Enter n (total items) and r (items chosen) to instantly compute P(n,r) — the number of ordered arrangements.
How it works
- Enter n — the total number of items in the set.
- Enter r — the number of items you want to arrange (must be ≤ n).
- The calculator evaluates P(n,r) = n! / (n-r)! in real time.
- The step-by-step panel shows the expanded factorial and simplification.
- Use the swap button to exchange n and r values quickly.
Use cases
- Counting the number of ways to arrange n objects in a line.
- Solving probability problems where order of selection matters.
- Computing race finish positions (1st, 2nd, 3rd) from a field of competitors.
- Calculating password or PIN combinations from a fixed character set.
- Evaluating seating arrangements at a table.
- Homework and exam preparation for combinatorics courses.
- Game theory: counting distinct ordered outcomes.
- Cryptography: estimating brute-force attack spaces.
Frequently Asked Questions
Last updated: 2026-06-13 ·
Reviewed by Nham Vu