Combinations with Repetition Calculator
Count combinations when repeats are allowed.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
This calculator counts combinations with repetition (also called multiset coefficients) — the number of ways to choose r items from n types when repeats are allowed and order doesn't matter — using the formula C(n+r−1, r) = (n+r−1)! / (r!·(n−1)!). The formula comes from the “stars and bars” technique: representing each selection as a row of r stars split into n groups by n−1 bars, which turns the counting problem into an ordinary combination C(n+r−1, r).
Students and instructors in combinatorics and discrete math courses use it to work through classic examples like choosing r scoops from n ice cream flavors with repeats allowed, or distributing identical objects into distinguishable bins; computer scientists use the same math to count multisets and evaluate generating functions; and statisticians use it when analyzing sampling schemes done with replacement. Enter the number of types (n) and the number chosen (r) to get the count.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)