Discover
Random

Permutation & Combination Calculator

Calculate nPr and nCr, with or without repetition, using exact arithmetic and full factorial working.

Calculations use exact BigInt arithmetic, so large factorials remain precise. Runs entirely in your browser.

Free Permutation and Combination Calculator

Need to calculate nPr or nCr for a probability or combinatorics problem? Our free permutation and combination calculator computes both instantly from n and r, with the full factorial working shown step by step.

Choose whether order matters (permutations) or doesn't (combinations), and whether repetition is allowed — covering all four standard combinatorics formulas in one tool. Large values of n are handled precisely using exact arithmetic, so results stay accurate even when factorials get enormous, switching to scientific notation only when a number is too large to display in full.

Whether you're solving a lottery-odds problem, a seating arrangement, a password combination count, or a stats homework question, this tool gives you the exact answer with the formula and working shown. No sign-up, no downloads, completely free. See the About and FAQ sections below for more.

About the Permutation & Combination Calculator

How It Works & Methodology

Enter n and r, choose a mode, and get an exact result computed with BigInt arithmetic — so factorials stay precise even for large n — along with the fully substituted formula.

Features

Four modes

nPr, nCr, and their with-repetition variants.

Exact large-number arithmetic

BigInt keeps factorials precise; huge results switch to scientific notation.

Step-by-step working

The factorial formula shown fully substituted.

Input validation

r > n without repetition is flagged, not silently wrong.

Mathematical Basis & Practical Verification

The Permutation & Combination Calculator is built on parametric and non-parametric probability distributions, hypothesis test statistics (Z, t, χ²), and descriptive quartile/dispersion formulas. Free online permutation and combination calculator computing nPr and nCr, with and without repetition, using exact BigInt arithmetic and step-by-step factorial working. Key capabilities built into this tool include npr and ncr, with and without repetition, exact large-number arithmetic, and step-by-step working.

All computations for the Permutation & Combination follow the definitions established in NIST/SEMATECH e-Handbook of Statistical Methods (National Institute of Standards and Technology (NIST)) and ISO 3534-1: Statistics — Vocabulary and Symbols (International Organization for Standardization (ISO)). Because the solver evaluates inputs locally in IEEE 754 double-precision arithmetic (53-bit significand, ~15–17 significant decimal digits) and is regression-tested against deterministic reference fixtures in tests/permutation-combination.spec.ts, you can inspect boundary conditions, verify dimensional consistency across statistics units, and cross-check each intermediate step against textbook solutions.

Authoritative Sources & Standards

  1. NIST/SEMATECH e-Handbook of Statistical Methods — National Institute of Standards and Technology (NIST)
  2. ISO 3534-1: Statistics — Vocabulary and Symbols — International Organization for Standardization (ISO)

Frequently Asked Questions

What's the difference between a permutation and a combination?

A permutation counts arrangements where order matters; a combination counts selections where order doesn't matter.

How is nPr calculated?

Using n! / (n−r)!, the number of ordered ways to choose r items from n.

How is nCr calculated?

Using n! / (r!(n−r)!), the number of unordered ways to choose r items from n.

What does "with repetition" mean?

It allows the same item to be chosen more than once, which changes the formula (n^r for permutations, (n+r−1)Cr for combinations).

What if r is greater than n?

Without repetition that's impossible (you can't choose more items than exist), so the calculator flags it as invalid rather than returning zero silently.

Can it handle large numbers like 20!?

Yes, exact arithmetic is used so large factorials remain precise; extremely large results switch to scientific notation for display.

Does it show the factorial working?

Yes, the formula is shown fully substituted with your n and r values, including the computed factorials.

Can n or r be zero?

Yes, both are valid: 0! = 1, so results involving zero are handled correctly (e.g. nC0 = 1).

Embed Permutation & Combination Calculator

Copy and paste this HTML snippet to embed this interactive calculator on your website or blog:

Discover more tools

Surprise me