Combination Sum Calculator
Enter a list of numbers and a target sum. The calculator will find all possible combinations that add up to the target.
Find all possible number combinations that add up to a specific target value. Useful for math learning, programming practice, budgeting, and puzzle solving.
Enter a list of numbers and a target sum. The calculator will find all possible combinations that add up to the target.
Divide bills and expenses among friends or groups with equal or custom splits
Calculate NowCalculate average buying price per share when purchasing the same stock multiple times
Calculate NowCalculate Present Value, Future Value, Payment, Number of Periods, and Interest Rate
Calculate NowThe Combination Sum Calculator helps you find all possible number combinations that add up to a specific target value. This tool is useful for math learning, programming practice, budgeting, and puzzle solving.
In the Numbers field, enter the numbers you want to use, separated by commas. For example:
In the Target Sum field, enter the value you want the combinations to add up to. This is the target total you're looking for.
Toggle the Allow Number Reuse option:
Click the Calculate button to find all combinations. The calculator will:
The results show:
Combinations are displayed in a format like: [2, 2, 3] which means 2 + 2 + 3 = 7
If you enter:
The calculator will find combinations like:
If Allow Reuse is OFF, only combinations using each number at most once are shown.
Click the Fill Example button to see a sample calculation with pre-filled data (Numbers: 2, 3, 6, 7, Target: 7). This helps you understand how the calculator works.
The calculator uses a backtracking algorithm to find all valid combinations: