CalcPlatformPro
HomeFinanceHealthMathConstructionConvertersDateOtherFEEDBACK
FEEDBACK
CalcPlatform

Free, fast, and precise financial, mathematical, health, and engineering calculators.

Financial Suite

  • Mortgage Calculator
  • Auto Loan Calculator
  • Personal Loan Calculator
  • EMI Installment
  • SIP Wealth Growth
  • Compound Interest

Categories & Tools

  • Finance Hub
  • BMI Health Calculator
  • Percentage Calculator
  • Age Calculator
  • Math Category

Company & Legal

  • About Us
  • Privacy Policy
  • Terms & Conditions
  • Feedback & Contact
© 2026 CalcPlatform. All calculations run client-side for total privacy.
HomeMathPermutation & Combination Calculator

Permutation & Combination Calculator

Calculate permutations (nPr) and combinations (nCr) from the total number of available items, n, and the number selected, r. Compare arrangements where order matters with selections where order does not, and explore supported cases where repetition is allowed.

Calculate permutations and combinations

Enter how many distinct items are available and how many you want to select. The calculator shows how the count changes when order matters, when order does not matter, and when repetition is allowed.

Total items available in pool
Items to arrange or choose
Repetition / ReplacementCan an item be selected more than once?
Result format:
Quick Scenarios:
Permutations (nPr)Without replacement
Order matters

Different orders of the same selected items count as different outcomes.

30
Formula: P = n! / (n − r)!
Combinations (nCr)Without replacement
Order does not matter

Only which items are selected matters, not the order in which they are chosen.

15
Formula: C = n! / [ r! (n − r)! ]
Mathematical relationship: P(n, r) = C(n, r) × r! (since each group of 2 items can be arranged in 2! = 2 orders).
Permutations (Without Repetition)n = 6, r = 2
1Formula
P(n, r) =n!(n − r)!
2Substitute
P(6, 2) =6!(6 − 2)!=6!4!
3Cancel
=6 × 5 × 4!4!=6 × 5
4Result
= 30
Combinations (Without Repetition)n = 6, r = 2
1Formula
C(n, r) =n!r! × (n − r)!
2Substitute
C(6, 2) =6!2! × (6 − 2)!=6!2! × 4!
3Cancel
=6 × 51 × 2=302
4Result
= 15
Looking for Hypergeometric or Event Probabilities?

For sampling without replacement odds, card draws, lottery probabilities, and binomial distributions, use our dedicated probability suite.

Probability Calculator
RELATED CALCULATORS:
Probability Calculator|Statistics Calculator|Big Number Calculator

How to Use the Permutation & Combination Calculator

  1. Enter the total number of distinct items (n): This is the total count of available items in the source set.
  2. Enter the number of items selected or arranged (r): This specifies how many items you are choosing or ordering from the set.
  3. Decide whether repetition is allowed: Under without repetition (no replacement), an item can be selected only once. Under with repetition (replacement allowed), the same item may be chosen again.
  4. Review the permutation and combination results: Use nPr when the sequence or order matters. Use nCr when only the group membership matters and ordering is irrelevant.
  5. Inspect the formula steps: Review the step-by-step mathematical derivation to see how your values of n and r produce the calculated counts.

Permutations vs. Combinations: Does Order Matter?

The decisive difference between a permutation and a combination is whether changing the order creates a distinct outcome:

Permutations: Order Matters

A permutation counts ordered arrangements. Selecting Alice for first place and Bob for second place is fundamentally different from selecting Bob for first place and Alice for second place. Common examples include ranking race finishers, assigning specific officer positions, or entering a security PIN.

Combinations: Order Does Not Matter

A combination counts unordered selections. Choosing Alice and Bob for a two-person project committee represents the exact same group as choosing Bob and Alice. Common examples include dealing a hand of playing cards, forming an unranked team, or drawing lottery balls.

Before calculating, ask two questions:

  • Does the order of the selected items matter?
  • Can an item be selected more than once?

Answering these questions determines which formula applies to your counting problem.

Permutation Formula (nPr)

For ordered selections of r items from n distinct items without replacement, the permutation formula is:

nPr = n! / (n − r)!

The factorial symbol (!) represents the product of all positive integers up to that number, with 0! = 1 by definition.

Example: Select and rank two people from six candidates (n = 6, r = 2).
There are 6 choices for the first position and 5 remaining choices for the second position:

6P2 = 6! / (6 − 2)! = 6! / 4! = 6 × 5 = 30

There are 30 possible ordered arrangements.

Combination Formula (nCr)

For unordered selections of r items from n distinct items without replacement, the combination formula is:

nCr = n! / [ r! × (n − r)! ]

A combination removes the redundant counting caused by treating different orderings of the exact same selected members as different outcomes.

Example: Choose two people from six for a committee (n = 6, r = 2).

6C2 = 6! / [ 2! × (6 − 2)! ] = 720 / [ 2 × 24 ] = 15

The combination count (15) is smaller than the permutation count (30) because the two selected members form the same committee regardless of which was chosen first.

For valid standard inputs without replacement, permutations and combinations are connected by the relationship:
nPr = nCr × r!

With Replacement vs. Without Replacement

Without replacement, a selected item cannot be chosen again. With replacement, each item is returned to the pool and can be selected repeatedly.

Counting ModeOrder SettingFormulaExample Application
Permutation without replacementOrder mattersn! / (n − r)!Gold, silver, bronze medals
Permutation with replacementOrder mattersnr4-digit PINs, alphanumeric passwords
Combination without replacementOrder does not mattern! / [ r! (n − r)! ]Poker hands, committee selection
Combination with replacementOrder does not matter(n + r − 1)! / [ r! (n − 1)! ]Selecting a dozen donuts across flavors

For example, a four-digit PIN formed from ten possible digits (0–9) with repetition allowed has 104 = 10,000 possible sequences because each of the four positions has ten independent choices.

Worked Example: 18 Choose 4

Suppose you have 18 distinct items and want to select four. The answer depends directly on whether order matters:

If order does not matter (Combinations without replacement):

In standard mathematical notation, "18 choose 4" denotes the combination count:

18C4 = 18! / [ 4! × 14! ] = (18 × 17 × 16 × 15) / (4 × 3 × 2 × 1) = 73,440 / 24 = 3,060

There are 3,060 possible four-item selections.

If order matters (Permutations without replacement):

When ranking items into 4 distinct positions:

18P4 = 18! / (18 − 4)! = 18! / 14! = 18 × 17 × 16 × 15 = 73,440

There are 73,440 ordered arrangements.

Both calculations are correct for their respective problem statements. These figures assume selections are made without replacement.

Circular Permutations and Repeated Letters

Circular Arrangements

When n distinct items are arranged around a circle and rotations count as the same arrangement, the number of distinct arrangements is:

Pcircular = (n − 1)!

For six people seated around a round table, this gives (6 − 1)! = 5! = 120 arrangements under the standard rotational-equivalence convention.

If reflected arrangements are also considered equivalent (such as beads on a reversible necklace or keys on a ring), clockwise and counterclockwise orientations coincide. In that case, divide by an additional factor of 2: (n − 1)! / 2 (for n ≥ 3).

Repeated-Letter Arrangements (Multiset Permutations)

When arranging words containing repeated letters, swapping identical letters does not create a new visible sequence. For a word of length n with character frequencies k1, k2, and so on:

Unique Arrangements = n! / ( k1! × k2! × ... )

For example, MISSISSIPPI contains 11 letters with letter frequencies: M = 1, I = 4, S = 4, and P = 2.
Total unique anagrams:

11! / ( 1! × 4! × 4! × 2! ) = 39,916,800 / 1,152 = 34,650

Calculator Assumptions and Limitations

  • Non-negative integer inputs: Combinatorial operations require non-negative whole numbers (n ≥ 0 and r ≥ 0). Decimal and negative inputs are not valid for discrete counting.
  • Selection domain constraints: For selections without replacement, you cannot select more items than are available in the set. If r > n, both P(n, r) and C(n, r) equal 0.
  • Exact BigInt computation: All factorial and combinatoric products are evaluated using native arbitrary-precision BigInt arithmetic. This avoids standard IEEE-754 64-bit floating-point rounding errors up to the supported input boundary (n ≤ 5,000).
  • Display formats: Standard mode formats exact integer answers with thousands separators. For astronomical quantities, Scientific notation and Log₁₀ modes display orders of magnitude clearly.
  • Boundary values: By mathematical definition, 0! = 1, and choosing 0 items produces exactly 1 outcome: C(n, 0) = 1 and P(n, 0) = 1 (representing the empty set).

Permutation & Combination Calculator FAQs

A permutation counts arrangements where order matters. A combination counts selections where order does not matter.
nPr counts ordered selections of r items from n distinct items without replacement, using n! / (n − r)!.
nCr counts selections of r items from n distinct items without replacement, using n! / [r! × (n − r)!].
18 choose 4 means selecting four items from 18 when order does not matter. The result is 18C4 = 3,060.
Without replacement, an item cannot be selected again. With replacement, the same type can be selected more than once. The formulas depend on both repetition and whether order matters.
For n distinct choices and r ordered positions, each position has n possible values, giving n^r possible sequences.
A factorial multiplies the positive integers up to a number. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120, while 0! = 1 by definition.
Check if changing the order of the selected items creates a new outcome. If changing order creates a new result (such as ranking 1st and 2nd place, forming words from letters, assigning distinct roles like president and treasurer, or entering a security PIN), use a permutation (nPr). If order does not change the result (such as choosing a committee of equals, picking pizza toppings, selecting cards for a hand, or drawing lottery numbers), use a combination (nCr).
This fundamental symmetry identity exists because selecting r items to include from a set of n items is mathematically identical to choosing the remaining n − r items to leave out. For example, choosing 2 winners from 10 contestants (10C2 = 45) is the exact same decision as choosing the 8 contestants who do not win (10C8 = 45). Algebraically, substituting n − r into the combination formula yields n! / [(n − r)! × (n − (n − r))!] = n! / [(n − r)! × r!], which identically equals nCr.
Without replacement, r cannot be greater than n because you cannot select more distinct items than exist in the source set. If r > n without replacement, both nPr and nCr equal 0. However, when repetition or replacement is allowed, r can be any non-negative integer, even much larger than n (for example, rolling a 6-sided die 20 times has n = 6 and r = 20, yielding 6^20 possible sequences).
In Excel and Google Sheets, use =PERMUT(n, r) for standard permutations without replacement and =COMBIN(n, r) for combinations without replacement. For repetition-based counting, use =PERMUTATIONA(n, r) for permutations with replacement (n^r) and =COMBINA(n, r) for combinations with replacement.
For a word or multiset of n total items where specific characters repeat with frequencies k₁, k₂, k₃, and so on, the number of unique distinguishable anagrams is n! / (k₁! × k₂! × k₃! × ...). Dividing by each letter's factorial eliminates identical arrangements produced by swapping indistinguishable duplicate letters. For example, the 6-letter word BANANA (1 B, 3 A's, 2 N's) has 6! / (1! × 3! × 2!) = 720 / 12 = 60 unique arrangements.

Related Math Calculators

Probability Calculator

Calculate single, joint, and conditional event probabilities for independent and dependent experiments.

Dice Roller Simulator

Explore sample spaces, sum frequencies, and discrete outcome distributions for dice expressions.

Statistics Calculator

Evaluate dataset measures of central tendency, sample variance, standard deviation, and confidence intervals.

Big Number Calculator

Perform exact arbitrary-precision arithmetic and exponentiation on large integers without truncation.