🎲

Permutation and Combination Calculator

Work out nPr and nCr with or without repetition, see the working, and explore factorials and Pascal's triangle.

Works in BrowserInstant
Working
Reference
Pascal's Triangle — row n, position r highlighted
Order matters? Use a permutation — arranging 3 people in 3 chairs, or a PIN code. Order doesn't matter? Use a combination — picking 3 people for a team, or lottery numbers. Results above 2⁵³ are shown in exponential form because they exceed exact integer precision in the browser.