Permutation Calculator

Compute permutations in seconds. Choose between without repetition (nPr = n! / (n − r)!) and with repetition (n^r), or even generate permutations of a short word like “ABC”. Perfect for counting problems, probability, and discrete math.

n must be ≥ 0

r must be ≤ n for no repetition

No repetition: order matters, elements cannot repeat. With repetition: order matters, elements can repeat.

Permutation formulas

Permutation without repetition:

\(P(n, r) = \frac{n!}{(n - r)!}\)

Total permutations of n distinct objects: \(n! = n \times (n-1) \times \dots \times 1\)

Permutation with repetition:

\(P(n, r) = n^r\)

This calculator uses exactly these formulas.

How to use this permutation calculator

  1. In “nPr Calculator”, enter total number of elements (n) and number taken at a time (r).
  2. Choose whether repetition is allowed.
  3. Click Calculate to get the number of permutations and the formula used.
  4. In “Permute a string/list”, type a short word or a short list and we will show the first permutations.

FAQs

What’s the difference between permutation and combination?

Permutation = order matters. Combination = order doesn’t matter. If you need combinations, use a combination calculator (nCr).

Why am I getting “n must be ≥ r”?

For permutations without repetition, you can’t arrange more items than you have. Either turn on “with repetition” or reduce r.

Can I use this for passwords or license plates?

Yes — those are typically permutations with repetition (like 26 letters in 6 positions → 26^6).


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\\]
','\
Formula (extracted text)
Permutation without repetition: \(P(n, r) = \frac{n!}{(n - r)!}\) Total permutations of n distinct objects: \(n! = n \times (n-1) \times \dots \times 1\) Permutation with repetition: \(P(n, r) = n^r\) This calculator uses exactly these formulas.
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
, ', svg: { fontCache: 'global' } }; ]], displayMath: [['\\[','\\]']] }, svg: { fontCache: 'global' } };, svg: { fontCache: 'global' } };