Permutation & Combination Calculator

Permutation & Combination Calculator

Calculate permutations nPr = n! / (n-r)! (order matters) and combinations nCr = n! / (r!(n-r)!) (order does not matter).

Combinatorics Results
Permutations (nPr)
336
Order Matters
Combinations (nCr)
56
Order Does Not Matter
Factorial (n!)
40320
8!

At a Glance

Category
Probability
Best For
Students and puzzle or card-game enthusiasts counting arrangements
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Computes the number of ordered and unordered selections of r objects from n.

Who Should Use It

Probability students, teachers and game designers.

When to Use It

Counting hands, committees, passwords or seating orders.

Why It Is Useful

Counting problems explode quickly; the formulas give exact answers.

Key Features & Capabilities

Permutations and combinations

Ordered and unordered counts together.

Factorial

n! for n up to 20 shown exactly.

Input checks

Rejects invalid inputs unless n ≥ r ≥ 0.

How to Use This Tool

1

Enter n

Type the total number of objects. Tip: Use a whole number.

2

Enter r

Type how many you choose. Tip: r cannot exceed n.

3

Decide on order

Use permutations if order matters and combinations if it does not. Tip: Hands of cards use combinations.

4

Read the counts

Large results are shown in full. Tip: Compare nPr and nCr: nPr = nCr × r!.

Worked Real-World Example

A five-card poker hand

How many five-card hands can be dealt from a standard 52-card deck, and how many ordered deals are there?

Sample Inputs
Total objects (n)52
Sample size (r)5
Combinations2,598,960 distinct five-card hands
Calculation Breakdown
Ordered deals: 52 × 51 × 50 × 49 × 48 = 311,875,200
Orderings of 5 cards: 5! = 120
Unordered hands: 311,875,200 ÷ 120 = 2,598,960
Probability of one specific hand: 1 ÷ 2,598,960 = about 0.00004%
Each hand can be dealt in 120 different orders, which is why ordered deals outnumber hands by a factor of 120.

How It Works (Math & Calculation Logic)

nPr = n! ÷ (n − r)!. nCr = n! ÷ (r!(n − r)!). n and r are rounded down to whole numbers. n! is shown for n up to 20.

Formula / AlgorithmnPr = n! ÷ (n − r)! nCr = n! ÷ (r!(n − r)!)
Variable & Logic Definitions
nTotal objects - Size of the set (count)
rChosen - Number selected (count)

How to Interpret Your Results

Typical Benchmarks

Counts grow very fast: 52 choose 5 is about 2.6 million; 52 choose 26 is over 4 × 10^14.

Evaluating Your Output

nCr = nC(n − r).

Recommended Next Action

Pick permutations only when the order of selection matters.

Frequently Asked Questions

What is the difference between a permutation and a combination?
Permutations count ordered selections; combinations count unordered ones.
How many 5-card poker hands are there?
There are 2,598,960 possible five-card hands.
What is nCr?
The number of ways to choose r items from n without regard to order.
What if r is larger than n?
The inputs are invalid; r must not exceed n.
Where can I read more about factorials?
See the factorial calculator for n! up to 100.

Complementary QuickForma Utilities

Mathematics & Statistics

Probability Calculator

Calculate single-event, joint intersection P(A and B), union P(A or B), and complement probabilities.

Open Tool
Mathematics & Statistics

Binomial Probability Calculator

Calculate exact probability P(X = k), at least P(X >= k), and at most P(X <= k) for Binomial distributions.

Open Tool
Mathematics & Statistics

Confidence Interval Calculator

Calculate margin of error E = Z * (sigma / sqrt(n)) and lower/upper bounds for confidence intervals.

Open Tool
Mathematics & Statistics

Hypothesis Test Calculator

Calculate test statistic Z = (xbar - mu) / (s / sqrt(n)), two-tailed p-value, and significance decision.

Open Tool
Mathematics & Statistics

Prime Factorization Calculator

Breaks a whole number into its prime factors in exponent form and lists all of its divisors.

Open Tool
Mathematics & Statistics

Simple Linear Regression & R² Line of Best Fit

Calculates regression line equation ŷ = β₀ + β₁ x, correlation r, and coefficient of determination R².

Open Tool
Mathematics & Statistics

Sample & Population Standard Deviation Solver

Solves sample (s) and population (σ) standard deviation with variance steps.

Open Tool
Mathematics & Statistics

Factorial n! & Permutation Formula Solver

Online client-side Factorial n! & Permutation Formula Solver tool.

Open Tool
Mathematics & Statistics

Poisson Event Probability & Rate Solver

Online client-side Poisson Event Probability & Rate Solver tool.

Open Tool
Mathematics & Statistics

Bayesian Conditional Probability & Prior Solver

Online client-side Bayesian Conditional Probability & Prior Solver tool.

Open Tool