Combinations with repetition calculator
Count unordered selections of a fixed size when each type may be chosen more than once.
Calculator
How to use this calculator
Count unordered selections of a fixed size when each type may be chosen more than once.
- Enter Number of types n, Selection size r. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
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
- Defines odds in favor as event outcomes compared with non-event outcomes; probability p converts to odds p:(1−p). OpenStax Contemporary Mathematics 7.7: Odds
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.
See the calculation methodology.
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.