calculator.onl
Categories50

Permutations and combinations: nPr and nCr

Count ordered arrangements and unordered selections of r distinct objects from n. Exact integer results show why permutations equal combinations multiplied by r factorial.

A worked example

Choose one token from four, then choose two. Compare the counts with and without regard to order. Permutations nPr · 4 → 12 / Combinations nCr · 4 → 6.

Permutations nPr336Combinations nCr56r!6
Number of distinct items in the pool from which the selection is made. n: 0…500

Number of items chosen from that pool for each arrangement or group. r: 0…500

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Permutations nPr

336

Calculated from your inputs

Combinations nCr56
r!6
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Count ordered arrangements and unordered selections of r distinct objects from n. Exact integer results show why permutations equal combinations multiplied by r factorial. For a related calculation, try Binomial probability calculator.

What to enter

InputWhat it meansExample value
nNumber of distinct items in the pool from which the selection is made. n: 0…5006
rNumber of items chosen from that pool for each arrangement or group. r: 0…5002

How the calculation works

  1. Count ordered arrangements and unordered selections of r distinct objects from n. Exact integer results show why permutations equal combinations multiplied by r factorial.
  2. nPr=n!/(n−r)!; nCr=nPr/r!; 0≤r≤n≤500; 0!=1
  3. No replacement; integers 0 ≤ r ≤ n ≤ 500. The visual uses at most 12 sample tokens and does not enumerate every outcome.
The formulanPr=n!/(n−r)!; nCr=nPr/r!; 0≤r≤n≤500; 0!=1

A worked example

n=6; r=2 → nPr=6×5=30; nCr=30/2!=15. n=0; r=0 → nPr=nCr=r!=1.

Example you can load

What to enter
Result for this example · Permutations nPr30

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

No replacement; integers 0 ≤ r ≤ n ≤ 500. The visual uses at most 12 sample tokens and does not enumerate every outcome.

Frequently asked questions

Permutations nPr?

Count ordered arrangements and unordered selections of r distinct objects from n. Exact integer results show why permutations equal combinations multiplied by r factorial.

Combinations nCr?

nPr=n!/(n−r)!; nCr=nPr/r!; 0≤r≤n≤500; 0!=1

r?

No replacement; integers 0 ≤ r ≤ n ≤ 500. The visual uses at most 12 sample tokens and does not enumerate every outcome.