Combinations and permutations

MA-14Math

Count combinations, permutations and variations with or without repetition — even for large numbers.

What to calculate

Last updated: October 2026 · Report a calculation error

Combinations, permutations, variations — what’s the difference?

TypeOrderRepetitionFormulaExample
Permutationsmatters—n!ways to line up 5 people: 120
Variations without repetitionmattersnon! / (n − k)!podium of 3 from 10 athletes: 720
Variations with repetitionmattersyesnᵏ4-digit PINs: 10,000
Combinationsdoesn’t matternon! / (k!(n − k)!)lottery 6 of 49: 13,983,816
Combinations with repetitiondoesn’t matteryesC(n + k − 1, k)3 scoops from 4 flavours: 20

How to pick the right formula

  1. Does order matter? (podium, code, arrangement — yes; team line-up, set of numbers — no).
  2. Can items repeat? (digits in a PIN — yes; people in a team — no).
  3. Are you using all the items? If so and order matters, it’s a permutation.

The calculator works exactly with big integers — even 1000! (a 2,568-digit number) is shown in full.

Frequently asked questions

How many combinations are there in a 6/49 lottery?

C(49, 6) = 13,983,816, so one line has a 1 in 13,983,816 chance of the jackpot.

What is a factorial?

The product of whole numbers from 1 to n: 5! = 1 × 2 × 3 × 4 × 5 = 120. By definition 0! = 1.

See alsoWhole category

  1. MA-01Percentage calculatorFind X% of a number, what percent one number is of another and percentage change.
  2. MA-02Root and exponent calculatorCalculate the n-th root or any power of a number.
  3. MA-03Fraction calculatorAdd, subtract, multiply and divide fractions with automatic simplification.
  4. MA-04Number base converterConvert numbers between decimal, binary, octal and hexadecimal.