Compute an exact factorial of any size, with its digit count and trailing zeros, well past where floating point fails.
Permutation Calculator
Count ordered selections, P(n, r) = n!/(n-r)!, exactly and without building a huge factorial.
- Free
- No sign-up
- Runs in your browser
Input
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter the size of the set and how many to select.
- 2
The count of ordered arrangements appears, along with the unordered count for comparison.
Questions about Permutation Calculator
When do I want permutations rather than combinations?
When the order of the selection matters. Choosing a president, secretary and treasurer from ten people is a permutation - who gets which post matters - and there are 720 ways. Choosing a committee of three is a combination, and there are 120. The permutation count is always r! times larger.
Is a large n a problem?
No, because the falling product is computed directly rather than as a ratio of two factorials. P(100000, 2) is 9,999,900,000; computing it as 100000!/99998! would build a number of nearly half a million digits and then discard almost all of it.
What if repetition is allowed?
Then the count is simply n^r, not this formula - picking a 4-digit PIN from ten digits gives 10,000, not P(10, 4). This formula counts selections without replacement.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Permutation Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Permutation Calculator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Count unordered selections, C(n, r), exactly using the multiplicative formula rather than factorials.
Compute a simple probability exactly from favourable and total outcomes, with its complement and odds.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.