Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)

Combination & Permutation Calculator

Calculate combinations (nCr) and permutations (nPr) instantly with step-by-step solutions for probability and counting problems.

What is Combination & Permutation Calculator?

This calculator helps you solve counting problems by computing combinations (nCr) and permutations (nPr). Whether you're calculating lottery odds, determining possible arrangements, or solving probability questions, this tool provides instant results with step-by-step explanations.

Combination

C(n,r) - Order Doesn't Matter

Selecting r items from n items where arrangement is irrelevant.

  • Formula: C(n,r) = n! / (r! × (n-r)!)
  • Example: Choosing 3 people for a committee from 10 candidates
  • Result: ABC = BAC = CAB (same group)
Permutation

P(n,r) - Order Matters

Arranging r items from n items where sequence is important.

  • Formula: P(n,r) = n! / (n-r)!
  • Example: Assigning President, VP, and Secretary from 10 candidates
  • Result: ABC ≠ BAC ≠ CAB (different arrangements)
Key Relationship: P(n,r) = C(n,r) × r! — Permutations equal combinations multiplied by the number of ways to arrange the selected items.

How to Use

1

Choose Calculation Type

Click the Combination or Permutation tab based on whether order matters in your problem.

2

Enter n Value

Input the total number of items in the "Total items (n)" field.

3

Enter r Value

Input how many items you want to choose or arrange in the "Items to choose (r)" field.

4

View Result

The answer appears instantly as you type — no calculate button needed.

5

See Steps (Optional)

Click "Show calculation steps" to understand the mathematical process behind the result.

Input Requirements: Remember that r must be less than or equal to n, and both values must be non-negative integers.

Features

Instant Calculation

Results update automatically as you type, providing immediate feedback without clicking any buttons.

Step-by-Step Solutions

Expand calculation steps to see exactly how the answer was derived, perfect for learning.

Large Number Support

Calculate with n values up to 1000 using BigInt precision for accurate results.

Smart Formatting

Large results display in scientific notation for readability while maintaining precision.

Optimized Algorithms

Uses mathematical shortcuts like C(n,r) = C(n, n-r) for faster computation.

Quick Reference

Built-in comparison table of Combination vs Permutation with practical examples.

Input Validation

Clear error messages guide you when inputs are invalid, ensuring accurate calculations.

Frequently Asked Questions

What's the difference between combination and permutation?

In combinations, order doesn't matter (ABC = BAC = CAB). In permutations, order matters (ABC ≠ BAC ≠ CAB).

  • Use combinations for selecting groups (committees, lottery numbers, card hands)
  • Use permutations for arranging sequences (race positions, passwords, seating arrangements)

Why is my result showing in scientific notation?

When results exceed 20 digits, they're displayed in scientific notation (e.g., 1.234567e+50) for readability. The calculation remains precise using BigInt technology.

Example: C(100,50) produces a number with 29 digits, displayed as 1.008913e+29 for easier reading.

What does "n must be ≤ 1000" mean?

To ensure fast calculations, the maximum value for n is limited to 1000. This covers virtually all practical use cases while maintaining optimal performance.

Coverage: This limit handles everything from lottery calculations to complex statistical problems used in research and education.

How do I calculate lottery odds?

Use the Combination calculator since lottery order doesn't matter.

Example: To find odds of picking 6 numbers from 49:

  • Select the Combination tab
  • Enter n = 49 (total numbers)
  • Enter r = 6 (numbers to pick)
  • Result: C(49,6) = 13,983,816 possible combinations

Your odds of winning are 1 in 13,983,816.

What is the relationship between C(n,r) and P(n,r)?

The formula is: P(n,r) = C(n,r) × r!

This means permutations equal combinations multiplied by the number of ways to arrange the selected items.

Example with n=5, r=3:

  • C(5,3) = 10 (ways to choose 3 from 5)
  • r! = 3! = 6 (ways to arrange 3 items)
  • P(5,3) = 10 × 6 = 60 (total arrangements)

Can I use this for homework or exams?

Yes! The step-by-step solutions help you understand the calculation process, making it an excellent learning tool.

  • Verify your manual calculations
  • Learn the proper formula application
  • Understand each step of the solution
  • Practice with different values
Study Tip: Try solving problems manually first, then use the calculator to check your work and review the steps.
C(10, 3)
120
Formula
C(n,r) = n! / (r! × (n-r)!)
Combination
Permutation
Order
Doesn't matter
Matters
Formula
n!/(r!(n-r)!)
n!/(n-r)!
Example
Pick 3 from 10
Arrange 3 from 10
Relationship: P(n,r) = C(n,r) × r!
Enter n (total items) and r (items to choose)
Use Combination when order doesn't matter (selecting a team)
Use Permutation when order matters (arranging positions)
Click Show calculation steps to see the detailed solution
Supports large numbers up to n = 1000
Want to learn more? Read documentation →
1/6
Start typing to search...
Searching...
No results found
Try searching with different keywords