📐

Permutation and Combination Calculator

Math Free Instant Private
Math

### Discrete Mathematics & Combinatorial Analysis In probability theory, statistics, and counting mathematics, determining the total number of possible arrangements or subset selections of $r$.

Reviewed by Miss Saima · MA Mathematics
Last updated:
Editorial Guidelines

⚙ Input Values

items
chosen

📊 Results

Combinations nCr (Order Irrelevant)
120
Permutations nPr (Order Matters)
720
Combinations with Replacement
220
Permutations with Replacement (n^r)
1,000
Embed on Your Website

Copy and paste this code into your website.

<iframe src="https://calcusolve.com/calculator/permutation-and-combination-calculator?embed=true" width="100%" height="600" frameborder="0" loading="lazy" title="Permutation and Combination Calculator"></iframe>

📐 Formula

Formula Reference: Permutation and Combination Calculator
Input variables:
totalItemsN — Total Number of Items (n)
sampleSizeR — Sample Size / Items Chosen (r)
Computed outputs:
combinationsNCr — Combinations nCr (Order Irrelevant)
permutationsNPr — Permutations nPr (Order Matters)
combinationsWithReplacement — Combinations with Replacement
permutationsWithReplacement — Permutations with Replacement (n^r)
Mathematical relationships extracted from calculation logic:
nPr = safeDiv(factorial(n), factorial(n - r))
nCrRep = safeDiv(factorial(n + r - 1), factorial(r) * factorial(n - 1))
Standard: NIST / ISO mathematical definitions

💡 Practical Example

✅

Choosing 3 winners out of 10 contestants: If order matters (1st, 2nd, 3rd place prizes), there are 10P3 = 720 permutations. If order does not matter (3 identical prizes), there are 10C3 = 120 combinations.

📖 About Permutation and Combination Calculator

Discrete Mathematics & Combinatorial Analysis

In probability theory, statistics, and counting mathematics, determining the total number of possible arrangements or subset selections of r objects drawn from a larger set of n distinct items depends on two essential criteria: order sensitivity and repetition allowance.

Core Combinatorial Formulas

  • Permutations (Order Matters, No Replacement): nPr = P(n,r) = (n!) / ((n-r)!)
  • Combinations (Order Irrelevant, No Replacement): nCr = C(n,r) = (n!) / (r!(n-r)!) = (nPr) / (r!)
  • Permutations with Replacement: P_rep = n^r
  • Combinations with Replacement: C_rep = n+r-1r = (!) / (r!(n-1)!)

Order vs Selection Decision Framework

  • Order Matters (Ordered Sequences): Security PIN passcodes, athletic race podium finishes, lock combinations (which are technically mathematical permutations!).
  • Order Irrelevant (Unordered Subsets): Poker hand card combinations, lottery ticket numbers, committee member selections.

Pascal's Triangle Symmetry Properties

Combinations exhibit mathematical symmetry such that nCr = nC(n-r). For instance, selecting 3 items from 10 items yields 120 combinations, which identically equals leaving behind 7 items from

  • This property simplifies large combinatorial computations in binomial theorem expansions.

How to Use This Calculator

Enter your Total Number of Items (n) (e.g. 10 in items) and Sample Size / Items Chosen (r) (e.g. 3 in chosen). Results update instantly as you type — adjust any value to compare scenarios.

The Formula

Formula Reference: Permutation and Combination Calculator

Input variables:

totalItemsN — Total Number of Items (n)

sampleSizeR — Sample Size / Items Chosen (r)

Computed outputs:

combinationsNCr — Combinations nCr (Order Irrelevant)

permutationsNPr — Permutations nPr (Order Matters)

combinationsWithReplacement — Combinations with Replacement

permutationsWithReplacement — Permutations with Replacement (n^r)

Mathematical relationships extracted from calculation logic:

nPr = safeDiv(factorial(n), factorial(n - r))

nCrRep = safeDiv(factorial(n + r - 1), factorial(r) * factorial(n - 1))

Standard: NIST / ISO mathematical definitions

Worked Example

Choosing 3 winners out of 10 contestants: If order matters (1st, 2nd, 3rd place prizes), there are 10P3 = 720 permutations. If order does not matter (3 identical prizes), there are 10C3 = 120 combinations.

Understanding Your Result

Evaluate your result in the context of your specific use case and relevant industry standards or reference values. A single calculated result is a starting point — test two to three scenarios to understand how sensitive the outcome is to your key input assumptions. For high-stakes decisions, verify your result against a secondary source or subject-matter expert before acting.

💡 Mathematical Rigor & Applied Context

  • This calculator applies exact mathematical definitions following conventions established by NIST and international standards bodies.
  • Rounding errors accumulate across multi-step calculations. For precision-critical work, maintain extra significant figures through all intermediate steps.
  • Many mathematical concepts have multiple valid formulations — if a result seems unexpected, verify which convention or definition applies to your context.
  • Dimensional analysis (unit tracking) is the fastest way to catch formula errors. Every term in an equation must have consistent, compatible units.
  • Numerical methods used in digital calculators introduce floating-point precision limits (~15 significant digits for IEEE 754 double precision).
  • For statistical and probabilistic calculations, always specify whether you are working with population parameters or sample statistics — formulas differ.
  • Visualizing a problem geometrically or testing with known boundary values (zero, infinity, negative) reveals hidden errors faster than algebraic checking.
  • When in doubt, validate your result against a simplified hand calculation or a published worked example from a textbook or standards document.

Results are for informational and educational purposes only. Always verify critical decisions with a qualified professional.

❓ Frequently Asked Questions

What is the difference between a permutation and a combination?

Order matters in permutations (e.g. ABC is different from CBA); order does not matter in combinations (e.g. ABC and CBA are the same combination).

What is the formula for nCr?

nCr = n! /!), where n is total items and r is sample size.

What is the formula for nPr?

nPr = n! / (n - r)!, representing ordered arrangements without replacement.

Why is a combination lock actually a permutation?

Because entering numbers in a different sequence (e.g. 10-20-30 vs 30-20-10) will not open the lock; since order matters, it is mathematically a permutation.

What does 0! (zero factorial) equal?

By mathematical definition, 0! = 1, ensuring that nCn = n! / = 1.

Try Other Calculators