Card shuffles are unique
There are 52! ways to order a deck—about 8×1067. Shuffle well and you likely create an arrangement the universe has never seen.
Enter n and r, pick options, then press Calculate.
Tip: Press Ctrl/Cmd + Enter to calculate.
This calculator helps you count possibilities when you’re choosing items from a set. It covers both permutations (order matters) and combinations (order doesn’t matter), with optional repetition when items can be reused. Whether you’re building a password, planning tournament brackets, or figuring out how many different teams can be formed, the tool gives you a fast, reliable answer.
Think of n as the number of available items and r as how many you want to pick. If you care about the order of the items—like arranging seats or ranking winners—you’re counting permutations. If you only care about the group itself—like choosing a committee or a set of lottery numbers—you’re counting combinations. When repetition is allowed, you can reuse the same item more than once (for example, a PIN code can repeat digits).
For those who want the math behind the results, the calculator uses these standard counting formulas:
Exact values are computed with BigInt. A scientific-notation approximation is also provided for large results.
Pick permutations when order matters (e.g., passwords, race rankings). Pick combinations when order does not matter (e.g., lottery tickets, committees).
Without repetition, that’s invalid (you can’t choose more distinct items than exist). With repetition allowed, it’s fine.
These counts grow very quickly; we show both the exact integer and an approximate scientific notation like \(1.23 \\times 10^{45}\).
Yes—everything runs entirely in your browser.
There are 52! ways to order a deck—about 8×1067. Shuffle well and you likely create an arrangement the universe has never seen.
A room of n people has C(n,2) unique handshakes. With 10 people, that’s 45 greetings.
Each row of Pascal’s triangle lists combination counts: row n gives C(n,0)…C(n,n). Adding a row always sums to 2ⁿ.
A 6‑character code using 10 digits has 10⁶ possibilities. Add letters/symbols and order sensitivity explodes the search space.
Combinations with repetition use the classic “stars and bars” trick: C(n+r-1, r) counts ways to place r identical stars into n bins.