Basic statistics

Permutation and Combination Calculator: nPr, nCr, With and Without Repetition

Enter n (items to choose from) and r (items chosen) to get nPr, nCr and both versions with repetition, with the working shown. A second tab counts the arrangements of a word with repeated letters, such as MISSISSIPPI. Big answers are exact, not rounded.

✅ No login needed100% freeRuns in your browserNothing savedYour data stays on your device
Permutation and Combination Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Everything you type is calculated on your own computer or phone. Nothing is saved, not even in your browser, and it is gone when you close the page. Nothing is uploaded, stored or seen by Codanics, and no login is needed.

Example: 10 students, choose 3. A president, secretary and treasurer (order matters) is 10P3. A committee of 3 (order does not matter) is 10C3.

  • PriceFree, no login or sign-up needed
  • Your dataCalculated in your browser; nothing is saved
  • Works onPhone, tablet or computer, any modern browser
  • Made byDr. Muhammad Aammar Tufail, Codanics
  • Published24 November 2026
  • Last updated24 November 2026

📚 How to cite this tool

This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.

Citation · APA 7th edition

Tufail, M. A. (2026). Permutation and combination calculator [Online tool]. Codanics. Retrieved 24 November 2026, from https://codanics.com/tools/permutation-combination-calculator/

In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)

The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 24 November 2026.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the permutation and combination calculator

  1. Enter n, the number of items to choose from, and r, how many you pick.
  2. Read nPr if order matters (rankings, passwords, seating) or nCr if it does not (teams, committees, lottery tickets). Both versions with repetition are shown too.
  3. For words with repeated letters, open Arrange a word and type the word.
  4. Check the working, open the exact value for very large answers, or press Copy result.

What is the difference between a permutation and a combination?

A permutation counts arrangements where order matters; a combination counts selections where order does not matter. Choosing a president, secretary and treasurer from 10 people is a permutation (10P3 = 720). Choosing a 3-person committee is a combination (10C3 = 120). Each committee can be ordered in 3! = 6 ways, and 720 ÷ 6 = 120.

Permutation and combination formulas

TypeOrder matters?Repeats allowed?Formulan = 10, r = 3
Permutation nPrYesNon! ÷ (n − r)!720
Combination nCrNoNon! ÷ (r!(n − r)!)120
Permutation with repetitionYesYesnʳ1,000
Combination with repetitionNoYes(n + r − 1)! ÷ (r!(n − 1)!)220
Arrangements with repeated itemsYesfixed countsn! ÷ (n₁! n₂! …)MISSISSIPPI: 34,650

The factorial n! means n × (n − 1) × … × 2 × 1, and 0! = 1 by definition.

Worked examples

  • Race podium: 8 runners, gold, silver and bronze. 8P3 = 8 × 7 × 6 = 336.
  • Team selection: pick 5 players from 12. 12C5 = 12! ÷ (5! × 7!) = 792.
  • 4-digit PIN: digits 0–9 can repeat, order matters. 10⁴ = 10,000.
  • Ice-cream scoops: 3 scoops from 5 flavours, repeats allowed, order does not matter. C(7, 3) = 35.
  • MISSISSIPPI: 11 letters with I × 4, S × 4, P × 2. 11! ÷ (4! × 4! × 2!) = 39,916,800 ÷ 1,152 = 34,650.

How to decide which formula to use

  • Ask: would swapping two chosen items give a different result? If yes, use a permutation. If no, use a combination.
  • Ask: can the same item be chosen twice? If yes, use the “with repetition” version.
  • Lottery: picking 6 numbers from 49 is 49C6 = 13,983,816, so one ticket has about a 1 in 14 million chance.
  • Factorials grow very fast. 20! already has 19 digits, so ordinary calculators round. This tool uses exact big-integer arithmetic.
nCr is the heart of the binomial formula. Use the binomial probability calculator to turn counts into probabilities, or the probability calculator for and, or and conditional probabilities.
Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

Frequently asked questions

What is the formula for nCr?

nCr = n! ÷ (r! × (n − r)!). For example, 10C3 = 10! ÷ (3! × 7!) = 120.

What is the formula for nPr?

nPr = n! ÷ (n − r)!. It equals the product of r numbers counting down from n. For example, 10P3 = 10 × 9 × 8 = 720.

How do I know whether to use a permutation or a combination?

If the order of the chosen items matters (rankings, codes, seats), use a permutation. If only the group matters (teams, committees, hands of cards), use a combination.

What is 0 factorial?

0! = 1. There is exactly one way to arrange nothing, and this definition keeps the formulas working, for example nC0 = nCn = 1.

How many ways can the letters of a word be arranged?

Divide n! by the factorial of each repeated letter’s count. For MISSISSIPPI: 11! ÷ (4! × 4! × 2!) = 34,650. Use the Arrange a word tab.

Is anything I type saved?

No. The calculations run in your browser and nothing is saved or uploaded.

Do I need to log in or create an account to use the permutation and combination calculator?

No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.

How do I cite this tool in my thesis or paper?

Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Permutation and combination calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/permutation-combination-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.

Free guides and courses from Codanics

More free tools

See all free Codanics tools → · Codanics on YouTube · WhatsApp channel

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 24 November 2026, last updated 24 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.