Skip to content
The Calculatorz
Probability & counting

Permutation and Combination Calculator

Calculate arrangements and selections of r items from n items, with and without regard to order.

This calculator treats all n items as distinct and selections as being made without replacement. Inputs are limited to n ≤ 170 to stay within browser numeric range.

Total items and selected items

Selection

How to use this calculator

Enter the number of distinct available items and the number selected. Use permutations when order matters and combinations when the same selected group counts once regardless of order.

Formula

Permutations nPr = n! ÷ (n − r)!. Combinations nCr = n! ÷ [r!(n − r)!].

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewIfrahMSc Mathematics

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

When should I use a permutation?

Use it when different orders count as different outcomes, such as podium positions.

When should I use a combination?

Use it when only membership matters, such as choosing a committee.

Can r be greater than n?

No. You cannot select more distinct items than are available without replacement.

How many lottery combinations are there?

Use combinations because order does not matter. Choosing 6 numbers from 49 gives C(49, 6) = 13,983,816 possible combinations.

What is a factorial?

n! is the product of all whole numbers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120, and by definition 0! = 1.

How many ways can 3 people be chosen from 10?

If order does not matter, it is a combination: 10C3 = 10! ÷ (3! × 7!) = 120. If order matters, such as first, second and third place, it is a permutation: 10P3 = 720.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Abramson, J. (2021). Precalculus 2e. OpenStax. View source
  2. Ross, S. M. (2019). A first course in probability (10th ed.). Pearson. View source
  3. Abramson, J. (2021). College algebra 2e. OpenStax. View source
  4. Olver, F. W. J., Lozier, D. W., Boisvert, R. F., & Clark, C. W. (Eds.). (2024). NIST Digital Library of Mathematical Functions. National Institute of Standards and Technology. View source
  5. International Organization for Standardization. (2019). ISO 80000-2: Quantities and units—Part 2: Mathematics. View source