Skip to content
Mathematics & StatisticsLocal · Stays on device

Combinatorics Calculator

Calculate permutations (nPr), combinations (nCr), selections with repetition, multiset arrangements and exact factorials.

  • Whole numbers
  • Free to use
  • No sign-up or watermark
combinatorics-calculatorOn this device

About this tool

Count the ways to choose r items from n. Pick whether order matters and whether repetition is allowed, and the matching count is highlighted with its formula: permutations nPr = n!/(n − r)!, combinations nCr = n!/(r!(n − r)!), ordered selections with repetition nʳ, and combinations with repetition C(n + r − 1, r). All four are listed so you can compare them.

Factorial mode gives every digit of n! up to 20,000! (77,338 digits), and the multiset mode counts distinct arrangements of items with repeats, such as the letters of MISSISSIPPI (34,650). Everything is exact BigInt arithmetic; long results are summarised in scientific notation with the full value available to copy. Everything is calculated in your browser; nothing you enter is uploaded.

  1. Input

    Your details

    Whole numbers

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Shown instantly, ready to copy or export

Local processing pipelineBigInt exact arithmetic

How to use it

  1. 1

    Choose “Choose r from n”, “Factorial” or “Arrange identical items”.

  2. 2

    Enter n and r (or the group sizes) and set whether order and repetition matter.

  3. 3

    Read the highlighted count, the formula and the other three counts.

Zero-upload architecture

How to use Combinatorics Calculator for free, with no upload

Free, with no sign-up or watermark · Your details stay on your device

  1. 1

    Open Combinatorics Calculator

    Launch the app. There is nothing to install and no account to create.

  2. 2

    Work through it

    Enter n and r (or the group sizes) and set whether order and repetition matter.

  3. 3

    Get your result

    Read the highlighted count, the formula and the other three counts.

All 31 maths tools
  • Local

    Prime Factorization Tool

    Find the prime factors of a whole number up to 40 digits, plus all divisors, the divisor count and sum, and Euler’s totient.

    Open tool
  • Local

    Descriptive Statistics Calculator

    Calculate mean, median, mode, variance, standard deviation, quartiles, outliers and skewness, with a box plot and frequency table.

    Open tool
  • Local

    Sequence Calculator

    Generate arithmetic and geometric sequences, find the n-th term, or detect the pattern from terms you enter.

    Open tool
  • Local

    Normal Distribution Calculator

    Find normal probabilities below, above, between or outside values, and the values (quantiles) for a given probability, with a shaded curve.

    Open tool