Combination Calculator

Type the total items n and how many you pick r, then Calculate. You get both the combination count C(n,r) and the permutation count P(n,r) for classroom, lottery-style, and sampling problems.

Updated 2026-08-06 · Utilities

Enter n and r, then click Calculate.

About this tool

Combinations ignore order using C(n,r)=n!/(r!(n-r)!). Permutations keep order with P(n,r)=n!/(n-r)!. Values are computed with integer BigInt steps so modest n stays exact. Non-integers, negatives, or r>n produce an error.

How to use

  1. Open the calculator: Load the page with fields for n and r.
  2. Enter n: Type the total number of items available.
  3. Enter r: Type how many items you select.
  4. Calculate both counts: Click Calculate and read C(n,r) and P(n,r) in the result.

Common use cases

Tips

FAQ

What is the difference between C and P?

C ignores order; P treats different orders as distinct.

Can r be larger than n?

No. That input is rejected with an error message.

Are results exact?

Yes for whole-number inputs; BigInt avoids floating rounding.

What about n equals r?

C(n,n) is 1 and P(n,n) is n!.

Related keywords

Related tools