Copied to clipboard!
Free Tool • No Registration • Instant Results

Permutation and Combination Calculator

nPr, nCr, factorials, multiset, circular permutations with step-by-step solutions

Samples:
Results
🔢

Enter values or select a sample to see results

Why Use Our Permutation and Combination Calculator?

🔢

nPr & nCr

Standard permutation & combination formulas

📝

Step-by-Step

Detailed formula breakdowns and solutions

🔁

Repetition

With & without replacement calculations

🔺

Pascal's △

Generate triangle up to 25 rows

📊

Probability

Hypergeometric probability calculator

♾️

Big Numbers

BigInt support for exact large factorials

How to Use the Calculator

1

Select Mode

Choose nPr, nCr, factorial, or advanced modes.

2

Enter Values

Type n and r values or use sample presets.

3

View Results

Results auto-calculate with step-by-step work.

4

Copy / Export

Copy results or download as text file.

What Is a Permutation and Combination Calculator and Why Does Every Math Student Need One?

A permutation and combination calculator is a specialized mathematical tool that solves counting problems involving arrangements and selections of objects from a set. The fundamental question these tools answer is deceptively simple: in how many ways can you arrange or select items from a larger group? Yet the math behind it — factorials, binomial coefficients, and multinomial formulas — quickly escalates in complexity as numbers grow. That complexity is precisely why a reliable free permutation and combination calculator saves enormous amounts of time for students, teachers, engineers, data scientists, and anyone facing probability or combinatorics problems in 2025.

The distinction between permutations and combinations rests on a single concept: does the order of selection matter? When you are assigning first, second, and third place finishes in a race, the order absolutely matters — that is a permutation problem. When you are selecting a committee of three people from a group of ten, the order does not matter — that is a combination problem. An online permutation and combination calculator handles both scenarios and much more, including repetitions, circular arrangements, multiset permutations, and hypergeometric probability calculations that would be impractical to compute by hand.

How Are Permutations Different from Combinations in Practical Terms?

Permutations count the number of ordered arrangements. The formula P(n, r) = n! / (n-r)! tells you how many ways you can arrange r items selected from a total of n items when each item can only be used once and the sequence matters. A simple example: how many 3-letter codes can be formed from the 26 English letters without repeating any letter? The permutations calculator computes P(26, 3) = 26 × 25 × 24 = 15,600 possible codes. Each rearrangement of the same three letters counts as a different code because ABC is distinct from BAC.

Combinations, by contrast, count unordered selections. The formula C(n, r) = n! / (r!(n-r)!) divides out the redundant orderings that permutations would count separately. If you are choosing 5 cards from a standard 52-card deck for a poker hand, the combinations calculator gives C(52, 5) = 2,598,960. The order in which you receive the cards is irrelevant — only the set of 5 cards matters. This distinction is fundamental to the probability combinations calculator that lottery players, poker analysts, and statisticians rely on daily.

Why Is the Factorial Function So Central to Counting Problems?

Every permutation and combination formula depends on the factorial function, denoted n!, which multiplies all positive integers from 1 up to n. The factorials calculator built into our tool computes exact values using BigInt arithmetic, which means you can calculate 100! and get all 158 digits of the precise answer rather than a floating-point approximation. Factorials grow astronomically fast — 20! is already over 2.4 quintillion — which is why mental arithmetic or even standard calculators fail for anything beyond small numbers. A dedicated counting principles calculator eliminates this bottleneck by handling the big-number arithmetic transparently.

Understanding factorials also helps explain why 0! equals 1 — a fact that puzzles many students encountering it for the first time. Mathematically, 0! = 1 is the convention that makes the combination formula work correctly: C(n, 0) = n! / (0! × n!) = 1, meaning there is exactly one way to choose nothing from a set, which is the empty selection. Our free online math combinations tool handles 0! correctly in all formulas without requiring the user to remember this special case.

What Is a Permutation Generator with Steps and How Does It Help Learning?

Beyond just producing a final number, a permutation generator with steps shows the intermediate calculations that lead to the answer. When computing P(10, 3), the tool displays: "P(10, 3) = 10! / (10-3)! = 10! / 7! = 10 × 9 × 8 = 720." This step-by-step breakdown serves multiple purposes. Students can verify their own manual work against the tool's output to catch errors. Teachers can use the steps as instructional aids when explaining the derivation process. And professionals can include the work in reports or documentation to justify their calculations. A good combination formula calculator and permutation formula calculator must show its work — producing only a final number without context is far less useful for learning and verification.

When Should You Use an Arrangements and Selections Calculator for Real-World Problems?

The practical applications of an arrangements and selections calculator span nearly every field that involves counting possibilities. In cybersecurity, calculating the number of possible passwords for a given length and character set uses permutations with repetition. A 4-digit PIN using digits 0-9 has 10^4 = 10,000 possibilities. An 8-character password using 62 alphanumeric characters has 62^8 = over 218 trillion possibilities. Our replacement permutation calculator handles these exponential computations instantly.

In genetics, the number of ways to arrange nucleotide bases in a DNA sequence of length n, or the number of possible gene combinations during meiosis, involves combinatorial calculations. In manufacturing, quality control sampling — choosing r items from a batch of n for inspection — uses combinations. In sports analytics, the number of possible team lineups, tournament brackets, or draft pick orders all require either an ncr calculator online or npr calculator online depending on whether the arrangement matters.

Lottery mathematics provides one of the most compelling practical examples. A 6/49 lottery requires matching 6 numbers from 49 without regard to order, making it a combination problem: C(49, 6) = 13,983,816. Your probability of winning the jackpot with a single ticket is therefore 1 in nearly 14 million. Our probability calculator permutations mode makes this calculation trivial and shows the exact odds as a fraction, decimal, and percentage.

How Does a Subsets Calculator Relate to Combinations?

A subsets calculator math problem is closely related to combinations. The total number of subsets of a set with n elements is 2^n, because each element is either included or excluded. This can also be computed as the sum of C(n, 0) + C(n, 1) + ... + C(n, n) = 2^n. When you need the number of subsets of a specific size, you use the combination formula directly. Our discrete math combinations calculator handles both scenarios, and the Pascal's Triangle visualization provides a visual map of all C(n, r) values simultaneously — each entry in row n is a combination coefficient showing the number of r-element subsets of an n-element set.

What Is a Circular Permutation and How Is It Calculated?

Circular permutations arise whenever objects are arranged in a circle rather than a line. Seating 5 guests around a circular table, arranging beads on a bracelet, or scheduling tasks on a rotating shift all require circular permutation counting. The formula is (n-1)! because rotations of the same arrangement are considered identical — fixing one person's position eliminates the rotational symmetry. For 5 guests, (5-1)! = 4! = 24 distinct seating arrangements. If the circle is a physical object like a necklace or bracelet where flipping (reflection) also produces an identical arrangement, the count is halved: (n-1)!/2. Our advanced combination tool includes a checkbox to toggle between standard circular permutation and necklace-style permutation with reflections.

What Are Multiset Permutations and When Do They Apply?

Multiset permutations count arrangements of objects where some items are identical. The classic example is the word MISSISSIPPI, which has 11 letters but contains repeated letters: 1 M, 4 I's, 4 S's, and 2 P's. The number of distinct arrangements is 11! / (1! × 4! × 4! × 2!) = 34,650. Without dividing by the repeated-letter factorials, you would overcount because swapping two identical S's does not produce a visually distinct arrangement. Our permutation word problems solver accepts either a word (automatically counting letter frequencies) or a comma-separated list of group sizes, making it versatile for both language-based and abstract problems.

How Does Pascal's Triangle Connect to the Combination Formula?

Pascal's Triangle is a triangular array where each entry equals the sum of the two entries directly above it. The entries in row n of Pascal's Triangle are exactly the values C(n, 0), C(n, 1), ..., C(n, n). This means the triangle provides a complete lookup table for binomial coefficients without requiring factorial calculations. Row 5, for instance, reads 1, 5, 10, 10, 5, 1 — matching C(5,0) through C(5,5). Our Pascal's Triangle generator creates up to 25 rows, with each value clickable to reveal the C(n, r) notation it represents. The triangle also reveals beautiful mathematical properties: row sums always equal powers of 2, alternating sums equal zero (except row 0), and diagonal sums produce Fibonacci numbers.

Can This Calculator Solve Probability Problems Using Combinations?

Many probability problems reduce to counting favorable outcomes using combinations and dividing by total outcomes. Our probability calculator permutations and combinations module implements the hypergeometric probability formula: P = C(k, m) × C(n-k, r-m) / C(n, r), where n is the total population, k is the number of favorable items, r is the sample size, and m is the number of favorable items needed in the sample. For a concrete example, drawing exactly 3 hearts in a 5-card poker hand from a standard deck: P = C(13, 3) × C(39, 2) / C(52, 5) = 286 × 741 / 2,598,960 ≈ 0.0815 or about 8.15%. The tool computes this as a fraction, decimal, and percentage with full step-by-step breakdown.

What Makes This Tool Better Than a Basic Counting Calculator?

A basic counting calculator might handle simple multiplication or factorials, but it lacks the mathematical infrastructure to handle the full range of combinatorial problems. Our tool goes far beyond basic arithmetic by supporting nine distinct calculation modes, each tailored to a specific class of counting problem. It uses JavaScript BigInt for exact computation of numbers that would overflow standard 64-bit floating-point representation — meaning results like 52! or C(200, 100) are computed exactly rather than approximated. The step-by-step solution display transforms every calculation into a learning opportunity, showing the formula substitution, intermediate products, and final result in a clean, readable format.

The auto-calculation feature means results update instantly as you type, eliminating the need to press a separate calculate button. Sample presets for common real-world problems — poker hands, PINs, lottery odds, DNA arrangements — provide starting points that users can modify to fit their specific needs. Scientific notation display for extremely large results maintains readability even when the exact value spans hundreds of digits. And the copy/download functionality lets users export their results for homework submissions, research papers, or professional documentation.

How Do Permutations with Repetition Differ from Standard Permutations?

Standard permutations (nPr) assume each item can be used only once. The order matters permutation calculator with repetition relaxes this constraint: each position can hold any of the n available types, leading to n^r total arrangements. This model applies to combination locks (despite the misleading name — they are actually permutation locks since order matters), PIN codes, product serial numbers, and any scenario where the same option can appear multiple times. A so-called combination lock calculator with 40 positions and 3 digits actually computes 40^3 = 64,000 permutations with repetition, not combinations in the mathematical sense.

What Types of Students and Professionals Benefit Most from This Tool?

High school students encountering permutations and combinations for the first time in pre-calculus or statistics courses benefit from the step-by-step explanations that break down formulas into understandable pieces. College students studying discrete mathematics, probability theory, or combinatorics can use the tool to verify homework answers and build intuition for more advanced proofs. Computer science students analyzing algorithm complexity — many algorithms involve combinatorial counting of data structures, search spaces, or graph configurations — regularly need a reliable ncr and npr calculator for their assignments.

Data scientists computing feature combinations for machine learning models, genetic researchers counting allele arrangements, actuaries calculating insurance probability tables, and casino game designers analyzing payout structures all require precise combinatorial computations. The versatility of our free permutation and combination calculator across all these fields is precisely why we included nine calculation modes covering every standard combinatorial formula.

How Accurate Are the Large Number Calculations?

JavaScript's native Number type uses 64-bit floating-point representation, which provides about 15-17 significant digits of precision. For most permutation and combination calculations with modest n values, this is sufficient. However, factorials of numbers above approximately 20 exceed the safe integer range (2^53 - 1), and results above approximately 170! exceed the maximum representable floating-point value entirely. Our tool uses BigInt arithmetic for all internal calculations, providing exact results for factorials up to 1000! and beyond — numbers with thousands of digits — with zero rounding error. The display shows both the full exact value and a scientific notation approximation for readability.

What Are Some Common Mistakes People Make in Permutation and Combination Problems?

The most frequent error is confusing when to use permutations versus combinations. If a problem involves selecting a committee, choosing lottery numbers, or picking items from a menu, order does not matter — use combinations. If it involves ranking, arranging in positions, or creating codes, order matters — use permutations. Our tool's clear labeling and formula display helps users verify they have chosen the correct mode.

Another common mistake is forgetting to account for identical items. Arranging the letters of BANANA requires multiset permutation (6!/(3!2!1!) = 60), not standard permutation (6! = 720). A third error is incorrectly applying permutation with repetition when items cannot be reused, or vice versa. The distinct modes in our calculator prevent these errors by making the underlying assumptions explicit: each mode shows its formula and explains when it applies.

How Should You Choose Between the Nine Calculation Modes?

Start by asking two questions about your problem. First: does order matter? If yes, you need a permutation variant. If no, you need a combination variant. Second: can items be repeated? If items can only be used once, use the standard formula (nPr or nCr). If items can be reused, use the repetition variant. For circular arrangements, use circular permutation. For arrangements with identical items, use multiset permutation. For finding probabilities, use the probability mode. And for exploring the relationship between all combination values of a given n, use Pascal's Triangle.

This systematic approach ensures you always select the correct calculation mode, and our advanced combination tool makes it easy to switch between modes and compare results. The sample presets attached to each mode provide concrete examples that illustrate when each formula applies, serving as a quick reference guide for anyone uncertain about which mode to choose.

Frequently Asked Questions

Permutation counts arrangements where order matters (nPr = n!/(n-r)!), while combination counts selections where order does not matter (nCr = n!/(r!(n-r)!)). For 5 items choosing 3: P(5,3) = 60 arrangements, C(5,3) = 10 selections.

nPr = n! / (n-r)! counts ordered arrangements. nCr = n! / (r!(n-r)!) counts unordered selections. Example: 5P3 = 5!/2! = 60, and 5C3 = 5!/(3!2!) = 10.

A factorial (n!) is the product of all positive integers from 1 to n. For example, 5! = 120. It is the building block of both permutation and combination formulas. By convention, 0! = 1.

Use n^r when items can be reused and order matters. For example, a 4-digit PIN using 0-9: 10^4 = 10,000 possibilities. Each digit position can independently be any of the 10 digits.

Circular permutation arranges items in a circle where rotations are identical. The formula is (n-1)!. For necklaces where reflections are also identical, divide by 2: (n-1)!/2.

Yes, the calculator uses BigInt arithmetic for exact results with numbers up to 1000! and beyond. Results are displayed in both exact and scientific notation for readability.

Combination with repetition uses C(n+r-1, r). It allows selecting the same item more than once. For example, choosing 3 scoops from 5 ice cream flavors: C(5+3-1, 3) = C(7,3) = 35.

It computes hypergeometric probability: P = C(k,m)×C(n-k,r-m) / C(n,r). Enter total items (n), items to choose (r), favorable items (k), and favorable needed (m) for exact probability.

Pascal's Triangle displays binomial coefficients C(n,r). Row n contains all C(n,0) through C(n,n). It is used for combinations, binomial theorem expansion, and finding probability distributions.

Yes, completely free with no registration, no usage limits, and no hidden costs. All calculations run in your browser with full privacy — no data is ever sent to a server.