Combinations & Permutations (nCr, nPr)
How do I calculate nCr and nPr?
Result
How it is calculated
Choose r items from n. Permutations count ordered selections: nPr = n × (n−1) × … × (n−r+1). Combinations ignore order: nCr = nPr ÷ r!. The factorial shown is n! = 1 × 2 × … × n. Both n and r are whole numbers (decimals are cut off), r cannot exceed n and neither can be negative; otherwise there is no result. Values are computed in floating point and displayed as whole numbers, so very large n loses exact digits beyond roughly 15 significant figures.
Worked example
Pick 3 people out of 10. nPr = 10 × 9 × 8 = 720 ordered arrangements. Each group of 3 can be ordered in 3! = 6 ways, so nCr = 720 ÷ 6 = 120 distinct groups. The factorial 10! = 3,628,800.
Common mistakes
- Using permutations when order does not matter (a lottery draw is a combination) or the reverse (a podium finish is a permutation).
- Reading the factorial output as n!/r!; it is simply n! and does not depend on r.
- Entering r larger than n, which has no valid answer because you cannot pick more items than exist.
- Typing a decimal such as 5.7 and expecting rounding; the value is truncated to 5.
- Assuming repetition is allowed; these formulas pick each item at most once.
About this calculator
This calculator computes combinations (nCr), permutations (nPr) and the factorial (n!) from two inputs, n (the total number of items) and r (how many are being chosen or arranged). Permutations count arrangements where order matters, combinations count selections where order doesn't, and both formulas are built from the factorial function, which itself multiplies every whole number from 1 up to n.
These formulas are core to probability and statistics coursework, where students calculate the odds of a specific hand, drawing, or arrangement occurring out of all possible outcomes. Outside the classroom, the same math shows up whenever someone needs to know how many possible outcomes exist — the number of ways to arrange a race's finishing order, the number of possible lottery ticket combinations, or how many different teams of a given size can be formed from a larger group — situations that come up in game design, scheduling and odds calculation alike.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)