Worked examples
Grade 10: choose a president, vice president and treasurer from 5 people
5P3 = 60 ways
Grade 10: choose 3 of 5 people for cleaning duty
5C3 = 10 ways
Grade 10: pick 4 drinks from 3 kinds with repeats
3H4 = C(6,4) = 15 ways
How to use it
- Choose what to find (permutation, combination, with repetition, factorial).
- n is the total, r is how many you choose. A factorial needs only n.
- Read the value and, for very large values, the number of digits.
What this calculates
A permutation nPr counts the ways to pick r of n different things and arrange them in order; a combination nCr counts the ways to choose without order. The same r items can be ordered in r! ways, so nPr = nCr × r!. If items can be picked again, the counts are n^r (with order) and nHr = C(n+r−1, r) (without order). It is part of the counting and permutations unit of upper secondary school.
The formulas
- Factorial n! = n × (n−1) × … × 1, 0! = 1
- Permutation nPr = n! ÷ (n−r)!
- Combination nCr = n! ÷ (r! × (n−r)!), nCr = nC(n−r)
- With repetition (order) n^r
- With repetition (no order) nHr = (n+r−1)Cr
Reference table
| Expression | Value | |
|---|---|---|
| 5, 2 | 20 | 10 |
| 5, 3 | 60 | 10 |
| 6, 2 | 30 | 15 |
| 7, 3 | 210 | 35 |
| 8, 4 | 1680 | 70 |
| 10, 3 | 720 | 120 |
Good to know
- For the sum and product rules, see the Counting Rules Calculator.
- For the probability that uses nCr, see the Binomial Distribution Calculator.
Sources
Frequently asked questions
How do I tell permutations from combinations?
If the order of the chosen items changes the outcome (president, vice president) it is a permutation; if not (cleaning duty) it is a combination.
Why is 0! equal to 1?
There is exactly one way to arrange nothing, so 0! = 1; it is needed for nC0 = 1.
What if r is larger than n?
Without repetition you cannot pick more than you have, so an error message appears. With repetition r may be larger.
How are very large values shown?
They are shortened and the number of digits of the exact value is given.
Is there a limit on n?
Permutations, combinations and factorials work for n up to 1000.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.