Loading…

Permutation Calculator

Math Probability • Combinatorics and Counting Techniques

View all topics

Permutation Calculator – nPr (Order Matters) With/Without Repetition (Free)

Compute permutations (arrangements where order matters): \(P(n,r)=\dfrac{n!}{(n-r)!}\). With repetition allowed: \(n^r\).

Tip: Press Play after calculating to animate the product building term-by-term. Drag to pan and wheel to zoom the visualization.

Inputs

Accepted expressions: 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication. Results require integer \(n,r\) with \(n\ge0\), \(r\ge0\) (and without repetition: \(r\le n\)).

Output settings
For very large values, the tool shows scientific notation and a log-based approximation (Stirling for factorials).
Animation
The visualization highlights the multiplication terms \(n\cdot(n-1)\cdots\) (or \(n^r\) with repetition) and the running product.
Ready
Interactive view — term product builder

Drag to pan, wheel to zoom. The term strip wraps automatically to avoid overlaps.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the difference between permutations and combinations?

Permutations count ordered selections (order matters), while combinations count unordered selections (order does not matter).

Why is P(n,r)=n!/(n-r)!?

Because n! counts all ordered arrangements of n items, and dividing by (n-r)! cancels the final (n-r) factors, leaving exactly r factors for the first r positions.

When do I use n^r?

Use n^r when repetition is allowed and you are forming an ordered sequence of length r, where each position has n choices.

Why does the calculator show scientific notation sometimes?

Permutation counts grow extremely fast, producing integers with thousands of digits. Scientific notation and log-based approximations report the magnitude accurately without printing an enormous number.