Stars and Bars Calculator
Enter the number of identical items and boxes to count the ways to share them out.
A whole number from 0 to 1000.
A whole number from 1 to 1000.
Each box
Whether a box is allowed to stay empty.
Try
Result
You entered
Show the work
Stars and bars
Draw the identical items as stars in a row and use bars to part them into boxes. Each arrangement is a choice of where the bars go among places. Here and .
Using
Result
So there are ways to share identical items among boxes.