Permutations and Combinations Calculator (nPr & nCr)

Simultaneously compute exact Permutations (nPr) and Combinations (nCr) with or without repetition using BigInt precision and by-hand factorial cancellation steps.

Combinatorics Set Parameters (n & r) Enter non-negative whole integers (0, 1, 2, …) • Supports exact BigInt factorials
• • •
Repetition / Replacement Rule
Scenario: Podium Top 3 of 10 Runners

Side-by-Side Combinatorics Results (Exact BigInt)

Permutations (nPr) Order Matters (AB ≠ BA)
10P3 = 10! / (10 − 3)!
720
Scientific Notation: 7.200000 × 10² (3 digits)
Ordered Sequence Odds: 1 in 720 (0.1389%)
Combinations (nCr) Order Does Not Matter (AB = BA)
10C3 = 10! / (3! × (10 − 3)!)
120
Scientific Notation: 1.200000 × 10² (3 digits)
Unordered Group Odds: 1 in 120 (0.8333%)

Relationship & Factorial Breakdown

Ratio (nPr ÷ nCr) 6× (r! = 6)
Arrangements per Group (r!) 3! = 6
Remaining Items (n − r) 10 − 3 = 7
Symmetry Identity C(10, 3) = C(10, 7)

Step-by-Step Mathematical Breakdown & Factorial Cancellation

ADVERTISEMENT
Responsive In-Content Banner (336 × 280 or 728 × 90)

Permutations vs. Combinations: Does Order Matter?

In combinatorics and probability, every counting problem boils down to two core questions: (1) Does the order of selection matter? and (2) Can the same item be chosen more than once (repetition)?

1. Permutations (nPr) — Order Matters

Think "P" for Position, Placement, or Password

nPr = n! (n − r)! = n(n − 1)…(n − r + 1)

Example: Awarding Gold, Silver, and Bronze medals among 10 sprinters. First place has 10 choices, second has 9, and third has 8: 10 × 9 × 8 = 720 ordered podiums.

2. Combinations (nCr) — Order Does Not Matter

Think "C" for Committee, Card Hand, or Choose

nCr = n! r! · (n − r)! = nPr r!

Example: Picking 3 finalists out of 10 sprinters to advance to the next round. Since all 3 advance equally, we divide the 720 permutations by 3! = 6 duplicate orderings: 720 / 6 = 120 groups.

Complete Reference: All 4 Combinatorics Formulas (With & Without Repetition)

Combinatorics Type Order Matters? Repetition Allowed? Exact Mathematical Formula Real-World Example (n = 10, r = 3)
Permutation without Repetition Yes No (r ≤ n) P(n, r) = n! / (n − r)! Gold, Silver, Bronze among 10 runners = 720
Combination without Repetition No No (r ≤ n) C(n, r) = n! / (r! × (n − r)!) 3-person committee from 10 people = 120
Permutation with Repetition Yes Yes (any r ≥ 0) Prep(n, r) = nr 3-digit lock code using digits 0–9 = 10³ = 1,000
Combination with Repetition No Yes (any r ≥ 0) Crep(n, r) = (n + r − 1)! / (r! × (n − 1)!) Picking 3 donuts from 10 varieties = C(12, 3) = 220

Frequently Asked Questions (FAQ)

The single difference is whether order matters. In a permutation (nPr), the sequence or arrangement of selected items matters—for example, finishing 1st, 2nd, and 3rd in a race, or typing characters in a password (ABC is different from CBA). In a combination (nCr), order does not matter; only the final group of selected items counts—for example, drawing lottery balls or choosing 3 pizza toppings (ABC is the exact same selection as CBA).
Use nPr (Permutations) whenever distinct roles, ranks, seating positions, or sequential slots are assigned—such as electing a President, Vice President, and Secretary from a club of 10 members. Use nCr (Combinations, read "n choose r") whenever you are selecting an unordered subset, committee, card hand, or sample where every chosen item has an identical role.
Never multiply out n! all the way down to 1! Instead, unroll the numerator only until you reach (n − r)!, then cancel (n − r)! from both numerator and denominator. For example, to calculate 10C3 = 10! / (3! × 7!) by hand, rewrite 10! as 10 × 9 × 8 × 7!. Canceling 7! leaves (10 × 9 × 8) / (3 × 2 × 1) = 720 / 6 = 120.
Zero factorial (0! = 1) equals 1 for two reasons: (1) Combinatorial meaning: there is exactly 1 way to arrange or choose zero objects from a set (the empty selection itself). (2) Algebraic consistency: factorials follow the pattern n! = n × (n − 1)!, so plugging in n = 1 gives 1! = 1 × 0!, which requires 0! = 1. This also guarantees that choosing all n items yields nCn = n! / (n! × 0!) = 1.
Yes—100% locally in your browser. All factorial, permutation, and combination calculations execute directly on your device using client-side JavaScript BigInt arithmetic with zero server storage, zero database logging, and zero external API requests.

Explore Our Free Calculator Series

Fast, privacy-first math & statistical utilities running 100% in your browser.

ADVERTISEMENT
Responsive Bottom Banner (728 × 90 or Auto)