Skip to content

Permutation & Combination Calculator

New
Calculators•Client-Side & Private

Work out permutations (nPr) and combinations (nCr) for whole-number n up to 500 and r up to n, with exact answers, step-by-step working and factorial expansions. Free, no sign-up.

Tool workspace

Enter n (total items) and r (items picked). Exact answers, even for large numbers.

Whole number from 0 to 500.

Whole number, no bigger than n.

Formulas: nPr = n! ÷ (n − r)! (order matters) and nCr = n! ÷ (r! × (n − r)!) (order does not matter). Results are exact — calculated with BigInt, so no rounding even for very large answers.

Permutations (nPr) — order matters

720

10P3 = 10! ÷ 7!

Combinations (nCr) — order doesn't matter

120

10C3 = 10! ÷ (3! × 7!)

Choosing 3 out of 10: there are 720 ways when the order matters (for example, 1st, 2nd and 3rd places are different prizes) and 120 ways when the order does not matter (for example, picking a team of 3 — the same people in any order count as one team).

Step-by-step working

Permutations (nPr)

nPr = n! ÷ (n − r)! = 10! ÷ (10 − 3)! = 10! ÷ 7!

= (10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1) ÷ (7 × 6 × 5 × 4 × 3 × 2 × 1) = 720

Combinations (nCr)

nCr = n! ÷ (r! × (n − r)!) = 10! ÷ (3! × 7!)

= (10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1) ÷ ((3 × 2 × 1) × (7 × 6 × 5 × 4 × 3 × 2 × 1)) = 120

Check: nCr = nPr ÷ r! = 720 ÷ 6 = 120

Factorials used

10! = 3,628,800

3! = 6

7! = 5,040

0! = 1 by definition, so picking 0 items always gives exactly 1 way. n is capped at 500 to keep the exact calculation instant in your browser.

Loading tool controls…

Calculations processed locally — numerical inputs never leave your browser
Free Instant Private

Verify it yourself: press F12, open the Network tab, and use this tool — your inputs never leave your browser.

Permutation & Combination Calculator at a glance

Price
Free
Account
Not required
File uploads
None — your files are never uploaded
Category
Calculators

Who uses Calculators?

Students, homeowners and small businesses working out money, health or study figures — from mortgages to BMI.

How to Use Permutation & Combination Calculator

Follow these simple steps to get instant results in your browser.

1

Enter n and r

Type whole numbers only: n from 0 to 500, and r from 0 up to n. Decimals and minus signs are rejected.

2

Read nPr and nCr

The tool shows both answers at once, with the factorial values used and the check that nCr = nPr ÷ r!.

3

Follow the Step-by-Step Working

Expand each factorial to see how the answer is built, and copy the two headline numbers when you need them.

💡

What is Permutation & Combination Calculator & How Does It Work?

The Permutation & Combination Calculator works out nPr and nCr for whole-number n up to 500 and r up to n, with exact answers, step-by-step working and factorial expansions.

nPr = n! ÷ (n − r)! counts arrangements where order matters — picking 1st, 2nd and 3rd place. nCr = n! ÷ (r! × (n − r)!) counts selections where order does not matter — picking a team of 3. The two are linked: nCr is always nPr ÷ r!.

Answers are exact: the calculator uses BigInt arithmetic, so no rounding creeps in even for very large answers — 500! has 1,135 digits and is still exact. The step-by-step working shows full factorial expansions up to n = 20.

All calculations run in your browser. There is no “with repetition” mode — only selections without repetition — and factorial values in the working section are shortened once they pass 25 digits.

⚡

Key Features & Capabilities

✓

Exact BigInt Answers

No floating-point rounding, even for answers with hundreds of digits.

✓

Step-by-Step Working

Full factorial expansions up to n = 20, and cancelled top-terms form above that.

✓

nPr and nCr Together

Both answers at once, with the link nCr = nPr ÷ r! shown as a check.

✓

Whole Numbers to 500

n from 0 to 500 and r from 0 to n, with clear errors outside those limits.

✓

0! = 1 Handled

Picking nothing or picking everything gives exactly 1 way, as the formulas require.

Pro Tips

  • •Bookmark this tool for instant one-click access anytime.
  • •Adjust values using direct input or sliders for instantaneous recalculation.
  • •All processing happens in your browser session for maximum speed and data safety.

🎯 Common Use Cases

Checking HomeworkA student checks 10P3 = 720 and 10C3 = 120 against the step-by-step expansion.
Showing Teams vs PlacesA teacher shows why picking a 3-person team gives 120 ways while awarding 1st, 2nd and 3rd gives 720.
Counting Arrangements ExactlyA competition organiser counts exact arrangements for n up to 500 without rounding.
Verifying the Edge CasesWith r = 0 or r = n there is exactly 1 way — 0! = 1 makes the formulas work.
Comparing Two MethodsRun the same n and r through both formulas to see how much order matters for the count.
📐

Permutations and Combinations

Formula Equation:
nPr = n! ÷ (n − r)!; nCr = n! ÷ (r! × (n − r)!)

A permutation counts arrangements where order matters; a combination counts selections where it does not. There are more permutations than combinations whenever you pick at least 2 items and leave at least 1 unpicked — picking 0 or 1 item gives the same count either way. Factorial values in the working section are shortened above 25 digits; the headline answers are always shown in full.

✏️

Worked Example

  1. 1n = 10 · r = 3
  2. 210P3 = 10! ÷ 7! = 10 × 9 × 8 = 720
  3. 310C3 = 720 ÷ 3! = 720 ÷ 6 = 120
  4. 4Check: nCr = nPr ÷ r! = 720 ÷ 6 = 120
  5. 5n = 20 · r = 10
  6. 620P10 = 670,442,572,800
  7. 720C10 = 184,756
📚

Sources & Further Reading

Frequently Asked Questions about Permutation & Combination Calculator

Frequently asked questions

A permutation counts arrangements where the order matters — picking 1st, 2nd and 3rd place is a permutation, because the same three people in a different order is a different result. A combination counts selections where the order does not matter — picking a team of 3 is a combination, because the same three people in any order are the same team. That is why there are more permutations than combinations whenever you pick at least 2 items and leave at least 1 unpicked — picking 0 or 1 item gives the same count either way.

nPr equals n! divided by (n − r)!, and nCr equals n! divided by (r! × (n − r)!). For example, 10P3 = 10! ÷ 7! = 10 × 9 × 8 = 720, and 10C3 = 720 ÷ 3! = 720 ÷ 6 = 120. The two are linked: nCr is always nPr divided by r!, because r! is the number of ways to arrange the r picked items.

The calculator uses BigInt arithmetic, which handles whole numbers exactly without rounding, up to the n = 500 cap. Ordinary calculator math uses floating-point numbers, which start losing exact digits once answers pass about 15–16 digits — 20! is already 19 digits. Here n is capped at 500 to keep the calculation instant; 500! has 1,135 digits and is still exact.

The tool shows an error: r cannot be bigger than n, because you cannot choose more items than you have. Lower r to n or less — r = n means picking everything, which gives exactly 1 combination and n! permutations.

The headline answers are always shown in full, but the factorial values in the working section are shortened once they pass 25 digits — you see the first 40 characters and the total digit count instead. For example, 500! has 1,135 digits, so showing all of them would fill the page.

0! is defined as 1. It makes the formulas work when r is 0 or r equals n: there is exactly one way to pick nothing, and exactly one way to pick everything. With 0! = 1, the formulas give nP0 = 1, nC0 = 1 and nCn = 1, which is correct.

Complementary utilities for your workflow

View all →
You are here

Permutation & Combination Calculator

Work out nPr and nCr for whole-number n up to 500 and r up to n, with exact answers and step-by-step working.

Current tool
Popular

Probability Calculator

Calculate two-event union & intersection, series of independent trials, and permutations & combinations.

Try tool
New

Dice Roller

Roll d4–d100 dice with secure randomness, notation, totals and history.

Try tool