How to Calculate Combinations
Calculate the number of ways to choose r items from n items.
The Formula
C(n,r) = n! / r!(n-r)!The combinations formula uses the mathematical relationship: C(n,r) = n! / r!(n-r)!. Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the combinations formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Total Items (n) | Input (you provide) | 10 |
| Chosen Items (r) | Input (you provide) | 3 |
| Combinations C(n, r) | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Total Items (n), Chosen Items (r).
- 2Substitute your known values into the formula: C(n,r) = n! / r!(n-r)!.
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive Combinations Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: total items (n) = 5, with the other inputs at the typical values from the variables table above. Substituting into the formula gives combinations c(n, r) = 10. These numbers are solved by the same engine that powers the Combinations calculator, so you can reproduce them exactly by entering the same inputs there.
| Total Items (n) | Combinations C(n, r) |
|---|---|
| 3 | 1 |
| 5 | 10 |
| 8 | 56 |
| 10 | 120 |
| 20 | 1140 |
| 30 | 4060 |
| 40 | 9880 |
How each result changes as total items (n) changes, holding the other inputs constant.
Practice Problems
1. Choose 3 from 10 (10C3): With Total Items (n) 10, Chosen Items (r) 3, what are the results?
Answer: The calculator returns Combinations C(n, r) 120 for Total Items (n) 10, Chosen Items (r) 3.
2. Total Items (n) 6, Chosen Items (r) 2 — work it out, then check the answer.
Answer: With Total Items (n) 6, Chosen Items (r) 2, the results are Combinations C(n, r) 15.
Frequently Asked Questions
What is the formula for combinations?
The formula is: C(n,r) = n! / r!(n-r)!. Calculate the number of ways to choose r items from n items.
What values do I need to calculate combinations?
You need total items (n), chosen items (r). The calculator produces combinations c(n, r) from those inputs.
What is the combinations when total items (n) is 5?
With total items (n) = 5, the result is combinations c(n, r) = 10. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free Combinations calculator.
