Skip to content
Calcora

Permutation & Combination Calculator

Permutations (nPr) and combinations (nCr) of n items taken r.

Input sheet

Browse DIY guidesDo the project yourself, step by step

DIY at your own risk. Calcora's calculators and guides are general estimates and information only — not professional, engineering, legal, or safety advice. Always verify local building codes and permit requirements, and hire a licensed pro for electrical, gas, plumbing, structural, or any work you're not fully comfortable doing yourself.

Counting how many ways things can be arranged or chosen is the heart of probability, lottery odds, password strength, and scheduling. Permutations count ordered selections; combinations count unordered ones.

How it works

nPr = n! ÷ (n−r)! counts ordered selections; nCr = nPr ÷ r! counts unordered ones.

Use a permutation (nPr) when order matters — a race podium, a PIN, a seating order. Use a combination (nCr) when it does not — a hand of cards, a committee, a pizza topping set. Every combination corresponds to r! permutations, which is why nCr = nPr ÷ r!.

This tool computes both from n (total items) and r (how many you pick), and also reports n! for context.

nPr = n! ÷ (n−r)!; nCr = nPr ÷ r! = n! ÷ (r! × (n−r)!)

Worked examples

Tips & gotchas

FAQ

When do I use a permutation versus a combination?

Permutations when the arrangement order matters (codes, rankings, sequences); combinations when only the chosen set matters (teams, hands, samples).

Why is nCr smaller than nPr?

Combinations ignore order, so each unordered set is counted once instead of r! times. Dividing the permutation count by r! gives the combination count.

What does nC0 or nCn equal?

Both equal 1. There is exactly one way to choose nothing and exactly one way to choose everything.

Related calculators

Percentage Calculator · Percent Change Calculator · Average (Mean) Calculator · Ratio Calculator · Exponent Calculator