Combinations & Permutations Calculator

Compute nCr and nPr with or without repetition. Exact big-number output with copy and download.

Combinations & Permutations Calculator

Compute nCr and nPr with optional repetition and export-ready output.

Example: n = 10 distinct items available.
Example: k = 3 items selected or arranged.
Quick test: if swapping two items changes the outcome, order matters.
Enable when the same item can be chosen more than once.
Grouped formatting improves readability for very large integers.
Adds a short explanation to the copied/downloaded report.
Limits: n and k are capped by your plan. Permutation with repetition (n^k) caps k at 5000 for speed.
Processing…
No output yet
Configure settings and click Generate.
Copied

About Combinations & Permutations Calculator

Combinations and Permutations Calculator (nCr and nPr)

Calculate combinations and permutations in seconds with an online nCr / nPr calculator that stays precise even when numbers grow large. Choose whether order matters, whether repetition is allowed, and how you want the result displayed. This tool is designed for students, analysts, and anyone who needs reliable counting results for probability, statistics, operations research, and everyday planning.

How the Combinations and Permutations Calculator Works

This calculator evaluates the most common counting formulas used in probability and discrete mathematics. You provide the total number of available distinct items (n) and the number of items selected (k), then choose whether you want a combination (order does not matter) or a permutation (order matters). You can also enable repetition to model “with replacement” scenarios such as PIN codes, repeated choices, or sequences where items can be reused.

Under the hood, the tool uses exact integer arithmetic to avoid rounding errors. That matters because even modest inputs can produce values with dozens, hundreds, or thousands of digits. For reference, combinations are commonly written as C(n, k) or “n choose k”, and permutations are commonly written as P(n, k) or “n permute k”.

Step-by-Step

  • 1) Enter n: The total number of available distinct items (for example, 10 books on a shelf or 52 cards in a deck).
  • 2) Enter k: The number of items you choose, arrange, or draw (for example, selecting 3 books or drawing 5 cards).
  • 3) Pick calculation type: Choose Combination (nCr) when order does not matter, or Permutation (nPr) when order matters.
  • 4) Toggle repetition: Enable this when the same item can be chosen more than once (with replacement, repeated symbols, or repeating options).
  • 5) Choose output format: Standard digits, grouped thousands for readability, or scientific notation for extremely large results.
  • 6) Generate: The tool returns the exact value, the number of digits, and a compact explanation you can copy or download.

When repetition is disabled, the calculator follows the classic definitions: nPr = n! / (n − k)! and nCr = n! / (k!(n − k)!). When repetition is enabled, it switches to the standard repeated-selection formulas: permutations with repetition become nk, and combinations with repetition become C(n + k − 1, k) (often taught using the “stars and bars” method).

Key Features

Combination and permutation modes

Switch instantly between combinations and permutations to match the meaning of your problem. Combinations count selections where the set of chosen items is what matters. Permutations count arrangements where the position of each chosen item matters, such as ordering winners, creating schedules, or forming sequences.

If you are unsure which mode to use, think about a simple swap test: does exchanging two chosen items produce a new outcome? If “A then B” is different from “B then A”, order matters and you need a permutation. If it is the same selection either way, order does not matter and you need a combination.

With or without repetition

Model both “without replacement” and “with replacement” scenarios. For combinations with repetition, the calculator uses the standard stars-and-bars form (often written as C(n + k − 1, k)). For permutations with repetition, it calculates nk to represent sequences of length k built from n symbols.

Repetition can drastically change outcomes. For example, choosing 4 letters without repetition from a 26-letter alphabet is a different model than creating a 4-character code where letters can repeat. The tool keeps that choice explicit so your result matches the real scenario.

Exact big-number output

Counting results grow quickly and can exceed standard calculator limits. This tool focuses on producing exact integer results (not rounded approximations) and presenting them clearly, so you can use the output in proofs, homework, audits, or downstream computations.

Exact output is especially valuable when you later use the count as a denominator in a probability calculation. Small rounding errors can compound into noticeable differences, particularly when you compare events with extremely small probabilities.

Readable formatting and quick export

Choose grouped formatting to make long numbers easier to read, or pick scientific notation when you only need an order-of-magnitude sense. Copy the result in one click or download a plain-text report for notes, lab reports, or documentation.

The exported report includes the inputs, the selected mode, and a compact description of the formula. That makes it easier to keep a paper trail when you compute many related values for a project or when you share calculations with classmates and coworkers.

Optional computation notes

Enable step notes to record the formula used and the interpretation of the inputs. This is helpful when you are learning the topic, double-checking work, or sharing results with teammates who need to understand what was counted.

Notes also help you avoid common pitfalls such as mixing “choose” and “arrange,” treating repeated draws as non-repeating, or forgetting that choosing all items (k = n) has a different meaning than choosing none (k = 0).

Use Cases

  • Probability homework: Compute sample-space sizes and event counts for binomial, hypergeometric, and related probability questions.
  • Card and dice games: Count hands, draws, and ordered sequences when analyzing odds or designing new game rules.
  • Passwords and codes: Estimate how many possible codes exist (ordered sequences) and how repetition changes the count.
  • Team and committee selection: Count ways to choose groups, panels, or committees when order does not matter.
  • Scheduling and ranking: Count ways to assign positions, award places, or create ordered lineups from a larger set.
  • Sampling and experiment design: Compare “with replacement” and “without replacement” assumptions when planning tests or surveys.
  • Operations and planning: Understand how many distinct options exist when selecting items, steps, or routes from a list of possibilities.

In many real-world problems, the hardest part is deciding whether order matters and whether repetition is allowed. Once you identify the scenario, the calculator provides the counting value you need to plug into probabilities, expectations, or optimization decisions.

For example, if you are evaluating the chance of drawing a particular 5-card poker hand, you typically use combinations because the order of cards in the hand is irrelevant. On the other hand, if you are ranking finishers in a race or assigning presentation slots to speakers, permutations are a natural fit because position changes the outcome.

In business and engineering, these counts also show up in capacity planning and risk estimation. If you have n configuration options and you must choose k of them to create a product bundle, combinations can help you estimate the variety you need to support. If each bundle must be arranged in a specific order (for example, step-by-step workflows or multi-stage pipelines), permutations can describe how many distinct sequences may exist.

Optimization Tips

Decide whether order matters first

If swapping the chosen items creates a new outcome, you need a permutation (nPr). If swapping them does not change the outcome, you need a combination (nCr). A common test is to ask whether “A then B” is different from “B then A.” If it is different, order matters.

When you are working with probabilities, misclassifying order is the most frequent source of incorrect answers. Writing out two or three small examples by hand is often enough to confirm which interpretation matches your problem statement.

Be explicit about repetition

Repetition changes the meaning of n and k. Drawing cards from a deck without replacement is a non-repetition scenario. Choosing ice-cream scoops where flavors may repeat, or generating a PIN where digits can repeat, are repetition scenarios. When in doubt, write down what happens after you pick one item: does it remain available?

For combinations with repetition, it can help to think in terms of distributing k identical “choices” into n categories. This perspective connects the formula C(n + k − 1, k) to practical problems like allocating budget units across departments or selecting repeated ingredients for a recipe.

Use formatting to avoid mistakes

Large integers can be hard to read. If you plan to copy the value into a report or spreadsheet, choose grouped formatting for human readability. If you only need scale (for example, comparing two options), scientific notation is often clearer and reduces transcription errors.

When communicating results, include n, k, and the chosen mode next to the value. A single number without context can be misleading because C(n, k), P(n, k), and nk can differ by orders of magnitude for the same inputs.

FAQ

A combination counts selections where order does not matter (choosing a group). A permutation counts arrangements where order matters (placing items into positions). The same n and k can produce very different values depending on which concept applies.

Enable repetition when the same item can be selected more than once. Typical examples include passwords, sequences of symbols, choosing multiple items from an unlimited supply, or sampling with replacement.

nCr (also written as C(n, k) or “n choose k”) is the number of k-item subsets you can choose from n distinct items without repetition. It is used heavily in probability because it counts how many ways an event can occur when order is irrelevant.

Counting grows multiplicatively. Each additional item or position often multiplies the number of possible outcomes, which leads to exponential or near-exponential growth. That is why exact integer handling and readable formatting matter for real calculations.

Yes. Combinations and permutations are commonly used to compute sample-space sizes, event counts, and coefficients in probability models. Just make sure your interpretation matches the scenario: order vs. no order, and repetition vs. no repetition.

Why Choose This Tool?

This calculator is built for clarity and reliability. It lets you state your counting assumptions explicitly, then returns an exact result along with helpful context like digit length and the formula used. That makes it easier to learn the concepts, communicate results, and avoid the common mistakes that happen when order or repetition is misunderstood.

Unlike many quick calculators that only handle small inputs or switch to rounding without warning, this tool is designed to keep integers exact and present results in multiple formats. That means you can safely use the output in reports, coursework, and analysis pipelines where accuracy matters.

Whether you are studying probability, building a model, estimating the complexity of a search space, or simply measuring how many possibilities exist in a system, a dependable combinations and permutations calculator saves time and reduces errors. Use it to validate homework, verify spreadsheets, and document decisions in analytics and planning workflows.