Calculate the number of possible arrangements and selections for any set of items.
The total number of distinct items in the set (0–170).
How many items to arrange or select (must be ≤ n).
A permutation counts arrangements where order matters. A combination counts selections where order does not matter. The formulas use factorials: P(n, r) = n! / (n − r)! C(n, r) = n! / (r! × (n − r)!) For example, choosing 3 items from 10 gives 720 permutations (ordered) but only 120 combinations (unordered). This calculator computes exact results for values up to n = 170 using iterative multiplication to avoid overflow.
What is the difference between permutation and combination?
In a permutation, the order of selected items matters (e.g., ABC ≠ BAC). In a combination, only the selection matters, not the arrangement (ABC = BAC). Permutations always yield a number greater than or equal to combinations for the same inputs.
When should I use permutations vs combinations?
Use permutations when order matters, such as arranging people in a line, setting a password, or assigning positions. Use combinations when only the group matters, such as choosing team members, lottery numbers, or menu items from a list.
What happens if r is 0 or equal to n?
If r = 0, both permutations and combinations equal 1 (there is exactly one way to choose nothing). If r = n, permutations equal n! and combinations equal 1 (there is only one way to select all items without regard to order).