CalcWorldHub
Free online calculator · no signup

Combinations with repetition calculator

Count unordered selections of a fixed size when each type may be chosen more than once.

Worked example
Relevant result
Clear result · useful details
Default calculator result35 combinations

Calculator

4,000 tools
Combinations with repetition calculator — Number of types n, Selection size r and calculation method
Combinations with repetition calculator: inputs and calculation method.

How to use this calculator

Count unordered selections of a fixed size when each type may be chosen more than once.

  1. Enter Number of types n, Selection size r. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Combinations with repetition calculator

Count unordered selections of a fixed size when each type may be chosen more than once.

What it measures

Order does not matter, and a type can appear repeatedly. The stars-and-bars count maps r selections among n types to a combination with n+r−1 slots.

Inputs and units

  • Number of types n: Number of available types n; positive whole number.
  • Selection size r: Number selected r; nonnegative whole number.

Formula and method

C(n+r−1,r)=(n+r−1)!/[r!(n−1)!].

Worked example

Choosing 3 items from 5 types with repetition gives C(7,3)=35 possible multisets.

Interpreting the result

This counts distinct type-count patterns, not ordered sequences or physical items that differ within the same type.

Assumptions and limits

Requires a positive whole number of types and a nonnegative whole-number selection size. Large counts can exceed ordinary numeric precision.

Sources and method

Frequently asked questions

Does order matter?

No. Selections with the same counts of each type are identical.

Can a type be selected more than once?

Yes, repetition is the defining assumption.

How do I use the Combinations with repetition calculator?

Enter Number of types n, Selection size r. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Combinations with repetition?

Choosing 3 items from 5 types with repetition gives C(7,3)=35 possible multisets.

What does the Combinations with repetition calculator calculate?

Count unordered selections of a fixed size when each type may be chosen more than once.

Good calculators show their work.

CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.

✓ Results update instantly
✓ No account required
✓ Privacy-friendly by design
✓ US and metric units