Smart Kit Now

Permutations & Combinations (nPr / nCr)

Calculate permutations (nPr) and combinations (nCr). Determine the number of ways to arrange or select items from a set.

Total number of items in the set (n ≥ 0)

Number of items selected or arranged (r ≥ 0)

Choose whether order matters (permutations) or not (combinations)

Key Formula

Permutations (nPr): nPr = n! / (n - r)! Combinations (nCr): nCr = n! / (r! × (n - r)!)

Where:

n= Total number of distinct items
r= Number of items selected or arranged

Example

Calculate the number of ways to select 3 students from a group of 5.

1: Identify n = 5 (total students) and r = 3 (students to select).

2: For combinations (order does not matter), use nCr = 5! / (3! × (5-3)!)

3: Calculate factorials: 5! = 120, 3! = 6, 2! = 2.

4: Compute nCr = 120 / (6 × 2) = 120 / 12 = 10 ways.

Result: There are 10 ways to select 3 students from 5.

Understanding Permutations & Combinations (nPr / nCr)

Permutations and combinations are fundamental concepts in combinatorics, a branch of mathematics concerned with counting, arrangement, and selection of objects. Permutations (denoted as nPr) count the number of ways to arranger items out of n distinct items where order matters. Combinations (denoted as nCr) count the number of ways to select ritems from n distinct items where order does not matter.

These concepts are widely used in probability, statistics, and various fields requiring enumeration of possibilities. Understanding the difference between permutations and combinations is crucial: permutations consider different orders as unique, while combinations treat different orders as the same selection.

This tool allows you to calculate both permutations and combinations easily, ensuring accurate results with proper input validation and clear explanations.

Formula

Permutations (nPr):
nPr = n! / (n - r)!

Combinations (nCr):
nCr = n! / (r! × (n - r)!)

Where:
- n! (n factorial) = n × (n-1) × (n-2) × ... × 1
- r! (r factorial) = r × (r-1) × (r-2) × ... × 1
- (n - r)! = factorial of (n - r)

Note: Factorial of 0 is defined as 1.

Permutations and Combinations in Everyday Counting Problems

The core distinction: use permutations (nPr) when order matters, combinations (nCr) when it does not. Choosing the order of runners finishing a race is a permutation — first, second, third are distinct positions. Selecting members for a committee is a combination — the group is the same regardless of the order members were chosen. Confusing the two produces answers that are off by a factor of r! (r factorial), which for r=5 is 120.

Password and lock combination security is built on permutation counting. A 4-digit PIN from digits 0-9 has 10^4 = 10,000 possible values (with repetition allowed). Without repetition, it is P(10,4) = 10x9x8x7 = 5,040. A 6-character password using 26 letters + 10 digits = 36 characters has 36^6 = 2,176,782,336 possible combinations with repetition. Each added character multiplies the search space, explaining why longer passwords are exponentially harder to crack.

Probability calculations depend on combinations for the denominator. The probability of being dealt a royal flush in poker is C(5,5) / C(52,5) = 1 / 2,598,960. The probability of matching 5 of 6 lottery numbers is [C(6,5) x C(44,1)] / C(50,6). Any probability problem asking 'what fraction of possible selections have property X' requires counting the numerator (favorable selections using combinations) and the denominator (all possible selections).

Network design and algorithm analysis use combinations to count connections. A fully connected network of 10 nodes requires C(10,2) = 45 direct links — each pair of nodes connected once. For 100 nodes: C(100,2) = 4,950 links. This quadratic growth explains why fully-meshed network topologies are impractical at scale and why hub-and-spoke or hierarchical designs are preferred in real infrastructure.

FAQ

  • What is the difference between permutations and combinations?

    Permutations consider the order of items, meaning different arrangements count as distinct. Combinations do not consider order; only the selection matters. For example, selecting ABC is the same as BAC in combinations but different in permutations.

  • Can n or r be negative or non-integers?

    No. Both n and r must be non-negative integers because factorials and these formulas are defined only for whole numbers. Negative or fractional inputs are invalid and will produce warnings.

  • What happens if r is greater than n?

    If r is greater than n, the calculation is invalid because you cannot select or arrange more items than available. The tool will warn you to input valid values where r ≤ n.

  • Why do results have decimal places if permutations and combinations are integers?

    The tool formats results with four decimal places for consistency and precision. However, permutations and combinations always yield integer values, so decimals will be .0000 in valid cases.

Important — Educational Use Only

This calculator is provided for educational and informational purposes only. The results are estimates based on the information you provide and should not be considered financial, legal, or professional advice.

No Warranty: SmartKitNow makes no warranties regarding the accuracy, completeness, or reliability of the calculations. Results may vary based on individual circumstances, market conditions, and other factors.

Professional Advice: Always consult with qualified professionals (financial advisors, accountants, attorneys, or other specialists) before making any important financial or legal decisions.

Limitation of Liability: SmartKitNow and its affiliates are not liable for any losses, damages, or consequences resulting from the use of this calculator or reliance on its results.

By using this calculator, you acknowledge that you have read and understood this disclaimer, and you agree to use the tool at your own risk. For personalized guidance tailored to your specific situation, please seek advice from a qualified professional in the relevant field.

📋Last updated: August 2026

Share This Page

Help others by sharing this page

Send Us a Suggestion

Have an idea? We'd love to hear from you!

0 / 500 characters

💡 Your feedback helps us improve SmartKitNow for everyone

🧮You might also like

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.Privacy Policy.