Permutation & Combination Calculator
Calculate nPr permutations and nCr combinations with step-by-step formula breakdowns. Supports with and without repetition. BigInt precision.
r must be less than or equal to n when repetition is disabled.
n must be a positive integer (1 to 1,000).
r must be a non-negative integer (0 to 1,000).
Permutations (nPr)
Order matters
—
Combinations (nCr)
Order does not matter
—
Step-by-Step Breakdown
Permutation
—
—
= —
Combination
—
—
= —
Enter n and r above to calculate permutations and combinations.
Formulae
nPr = n! / (n−r)! (without repetition)
nPr = n^r (with repetition)
nCr = n! / (r!(n−r)!) (without repetition)
nCr = (n+r−1)! / (r!(n−1)!) (with repetition)
How to use Permutation & Combination Calculator
-
Enter n (total items)
Type the total number of items in the set. For example, the number of players to choose from.
-
Enter r (items to choose)
Type how many items you are selecting or arranging. Must be ≤ n.
-
View nPr and nCr simultaneously
Both permutation and combination values appear instantly with formula expansions below.
-
Toggle repetition mode
Enable 'With Repetition' to calculate arrangements and selections where items can be chosen more than once.
-
Read the step-by-step working
Expand the working to see how factorials are applied at each stage of the calculation.
Permutation & Combination Calculator FAQ
What is the difference between permutation and combination?
What is the formula for permutations (nPr)?
What is the formula for combinations (nCr)?
What does 'with repetition' mean?
When do I use combinations vs permutations?
How is this related to probability?
What is 10C3?
How large can n and r be?
Can I use this for homework?
Is any data sent to a server?
Background
Calculate permutations and combinations for any values of n and r. Both nPr (ordered arrangements) and nCr (unordered selections) are computed simultaneously and displayed side by side with a step-by-step formula expansion — ideal for verifying homework or understanding the difference between the two. Repetition mode switches to the formulas for arrangements and selections where items can be reused. BigInt arithmetic provides exact results even for large factorials. Common applications include counting lottery combinations, password strength estimation, seating arrangements, genetics, probability problems, and combinatorics coursework. The tool explains which formula applies to your problem and why, making it educational as well as functional. All processing runs in your browser with no data uploaded.
Related tools
Factorial Calculator
Calculate n factorial, double factorial, subfactorial, trailing zeros, and digit count. BigInt support for exact large number results.
Probability Calculator
Calculate single event, compound AND/OR, conditional, and Bayes theorem probabilities with formula display. Results as fractions, decimals, and percentages.
GCD & LCM Calculator
Find the GCD and LCM of up to 10 numbers at once with step-by-step Euclidean algorithm and prime factorization methods.
Statistics Calculator
Calculate mean, median, mode, standard deviation, variance, quartiles, skewness, kurtosis, and range from any dataset. Histogram included.
Prime Number Tools
Check if a number is prime, find prime factorization, list all primes in a range using the Sieve of Eratosthenes, or find the Nth prime.