1. Home
  2. Calculators
  3. Permutation and Combination Calculator

Permutation and Combination Calculator

For probability and counting problems: all the standard counts for one n and r at once, with no rounding even for 100! or C(1000, 500).

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Permutation and Combination Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • nPr, nCr and both with repetition
  • n!, r! and circular arrangements
  • Distinct arrangements of a word with repeated letters
  • Exact big integers with digit counts
  • Pascal’s triangle row for n up to 30

Supported formats

Input

  • Typed numbers

You get

  • On-screen results
  • Copyable text
  • CSV table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Permutation and Combination Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • n and r are limited to 1,000.
  • It counts arrangements; it does not list them.

Guide

Permutations and combinations: nPr, nCr and counting with repeats

Counting problems look simple until the numbers get large or the rules of the problem change: does order matter, can items repeat, are some items identical? This calculator answers the standard counting questions for one n and r at the same time, as exact big integers, so that 52! or the number of poker hands is not rounded, and it adds a counter for the distinct arrangements of a word.

The formulas

A permutation counts ordered selections of r items from n: nPr = n! / (n − r)!. A combination counts unordered selections: nCr = n! / (r! (n − r)!), which is nPr divided by r!. With repetition allowed, an ordered choice has nʳ possibilities, and an unordered choice has C(n + r − 1, r), the number of multisets of size r. The tool also gives n!, r! and the circular arrangements of n items, (n − 1)!.

What the page shows

Enter n and r, and optionally a word or string of items. The page opens on n = 10, r = 3 and the word MISSISSIPPI, and lists nPr = 720, nCr = 120, permutations with repetition 1,000, combinations with repetition 220, 10! = 3,628,800, 3! = 6, circular arrangements 362,880 and 34,650 distinct arrangements of the word, with the repeated letters I×4, S×4 and P×2. A Pascal’s triangle row appears for n up to 30.

Exact big numbers

Factorials grow very quickly: 20! is 2,432,902,008,176,640,000 and 52! has 68 digits. The tool uses big integers throughout, so nothing is rounded, and results longer than 60 digits are written as the first digits times a power of ten together with the exact number of digits, for example 8.065817 × 10^67 (68 digits) for 52!. Values are limited to n and r of 1,000 or less.

Worked examples

Awarding three medals among ten athletes is 10P3 = 720; choosing a team of three is 10C3 = 120. A five-card poker hand from 52 cards is 52C5 = 2,598,960 hands, while ordered deals number 311,875,200. A 6-from-49 lottery has 49C6 = 13,983,816 combinations, so one ticket wins the jackpot with probability 1 in 13,983,816. The letters of STATISTICS can be arranged in 10! ÷ (3! × 3! × 2!) = 50,400 distinct ways.

Repetition and circular arrangements

When items can repeat, as in a four-digit PIN, use nʳ: 10⁴ = 10,000. When identical items can be chosen but order does not matter, as with scoops of ice cream from 5 flavours, use C(n + r − 1, r). For seating n people at a round table where only relative positions matter, the number of arrangements is (n − 1)!, because rotating everyone does not give a new seating. The tool reports all of these for the same n and r.

Edge cases

If r is larger than n, nPr and nCr are not defined, and the page says so while still giving the counts with repetition. r = 0 gives 1 way for nPr and nCr, since there is exactly one way to choose nothing. A word with no repeated letters gives n!, and spaces are ignored. Results are counts, not probabilities: divide by the total number of outcomes to turn them into a chance.

Limits

The tool counts arrangements but does not list them, and it does not solve problems with restrictions such as items that must or must not sit together; split those into cases by hand. It works with whole numbers up to 1,000 only. For probability questions, use the count of favourable outcomes divided by the count of all outcomes from this page.

Checked against the current version of the Permutation and Combination Calculator on .

Frequently asked questions

How do I decide whether a problem needs a permutation or a combination?

Ask whether swapping two chosen items gives a different outcome. Awarding gold, silver and bronze is different from handing the same three people the same prize, so it is a permutation. Picking a three-person committee is a combination. If you are unsure, compute both and divide: nPr ÷ nCr always equals r!.

Why do the anagrams of a word with repeated letters count fewer arrangements?

Because swapping two identical letters does not create a new word. Eleven letters give 11! = 39,916,800 orderings, but MISSISSIPPI has four I’s, four S’s and two P’s, so divide by 4! × 4! × 2! = 1,152 to get 34,650 distinct words. The tool does this when you type the word.

When do I use a permutation and when a combination?

Use a permutation when order matters (a podium) and a combination when it does not (a committee). A permutation count is the combination count times r!.

How many ways can the letters of MISSISSIPPI be arranged?

34,650: 11! divided by 4! for the I’s, 4! for the S’s and 2! for the P’s.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.