This account already has saved data. Do you want to keep this device's data, or use your account's saved data?
Appearance
Unit System
Temperature Format
Time Format
Permutation and Combination
Permutations (Order Matters)
The Numbers
Permutations (Order Matters)
The Numbers
Your Recent & Past Results
Restored a past calculation.
Compare Calculations
Side-by-Side Comparison
A comparison of your calculations' results.
Downloads
Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
Counting Arrangements and Selections From a Group
A permutation (nPr) counts how many ways to arrange r items out of n where order matters, while
a combination (nCr) counts how many ways to choose r items out of n where order doesn’t matter.
Enter a total number of items (n) and how many you’re choosing (r), and this calculator finds both
related answers at once.
The Formulas
Permutations:P(n,r)=(n−r)!n! — equivalently, the
product of r descending numbers starting at n:
n×(n−1)×⋯×(n−r+1).
Combinations:C(n,r)=r!P(n,r) — the same
permutations count, divided by the r! ways those same r items could themselves
be reordered (since order doesn’t matter for a combination).
Worked Example
Choosing 3 items from a group of 10, where order matters (permutations):
P(10,3)=10×9×8=720
The same choice where order does NOT matter (combinations):
C(10,3)=720÷3!=720÷6=120
A Real-World Check
The odds of matching all 6 numbers in a 6-from-49 lottery draw are 1 in C(49,6) — exactly
13,983,816 — since the order the numbers are drawn in doesn’t change whether you’ve won.
Key Factors to Consider
Whether order matters is the single question that determines which formula applies.
Arranging medal winners on a podium (1st, 2nd, 3rd place matters) is a permutation problem,
while choosing which 3 people make a committee (no ranking involved) is a combination problem —
identifying this distinction correctly is the most common source of error when applying these
formulas.
Combinations always produce an equal or smaller count than permutations for the same n and
r. Since a combination groups together every possible ordering of the same r items into a
single count, C(n,r) is always P(n,r) divided by r! — the two values only match exactly when
r is 0 or 1, since there’s only one way to arrange 0 or 1 items regardless of order.
Both permutation and combination counts grow extremely fast as n and r increase. This
explosive growth (called combinatorial explosion) is exactly why lottery-style odds get so
astronomically small with just a modest increase in how many numbers are drawn from — going from
a 6-from-49 lottery to a 6-from-59 lottery, for example, meaningfully worsens the odds despite
the pool only growing by 10 numbers.
These formulas assume every item is distinct and none can be chosen more than once. A
scenario allowing repeated selections (like a 4-digit PIN where digits can repeat) uses a
different counting formula entirely — always confirm whether repetition is allowed before
applying the standard nPr/nCr formulas here.
Common Mistakes
Using the permutation count when order genuinely doesn’t matter, or vice versa. This is the
single most common error — always ask first whether swapping two selected items would count as a
different outcome before picking a formula, rather than guessing based on how the problem is
worded.
Forgetting that combinations are never larger than permutations for the same n and r. If a
combination count comes out bigger than the corresponding permutation count for the same inputs,
something was entered wrong — combinations divide the permutation count down, they never inflate
it.
Applying these formulas to a situation that allows repeated selections. Both formulas assume
every item can be picked at most once — a problem that allows repeats (like generating a 4-digit
PIN) needs a different counting approach entirely, not nPr or nCr.
Useful to Know
Want to actually calculate the odds of a specific outcome, not just count the possibilities?
Probability Calculator turns a combination or permutation count into an actual probability.
Working with a full data set instead of just counting arrangements? Statistics Calculator
computes mean, standard deviation, and other summary figures from a list of numbers.
Need to simplify a ratio or find a common denominator as part of a related combinatorics problem?
Greatest Common Factor and Least Common Multiple Calculator finds the greatest common factor and least common multiple of a set of
numbers.
Contar Ordenamientos y Selecciones de un Grupo
Una permutación (nPr) cuenta de cuántas formas se pueden ordenar r elementos de un total de n
donde el orden importa, mientras que una combinación (nCr) cuenta de cuántas formas se pueden
elegir r elementos de un total de n donde el orden no importa. Ingresa un número total de
elementos (n) y cuántos estás eligiendo (r), y esta calculadora encuentra ambas respuestas
relacionadas a la vez.
Las fórmulas
Permutaciones:P(n,r)=(n−r)!n! — equivalentemente,
el producto de r números descendentes que comienzan en n:
n×(n−1)×⋯×(n−r+1).
Combinaciones:C(n,r)=r!P(n,r) — el mismo conteo de
permutaciones, dividido entre las r! formas en que esos mismos r elementos
podrían reordenarse entre sí (ya que el orden no importa en una combinación).
Ejemplo resuelto
Eligiendo 3 elementos de un grupo de 10, donde el orden importa (permutaciones):
P(10,3)=10×9×8=720
La misma elección donde el orden NO importa (combinaciones):
C(10,3)=720÷3!=720÷6=120
Una comprobación del mundo real
Las probabilidades de acertar los 6 números en un sorteo de lotería de 6 de 49 son 1 en C(49,6) —
exactamente 13,983,816 — ya que el orden en que se sortean los números no cambia si ganaste o
no.
Factores Clave a Considerar
Si el orden importa es la única pregunta que determina qué fórmula aplica. Ordenar a los
ganadores de medallas en un podio (importa 1.º, 2.º, 3.º lugar) es un problema de permutación,
mientras que elegir qué 3 personas forman un comité (sin clasificación involucrada) es un problema
de combinación — identificar correctamente esta distinción es la fuente de error más común al
aplicar estas fórmulas.
Las combinaciones siempre producen un conteo igual o menor que las permutaciones para los
mismos n y r. Como una combinación agrupa cada ordenamiento posible de los mismos r elementos en
un solo conteo, C(n,r) siempre es P(n,r) dividido entre r! — los dos valores solo coinciden
exactamente cuando r es 0 o 1, ya que solo hay una forma de ordenar 0 o 1 elementos sin importar el
orden.
Tanto los conteos de permutaciones como de combinaciones crecen extremadamente rápido a medida
que aumentan n y r. Este crecimiento explosivo (llamado explosión combinatoria) es exactamente
la razón por la que las probabilidades tipo lotería se vuelven tan astronómicamente pequeñas con
solo un aumento modesto en cuántos números se sortean — pasar de una lotería de 6 de 49 a una de 6
de 59, por ejemplo, empeora significativamente las probabilidades a pesar de que el conjunto solo
crece en 10 números.
Estas fórmulas asumen que cada elemento es distinto y que ninguno puede elegirse más de una
vez. Un escenario que permite selecciones repetidas (como un PIN de 4 dígitos donde los dígitos
pueden repetirse) usa una fórmula de conteo completamente distinta — siempre confirma si se
permite la repetición antes de aplicar las fórmulas estándar nPr/nCr de aquí.
Errores Comunes
Usar el conteo de permutaciones cuando el orden realmente no importa, o viceversa. Este es
el error más común — siempre pregunta primero si intercambiar dos elementos seleccionados
contaría como un resultado diferente antes de elegir una fórmula, en lugar de adivinar según cómo
esté redactado el problema.
Olvidar que las combinaciones nunca son mayores que las permutaciones para los mismos n y r.
Si un conteo de combinaciones resulta mayor que el conteo de permutaciones correspondiente para
las mismas entradas, algo se ingresó mal — las combinaciones dividen el conteo de permutaciones
hacia abajo, nunca lo inflan.
Aplicar estas fórmulas a una situación que permite selecciones repetidas. Ambas fórmulas
asumen que cada elemento se puede elegir como máximo una vez — un problema que permite
repeticiones (como generar un PIN de 4 dígitos) necesita un enfoque de conteo completamente
distinto, no nPr ni nCr.
Útil Saber
¿Quieres calcular realmente las probabilidades de un resultado específico, no solo contar las
posibilidades? Calculadora de Probabilidad convierte un conteo de combinaciones o
permutaciones en una probabilidad real.
¿Estás trabajando con un conjunto de datos completo en lugar de solo contar ordenamientos?
Calculadora de Estadística calcula la media, la desviación estándar y otras cifras
resumen a partir de una lista de números.
¿Necesitas simplificar una razón o encontrar un denominador común como parte de un problema de
combinatoria relacionado? Calculadora de Máximo Común Divisor y Mínimo Común Múltiplo encuentra el máximo común divisor y el
mínimo común múltiplo de un conjunto de números.
What's the difference between a permutation and a combination?
A permutation counts arrangements where ORDER matters — 1st, 2nd, and 3rd place in a race are different outcomes even with the same three runners. A combination counts selections where order does NOT matter — a 3-person committee is the same group regardless of who was picked first.
Which one should I use for my problem?
Ask whether swapping the order of your selected items would count as a different outcome. If yes (arranging books on a shelf, assigning 1st/2nd/3rd place), use permutations. If no (picking a team, choosing lottery numbers, selecting a committee), use combinations.
Why is there a limit on how large n can be?
Permutations and combinations grow extremely fast — n! for even moderately large n produces numbers far beyond what can be represented exactly in JavaScript's number type. This calculator caps n at 1000 to keep results meaningful rather than silently returning an imprecise or infinite value.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.