Business and Freelancing

Subset Sum Reconciliation Finder

List the amounts you might have combined and enter the total you need to match.

Your numbers

One per line, either an amount or a label and an amount separated by a comma. Positive amounts, up to 40 lines.

Use 0 for an exact match, or a small amount such as 0.05 to allow for rounding.

From 1 to 50.

Result

Matching combinations

1

Target 100.00.

Combinations found
1
Amounts read
6
Sum of all amounts
215.00
Search steps used
11

First 1 of 1

No.AmountsTotalOff byCount
1Invoice 101 + Invoice 102 + Invoice 103100.000.003
How this was calculated
  1. Every amount is turned into whole cents so no rounding error creeps in.
  2. The search adds amounts from the largest down, drops any branch that already passes the target or can no longer reach it, and records each combination within the allowed difference.
  3. The number of combinations can grow very fast, so the search stops after a fixed number of steps and says so.
  • More than one combination can match, and a match is a lead to check, not proof of what was paid. Each amount is used at most once.

Calculated using SumPanda.com · https://sumpanda.com/subset-sum-reconciliation-finder/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the subset sum reconciliation finder

  1. Enter the amounts, one per line, either as an amount or as a label, a comma and an amount.
  2. Enter the target total, for example the size of a bank deposit.
  3. Set an allowed difference if you want to accept near matches, such as 0.05, and choose how many matches to list.
  4. Read the number of combinations found and the first ones in the table.

Formula

amounts are converted to whole cents

depth first search over amounts sorted from large to small

keep a combination when |sum - target| <= allowed difference

The search adds amounts one at a time and drops a branch as soon as the sum passes the target or the amounts left cannot reach it. Each amount is used at most once.

A $100.00 deposit

Six invoices are listed: 45.50, 20.00, 34.50, 15.25, 60.00 and 39.75, and the deposit is 100.00. The only combination that reaches exactly 100.00 is Invoice 101 + Invoice 102 + Invoice 103 (45.50 + 20.00 + 34.50).

With an allowed difference of 0.25, the combination 60.00 + 39.75 = 99.75 is found as well, shown as 0.25 below the target. The total of all six amounts is 215.00.

Why a match is only a lead

More than one combination can add up to the same total, and a match by chance is common once the list is long. Use the combination as a lead and then check dates, customer names and reference numbers before you mark anything as paid.

The page shows every combination it finds up to the number you choose, so you can see whether the match is unique.

Limits on size and time

Finding combinations is hard in general, because the number of subsets doubles with every amount. The page reads up to 40 amounts and stops its search after a fixed number of steps. If that happens it says the count is a lower bound.

Amounts must be positive. To match a deposit made of invoices less a credit note, subtract the credit before you enter the amounts, or run the search on the invoices only.

Assumptions and limits

  • Amounts are positive and have at most two decimals.
  • Every amount is used at most once in a combination.
  • The search stops after a fixed number of steps and says so if it does.
  • The allowed difference is in the same currency as the amounts.
  • Nothing you type is stored or sent anywhere.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

Can the same amount appear twice?

Yes, if you list it twice. Two lines with 20.00 are treated as two different items, so combinations using either line are counted separately.

Why does the count say "or more"?

The search stopped when it reached its work limit before it finished, so the true count may be larger. Reduce the list or allow no difference to narrow the search.

How are cents handled?

Each amount is turned into a whole number of cents before the search, so no rounding errors can make a true match look like a near miss.

Can I find the total with fees taken out?

Add the fee to the target first. For example, if a processor paid out 97.00 after a 3.00 fee, search for 100.00 on the gross invoice amounts.