Part of the Maths & Statistics suite · 235 calculators

Permutations and Combinations Calculator

How many ways can you choose r items from n — when order matters (permutations, nPr) and when it doesn't (combinations, nCr)?

Permutations count ordered selections: nPr = n! ÷ (n − r)!.

Results update as you type
Results
Combinations (nCr)
8145060
Permutations (nPr)
With repetition allowed (nʳ)
Chance of one specific combination
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the Australian Curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About permutations and combinations

How the permutations and combinations calculator works

Permutations count ordered selections: nPr = n! ÷ (n − r)!. Combinations count unordered ones, so divide out the r! orderings: nCr = n! ÷ (r!(n − r)!). Picking a lottery line is a combination; a race podium is a permutation.

Formula: nPr = n! / (n − r)!; nCr = n! / (r! (n − r)!)

Worked examples

InputsCombinations (nCr)Note
6 from 45 (lottery)81450608,145,060 combinations
3 from 10 podium120720 permutations
2 from 51010 pairs, 20 ordered pairs

Frequently asked questions

What is the difference between a permutation and a combination?

Permutations count order (AB ≠ BA); combinations do not (AB = BA). There are always r! times more permutations.

What are the odds of winning a 6-from-45 lottery?

1 in 8,145,060 for a single line.

What if repetition is allowed?

Ordered selections with repetition are nʳ — a 4-digit PIN has 10⁴ = 10,000 possibilities.

What is nC0 or nCn?

1 — there is one way to choose nothing and one way to choose everything.

Why does the calculator stop at n = 1000?

The numbers become astronomically large; beyond that use logarithms.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.