Permutations and Combinations Calculator (nPr & nCr)
Count ordered assignments and unordered selections from distinct items without replacement. Compare nPr and nCr as exact integers.
Result
How is this calculated?
Count ordered assignments first. Divide by the number of ways to order each selected set to count unordered selections.
Worked example: Choose two people from six
There are 15 two-person committees. If the two people serve in distinct roles, there are 30 assignments because the same pair can swap roles.
Method and limits
The same item cannot appear twice. Choosing nothing has one outcome. Inputs are capped at 2000 to keep the browser responsive.
How to use this calculator
- Enter the number of distinct choices and how many you will select.
- Use permutations when changing order changes the outcome. Use combinations when only membership matters.
Assign roles or choose a pair
With six volunteers, there are 6 × 5 = 30 ways to fill two distinct roles. To count committees of two without roles, divide by 2 because each pair was counted twice. That gives 15 committees.
Make the counting decision first
A two-person panel has no first or second role, so swapping its members does not create another panel. A chair and recorder assignment is different when the people swap roles.
Read the formulas
For n distinct items and r selections, nPr = n! ÷ (n−r)!. The same r items can be rearranged r! ways, so nCr = nPr ÷ r!.
Count selections, not probabilities
These formulas count possibilities. To turn favorable counts into a probability, the possible outcomes must also have equal likelihood. This tool does not assign weights.
Frequently asked questions
- Does order matter for choosing all items?
- There is one unordered set, but potentially many ways to order it. Selecting all four items has 24 orders and one set.
- What if I select zero items?
- There is one empty selection, so both counts are 1.
- Can an item repeat?
- No. The calculation assumes distinct items selected without replacement.
- Why are some results very long?
- Combinatorial counts grow quickly. Results are exact integers, not scientific approximations.
Common mistakes and limits
- Both inputs must be whole numbers and selections cannot exceed available items.
- Available items are capped at 2,000. The result does not count selections from repeated categories.
Sources & methodology
Related calculators
- Z-Score and Normal Probability Calculator
Standardize one observation using a stated mean and standard deviation, convert normal areas to scores, or find area between standardized bounds.
- Normal P-Value Calculator: One or Two Tails
Convert a standard normal z-score into left, right and two-tail areas, or find a score from a supplied probability.
- Confidence Interval for a Mean (Known Population SD)
Estimate a two-sided z interval from a sample mean, sample size and genuinely known population standard deviation.
- Sample Size and Margin of Error for a Proportion
Plan the minimum response count for a target margin, or estimate the margin for an existing simple random sample.