Math & StatisticsFormula-based · Runs in your browser

Permutation Calculator

Calculate Permutations (nPr) and Combinations (nCr).

Loading calculator…

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    Permutations nPr = n! ÷ (n−r)!; combinations nCr = n! ÷ [r!(n−r)!].

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

Calculate Permutations (nPr) and Combinations (nCr).

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

2
  • ?n= Total Items (n)

    Number · Optional · Default: 10

  • ?r= Items to Choose (r)

    Number · Optional · Default: 3

Outputs

1
  • result Result

    Text · Primary output

result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.

Solve for permutations (nPr) and combinations (nCr)

Description

The Permutation (and Combination) Calculator is an essential tool for “enumerative combinatorics”—the math of counting possible arrangements. It helps you determine how many ways you can select a subset of items from a larger group. It provides two distinct results: Permutations (where the order of selection creates a different outcome) and Combinations (where only the selection group matters, regardless of order).

Inputs

  • Total Items (n): The size of the pool you are selecting from.
  • Items to Choose (r): The number of items you are actually picking.

Outputs

  • Permutations (nPr): Total arrangements where order matters (e.g., a 1st, 2nd, and 3rd place race).
  • Combinations (nCr): Total groups where order does not matter (e.g., picking a committee of 3 people).

Chart

  • N/A: This tool provides categorized counting results.

“Good to Know”

  • “Order Matters” Example: For the letters A and B, there are 2 permutations (AB, BA) but only 1 combination (the group containing both letters).
  • Formula (nPr): $n! / (n-r)!$
  • Formula (nCr): $n! / (r! \cdot (n-r)!)$
  • Exponential Growth: The number of arrangements grows incredibly fast as $n$ increases. A standard 52-card deck has more possible permutations than there are atoms in the solar system!

Examples

Example 1: Picking a Committee

  • Input: Total (n): 10, Choose (r): 3
  • Output:
    • Permutations: 720
    • Combinations: 120 (Choosing a 3-person team from 10)

Example 2: Assigning Race Winners

  • Input: Total (n): 8, Choose (r): 3
  • Output:
    • Permutations: 336 (Ways for 8 runners to take Gold, Silver, and Bronze)

Example 3: Small Pair

  • Input: Total (n): 3, Choose (r): 2
  • Output:
    • Permutations: 6
    • Combinations: 3
Sources
  • No external reference is listed for this calculator. Its formula and variable definitions are shown above.
Limitations
  • Results depend on the selected method and input assumptions. Displayed decimals may be rounded; retain appropriate precision for later calculations.