Skip to content
Zesona
Permutation CalculatorLocal

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

Runs in your browser

Ready

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Enter the size of the set and how many to select.

  2. 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.

Other tools you might reach for next.