Skip to content
Aback Tools Logo

Permutation and Combination Calculator

Calculate P(n,r) and C(n,r) instantly with our free permutation and combination calculator. See both results side by side with step-by-step formula solutions, a Pascal's Triangle row, and BigInt support for n up to 1000 — all processed locally in your browser. No signup required.

Permutation & Combination Calculator

Enter n (total items) and r (items chosen), then click Calculate to get P(n,r) and C(n,r) with formula display and step-by-step solutions. Supports big integers up to n = 1000. All calculations run instantly in your browser — no data is ever sent to any server.

0 ≤ n ≤ 1000

0 ≤ r ≤ n

Permutation: P(n,r) = n! / (n−r)!
Combination: C(n,r) = n! / (r! × (n−r)!)

Quick Examples

Key difference: Permutation — order matters (ABC ≠ BAC). Combination — order doesn't matter (ABC = BAC). P(n,r) is always ≥ C(n,r), and P(n,r) = C(n,r) × r!

Why Use Our Permutation Combination Calculator?

Instant P(n,r) and C(n,r) Calculation

Calculate both permutations and combinations simultaneously in milliseconds. Our permutation and combination calculator shows P(n,r) and C(n,r) side by side with their relationship — all processed instantly in your browser.

Secure Permutation Combination Calculator Online

All permutation and combination calculations run 100% locally in your browser. Your values never leave your device — use our permutation combination calculator online with complete privacy and zero data collection.

Permutation Combination Calculator — No Installation

Use our permutation and combination calculator directly in any browser with no downloads, plugins, or app installs required. Calculate P(n,r) and C(n,r) from any device, anywhere, with no setup needed.

Big Integer Support & Pascal's Triangle

Our permutation combination calculator supports n up to 1000 using BigInt arithmetic — no overflow, no rounding. Results include step-by-step solutions and a Pascal's Triangle row showing all C(n,r) values for the given n.

Common Use Cases for Permutation Combination Calculator

Probability & Statistics Education

Students studying probability, combinatorics, and statistics need to compute P(n,r) and C(n,r) regularly. Our permutation combination calculator shows the formula, substitution, and step-by-step solution — perfect for homework and exam preparation.

Card Games & Lottery Probability

Calculating the number of possible poker hands, lottery combinations, or card arrangements requires combinations. For example, C(52,5) = 2,598,960 possible 5-card poker hands. Our calculator handles these instantly.

Sports & Tournament Scheduling

The number of ways to arrange a podium (permutation) or select a team (combination) from a group of athletes is a classic P/C problem. Use our permutation combination calculator to plan tournaments and seedings.

Programming & Algorithm Design

Combinatorics problems appear in coding interviews, dynamic programming, and algorithm analysis. Our permutation combination calculator verifies outputs for problems involving subsets, arrangements, and counting.

Science & Research

Experimental design, genetics (gene combinations), and chemistry (molecular arrangements) all involve combinatorial calculations. Our calculator supports n up to 1000 with exact BigInt results for large-scale scientific problems.

Business & Decision Making

Selecting a committee from employees, arranging products on shelves, or choosing a subset of features for a product launch all involve permutations and combinations. Our calculator gives exact counts for any business scenario.

Understanding Permutations and Combinations

What are Permutations and Combinations?

Permutations and combinations are counting techniques in combinatorics. A permutation P(n, r) counts the number of ways to arrange r items chosen from n distinct items where order matters. A combination C(n, r) counts the number of ways to select r items from n distinct items where order does not matter. The key difference: choosing {A, B, C}and {C, B, A} is the same combination but two different permutations. Our permutation combination calculator computes both simultaneously using exact BigInt arithmetic for n up to 1000.

How Our Permutation Combination Calculator Works

  1. 1. Enter n and r: n is the total number of items; r is the number of items being chosen or arranged. Both must be non-negative integers with r ≤ n and n ≤ 1000.
  2. 2. Instant calculation: Click Calculate to see P(n,r) and C(n,r) side by side, along with the relationship P(n,r) = C(n,r) × r! — all processed locally in your browser.
  3. 3. View steps and Pascal's Triangle: Click "Show Steps" for the full formula derivation. For n ≤ 20, a Pascal's Triangle row shows all C(n, k) values with your selected r highlighted.

Formulas and Definitions

  • Permutation P(n, r): P(n, r) = n! / (n − r)! The number of ordered arrangements of r items from n distinct items. Example: P(5, 2) = 5! / 3! = 5 × 4 = 20. There are 20 ways to arrange 2 items chosen from 5 (e.g. first and second place in a race of 5 runners).
  • Combination C(n, r): C(n, r) = n! / (r! × (n − r)!) The number of unordered selections of r items from n distinct items. Also written as ⁿCᵣ or "n choose r". Example: C(5, 2) = 5! / (2! × 3!) = 10. There are 10 ways to choose 2 items from 5 (e.g. selecting 2 players from a team of 5).
  • Relationship Between P and C: P(n, r) = C(n, r) × r! Every combination can be arranged in r! ways to produce a permutation. So P(n,r) is always r! times larger than C(n,r). For r = 0 or r = 1, P = C. For r = n, P(n,n) = n! and C(n,n) = 1.

Key Properties

  • Symmetry: C(n, r) = C(n, n−r). Choosing r items is equivalent to choosing which n−r items to leave out.
  • Edge cases: C(n, 0) = C(n, n) = 1. P(n, 0) = 1. P(n, n) = n!
  • Pascal's identity:C(n, r) = C(n−1, r−1) + C(n−1, r). This is the rule that generates Pascal's Triangle.
  • Sum of a row: The sum of all C(n, r) for r = 0 to n equals 2ⁿ — the total number of subsets of n items.

Frequently Asked Questions About Permutation Combination Calculator

A permutation combination calculator computes P(n,r) — the number of ordered arrangements — and C(n,r) — the number of unordered selections — of r items from n distinct items. Our calculator shows both results simultaneously with step-by-step solutions, supports BigInt for n up to 1000, and runs entirely in your browser with no signup required.

In a permutation, order matters — choosing A then B is different from choosing B then A. In a combination, order does not matter — {A, B} and {B, A} are the same selection. P(n,r) counts arrangements; C(n,r) counts selections. P(n,r) = C(n,r) × r!, so permutations are always ≥ combinations.

P(5,2) = 5!/(5−2)! = 5×4 = 20. There are 20 ordered arrangements of 2 items from 5 (e.g. 1st and 2nd place from 5 runners). C(5,2) = 5!/(2!×3!) = 10. There are 10 unordered selections of 2 items from 5 (e.g. choosing 2 players from a team of 5).

"n choose r" is another name for the combination C(n,r), also written as ⁿCᵣ or the binomial coefficient (n r). It represents the number of ways to choose r items from n without regard to order. It appears in the binomial theorem, Pascal's Triangle, and probability theory.

Pascal's Triangle is a triangular array where each entry is C(n,r) — the combination of n items taken r at a time. Row n of Pascal's Triangle contains C(n,0), C(n,1), …, C(n,n). Each entry equals the sum of the two entries above it: C(n,r) = C(n−1,r−1) + C(n−1,r). Our calculator shows the full Pascal's Triangle row for n ≤ 20.

There are C(52,5) = 2,598,960 possible 5-card poker hands from a standard 52-card deck. Since the order of cards in a hand does not matter, this is a combination problem. Enter n=52, r=5 in our permutation combination calculator to verify instantly.

Yes, completely. All permutation and combination calculations run 100% locally in your browser using JavaScript BigInt. Your values are never sent to any server, stored, or logged. Use our permutation combination calculator online with full confidence in your privacy.

Yes. Our permutation combination calculator is 100% free with no signup, no account, no premium tier, and no usage limits. Calculate P(n,r) and C(n,r) as many times as you need — completely free, forever.

Our permutation combination calculator supports n up to 1000 using JavaScript BigInt arithmetic, which handles arbitrarily large integers without overflow or rounding. For very large results (more than 20 digits), the result is displayed in scientific notation with the digit count shown.