ProMathTools
ProMathTools

Permutation & Combination Calculator

Count arrangements P(n,r) and selections C(n,r) — standard ProMathTools calculator shell.

Total number of items (non-negative integer ≤ 1000)

Number of items to select (must be ≤ n)

How it works

Permutations and combinations are fundamental concepts in combinatorics. Permutations count arrangements where order matters, while combinations count selections where order doesn't matter.


The Formula

Permutation: P(n,r) = n! / (n-r)!\nCombination: C(n,r) = n! / (r! × (n-r)!)
  • n

    Total number of items

  • r

    Number of items to select or arrange

  • !

    Factorial (e.g., 5! = 5 × 4 × 3 × 2 × 1 = 120)


Worked Example

  1. Example 1: Permutation P(5,3)

    Ways to arrange 3 items from 5: P(5,3) = 5! / (5-3)! = 5! / 2! = 120 / 2 = 60 Example: Arranging 3 books from 5 on a shelf (order matters).

  2. Example 2: Combination C(5,3)

    Ways to choose 3 items from 5: C(5,3) = 5! / (3! × 2!) = 120 / (6 × 2) = 10 Example: Choosing 3 students from 5 for a team (order doesn't matter).

  3. Example 3: Combination C(10,2)

    Ways to choose 2 items from 10: C(10,2) = 10! / (2! × 8!) = 3628800 / (2 × 40320) = 45 Example: Number of handshakes if 10 people each shake hands once.


Tips, Assumptions & Limitations

  • Permutations: Order matters (e.g., arranging books on a shelf).
  • Combinations: Order doesn't matter (e.g., choosing team members).
  • n and r must be non-negative integers.
  • r cannot be greater than n.
  • Large n values use BigInt so results stay exact (no floating-point overflow at n ≤ 170).
  • P(n,r) is always greater than or equal to C(n,r) for the same n and r.

Permutation is the arrangement of items in a specific order, while combination is the selection of items without considering the order. This calculator can calculate both permutations and combinations. The permutation formula is used when the order of the items matters, and the combination formula is used when the order does not matter.

To use the calculator, simply enter the total number of items and the number of items to be arranged or selected. The calculator will then calculate the permutation and combination values. You can use the results to determine the number of possible arrangements or selections.

The permutation formula is P(n,r) = n! / (n-r)!, where n is the total number of items and r is the number of items to be arranged. The combination formula is C(n,r) = n! / (r!(n-r)!), where n is the total number of items and r is the number of items to be selected. The calculator uses these formulas to calculate the results.

Yes. Results use BigInt arithmetic so large n values stay exact (no floating-point overflow at the old n ≤ 170 limit). A practical cap of n ≤ 1000 still applies for performance. The results include formula working steps.

Related Calculators

Binomial Probability CalculatorCorrelation CoefficientLinear RegressionSample Size CalculatorT-Test CalculatorMeanMedian ModeVarianceStandard DeviationMean Absolute DeviationZ-Score

Related Guides


How this calculator works

Have you ever wondered how many different ways you can arrange a set of items, especially when the order of those items makes a big difference? That's where permutations come in! Permutations are a core concept in mathematics, particularly in combinatorics and probability, helping us count the number of possible arrangements of a given set of items where the sequence is crucial. This guide will walk you through what permutations are, how to calculate them, and how our Permutations Calculator can make these calculations simple.

Explanation

A permutation is an arrangement of objects in a specific order. Unlike combinations, where the order of selection doesn't matter, in permutations, the sequence of the items is paramount. For instance, if you're arranging letters, 'ABC' is a different permutation from 'BCA'. This concept is vital in many real-world scenarios, from setting up a batting order in baseball to determining the number of possible passwords. The formula for permutations helps us figure out how many unique ordered arrangements can be made when you select 'r' items from a larger set of 'n' distinct items. It uses factorials, which represent the product of all positive integers up to a given number.

Formula

The formula for calculating permutations (nPr) is: nPr = n! / (n - r)! Where:
* **n** represents the total number of distinct items available. * **r** represents the number of items you choose to arrange from the total. * **!** denotes the factorial operation (e.g., 5! = 5 × 4 × 3 × 2 × 1 = 120).

Worked example

Let's say you have 10 athletes competing in a race (n=10), and you want to know how many different ways the gold, silver, and bronze medals can be awarded (r=3). Since the order (1st, 2nd, 3rd) matters, this is a permutation problem. Using the formula: 10P3 = 10! / (10 - 3)! 10P3 = 10! / 7! 10P3 = (10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1) / (7 × 6 × 5 × 4 × 3 × 2 × 1) 10P3 = 10 × 9 × 8 10P3 = 720 So, there are 720 different ways to award the gold, silver, and bronze medals to 3 athletes from a group of 10.

How to use this tool

Using our Permutations Calculator is straightforward. Simply enter the 'Total Number of Items (n)' into the first input field. This is the total count of distinct items you have. Next, enter the 'Items to Choose and Arrange (r)' into the second input field. This is how many items you want to select and arrange from your total. Once both values are entered, the calculator will instantly display the total number of possible permutations (nPr) for your scenario. The result will show the calculation steps and the final count of arrangements.

Frequently asked questions

What is a permutation?
A permutation is a way of arranging items where the order of the arrangement matters. For example, if you have items A, B, and C, arranging them as ABC is different from ACB in permutations.
What is the difference between permutations and combinations?
The key difference is order. In permutations, the order of selection matters (ABC is different from ACB). In combinations, the order does not matter (ABC is considered the same as ACB). Think of permutations as arrangements and combinations as selections.
When should I use a permutations calculator?
You should use a permutations calculator when you need to find the number of ways to arrange a subset of items from a larger group, and the sequence or order of those items is important. Common uses include scheduling, password possibilities, or assigning distinct roles.
Can this calculator handle large numbers?
Our calculator can handle reasonably large numbers for N and R. However, factorials grow very quickly, so extremely large inputs might exceed standard numerical precision. For typical school and university problems, it works perfectly.

Read the full guide →

About UsBlogChrome ExtensionFAQsTerms and ConditionsPrivacy PolicySitemap
EmailLinkedInFacebook

© 2025-2026 PromathTools. All rights reserved.

Built by KruskalCode – SaaS & Automation Experts · EverydayDevTools