Permutation and Combination Calculator

By Seagit ✨
Deploy to your own cloud with Seagit, today.Start freeNo credit card required

Exact nPr, nCr, factorial and repetition counts

Choose n and r

n factorial, n!3,628,800
Permutations, nPr = n! / (n − r)!720
Combinations, nCr = n! / (r! (n − r)!)120
Permutations with repetition, nʳ1,000
Combinations with repetition, C(n + r − 1, r)220

Results are exact integers, shown in full with thousands separators.

Permutation or combination: which one

Use a permutation when order matters, such as podium places or passwords built from distinct characters. Use a combination when order does not matter, such as picking a committee or a five-card poker hand. Five-card hands from a 52-card deck are C(52, 5) = 2,598,960; the same five cards arranged in order would be P(52, 5) = 311,875,200.

🔢 Permutation and Combination Calculator — Free Online Tool

Count permutations, combinations and factorials exactly. Permutations count ordered selections and combinations count unordered ones. This calculator returns nPr, nCr and n factorial, plus the counts with repetition, using exact integer arithmetic so even large results are not rounded. The definitions follow chapter 26 of the NIST Digital Library of Mathematics Functions, which covers combinatorial analysis.

How to use it

  1. Enter n, the total number of distinct items.
  2. Enter r, how many you choose.
  3. Read nPr when order matters and nCr when it does not.
  4. Use the repetition rows when an item can be picked more than once.

🚀 Why use this Permutation and Combination Calculator tool?

Most counting mistakes come from mixing up order and repetition. The calculator gives every count for the same n and r, so you can see which one matches your problem. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.

Key Features

🔢nPr and nCr

Permutations and combinations side by side, with the formulas written out.

🔁With repetition

nʳ and C(n + r − 1, r) for selections where items may repeat.

🧮Exact integers

Results such as C(100, 50) are printed in full, not rounded or in scientific notation.

🔒Instant and private

All counting happens in your browser.

Popular Use Cases

Probability

  • • Count favourable outcomes
  • • Hand and lottery odds
  • • Arrangement counts

Codes and options

  • • Size of a PIN space
  • • Combinations of options
  • • Seating arrangements

Coursework

  • • Check a textbook answer
  • • Learn nPr versus nCr
  • • Count committees

What It Handles

Without repetition

  • ✓ nPr = n! / (n − r)!
  • ✓ nCr = n! / (r! (n − r)!)
  • ✓ n factorial

With repetition

  • ✓ nʳ
  • ✓ C(n + r − 1, r)
  • ✓ Stars and bars count

Method

  • ✓ Exact BigInt arithmetic
  • ✓ n and r up to 1000
  • ✓ Runs in the browser

Related Tools

Sources & References

Frequently Asked Questions

What is the difference between a permutation and a combination?

A permutation counts ordered selections, so ABC and BAC are different. A combination counts unordered selections, so they are the same group. Use nPr when order matters and nCr when it does not.

What is C(52, 5)?

It is 2,598,960, the number of five-card poker hands from a 52-card deck. The order of the cards in a hand does not change the hand, so a combination is the right count.

Why is 0! equal to 1?

By definition, so that formulas stay consistent. C(n, 0) = 1 and P(n, 0) = 1, since there is exactly one way to choose nothing.

Why are the answers so large?

Counts grow factorially. P(52, 5) is 311,875,200, and 52! has 68 digits. Exact integer arithmetic avoids the rounding that floating-point numbers would introduce.

What is the limit?

This version handles n and r up to 1000. That covers textbook problems and most practical counting questions.

🎓 Pro Tips

  • Tip 1: If order does not matter, divide the permutation count by r! to get the combination count.
  • Tip 2: To choose a team of 3 from 10 people, use C(10, 3) = 120, not P(10, 3) = 720, because team members are not ranked.
  • Tip 3: The number of ways to pick r items with repetition from n types is C(n + r − 1, r), the stars and bars count.
banner