Skip to content
Split Calculator logoSplit Calculator

Settling Up

How to Settle Group Expenses With the Fewest Payments

Settle group expenses with fewer payments: net balances, match debtors with creditors, and see why n people need at most n minus 1 transfers. Worked examples.

SCSplit Calculator Team11 min read

To settle group expenses with the fewest payments, stop repaying individual expenses and settle net balances instead. Work out each person’s balance (what they paid minus their fair share), then have people who owe money pay people who are owed money directly, matching the largest debtor with the largest creditor until everyone is at zero. For a group of n people this never takes more than n − 1 payments, and often fewer.

This guide shows why netting cuts the number of transfers so sharply, walks through the matching algorithm step by step, and is honest about where the simple method falls short of the true minimum.

Why settling expense by expense creates too many payments

Imagine four friends on a weekend away. Each person pays for one thing, and every expense is shared by all four. If everyone repays each payer for each expense, the number of transfers grows fast: every expense with k sharers creates k − 1 payments.

Most of those payments cancel out. If Ben owes Ana $60 for the cabin and Ana owes Ben $30 for groceries, sending money both ways is pointless. What actually matters is each person’s single net balance across the whole trip.

Net balances, debtors and creditors

A net balance is:

Net balance = Total paid − Fair share of all expenses

  • A creditor has a positive balance. The group owes them money.
  • A debtor has a negative balance. They owe the group.
  • Someone at exactly zero needs no payment at all.

The balances always add up to zero, because every dollar paid was also part of someone’s share. Calculating balances is its own step, covered in detail in who owes whom when different people paid. This article starts once you have the balances and focuses on turning them into as few payments as possible.

Three ways to settle the same trip

Worked example 1: 12 payments, 6 payments or 2 payments

Known values: Four people. Every expense is shared equally by all four.

ExpensePaid byAmountEach person’s share
CabinAna$240$60
GroceriesBen$120$30
GasCara$80$20
Firewood and snacksDev$40$10

Total spent: $480. Each person’s fair share: $480 ÷ 4 = $120.

Net balances:

  • Ana: $240 − $120 = +$120 (creditor)
  • Ben: $120 − $120 = $0
  • Cara: $80 − $120 = −$40 (debtor)
  • Dev: $40 − $120 = −$80 (debtor)

Check: +$120 + $0 − $40 − $80 = $0.

Option A: everyone pays back each payer. For each expense, the three non-payers each send the payer their share. Four expenses × 3 payments = 12 payments, including Ana paying Ben $30, Cara $20 and Dev $10 while they all pay her $60.

Option B: net each pair of people. Offset what each pair owes each other:

PairOwed one wayOwed the other waySingle payment
Ana and BenBen owes Ana $60Ana owes Ben $30Ben pays Ana $30
Ana and CaraCara owes Ana $60Ana owes Cara $20Cara pays Ana $40
Ana and DevDev owes Ana $60Ana owes Dev $10Dev pays Ana $50
Ben and CaraCara owes Ben $30Ben owes Cara $20Cara pays Ben $10
Ben and DevDev owes Ben $30Ben owes Dev $10Dev pays Ben $20
Cara and DevDev owes Cara $20Cara owes Dev $10Dev pays Cara $10

That is 6 payments. Better, but Ben still receives $30 and pays $10 even though his balance is zero.

Option C: settle net balances. Only debtors pay, only creditors receive:

  • Dev pays Ana $80.
  • Cara pays Ana $40.

2 payments.

Total check: Ana receives $80 + $40 = $120, matching her +$120. Cara pays $40 and Dev pays $80, matching their balances. Ben, at zero, does nothing. In all three options each person’s final position is identical; only the number of transfers changes.

Interpretation: Netting across the whole group, not just within pairs, removes every round trip. Here 2 is also the true minimum: two separate debtors each have to make at least one payment.

The matching method: largest debtor pays largest creditor

This is a common practical algorithm for settling up, and it is the one the Split Calculator on this site uses:

  1. Compute every person’s net balance.
  2. Set aside anyone at exactly zero.
  3. Find the person who owes the most (largest debtor) and the person owed the most (largest creditor).
  4. The debtor pays the creditor the smaller of the two amounts.
  5. That payment brings at least one of them to zero. Update both balances.
  6. Repeat from step 3 until every balance is zero.

It is called a greedy method because it makes the biggest possible match at each step without looking ahead.

Why it never needs more than n − 1 payments

Each payment in step 4 clears at least one person completely, since it pays the smaller of the two amounts in full. With n people holding nonzero balances, after at most n − 2 payments only two people remain, and because balances always sum to zero, the last one must owe exactly what the other is owed. One final payment clears both. That is at most n − 1 payments in total.

Compare that with repaying expense by expense, where the count grows with every receipt added. With netting, adding a tenth expense to a five-person trip does not add payments; it only changes the balances.

Worked example 2: five people, where greedy finds the minimum

Known values: After netting a week of shared costs, the balances are:

PersonNet balanceRole
Ana+$100Creditor
Ben+$50Creditor
Cara−$70Debtor
Dev−$45Debtor
Eli−$35Debtor

Check: $100 + $50 − $70 − $45 − $35 = $0.

Chosen method: Largest debtor pays largest creditor.

Calculation:

StepLargest debtorLargest creditorPaymentBalances after
1Cara −$70Ana +$100Cara pays Ana $70Ana +$30, Cara $0
2Dev −$45Ben +$50Dev pays Ben $45Ben +$5, Dev $0
3Eli −$35Ana +$30Eli pays Ana $30Ana $0, Eli −$5
4Eli −$5Ben +$5Eli pays Ben $5Everyone $0

Result: 4 payments, all in whole dollars, so no rounding is needed.

Total check: Ana receives $70 + $30 = $100. Ben receives $45 + $5 = $50. Cara pays $70, Dev pays $45, Eli pays $30 + $5 = $35.

Interpretation: Four payments is n − 1 for five people. Is it the minimum? Yes. The only way to beat n − 1 is for some smaller group of people to have balances that sum to zero on their own, and here none does: no combination of these five balances short of all five adds to $0 (for example, $100 − $70 = $30, $50 − $45 = $5, $100 − $70 − $35 = −$5). Every payment plan for this group needs at least four transfers.

Settlements are not unique

The same balances can be cleared by a different set of four payments:

  • Cara pays Ana $70.
  • Dev pays Ana $30.
  • Dev pays Ben $15.
  • Eli pays Ben $35.

Ana still receives $100, Ben $50, and each debtor pays exactly their balance. Both plans are correct. Groups sometimes prefer one over another for practical reasons, such as keeping couples paying each other or avoiding a transfer between two people who do not share a payment app. As long as every balance ends at zero, the choice is yours.

When greedy is not the minimum: zero-sum subgroups

The greedy method is fast and always stays within n − 1, but it does not always find the fewest payments. It can miss a better answer when the group quietly splits into subgroups whose balances each net to zero.

The key idea: if the people can be divided into g separate groups that each sum to zero, each group settles internally in at most (its size − 1) payments. The total becomes n − g. Two independent groups save one payment, three save two, and so on.

Worked example 3: six people, greedy uses 5 but 4 is possible

Known values: Six friends shared a beach house and a few separate outings. Their net balances:

PersonNet balance
Ana+$80
Ben+$40
Cara+$20
Dev−$60
Eli−$50
Finn−$30

Check: $80 + $40 + $20 − $60 − $50 − $30 = $0.

Greedy calculation:

StepLargest debtorLargest creditorPaymentBalances after
1Dev −$60Ana +$80Dev pays Ana $60Ana +$20, Dev $0
2Eli −$50Ben +$40Eli pays Ben $40Ben $0, Eli −$10
3Finn −$30Ana +$20 (tied with Cara)Finn pays Ana $20Ana $0, Finn −$10
4Eli −$10 (tied with Finn)Cara +$20Eli pays Cara $10Cara +$10, Eli $0
5Finn −$10Cara +$10Finn pays Cara $10Everyone $0

Greedy result: 5 payments. Breaking the ties the other way still ends in 5.

Zero-sum subgroups: Look for creditors and debtors whose balances cancel:

  • Ana, Eli and Finn: +$80 − $50 − $30 = $0.
  • Ben, Cara and Dev: +$40 + $20 − $60 = $0.

Each trio settles on its own:

  • Eli pays Ana $50.
  • Finn pays Ana $30.
  • Dev pays Ben $40.
  • Dev pays Cara $20.

Result: 4 payments, which is n − 2 for six people.

Total check: Ana receives $50 + $30 = $80. Ben receives $40. Cara receives $20. Dev pays $40 + $20 = $60. Eli pays $50. Finn pays $30. Every balance reaches zero.

Interpretation: Greedy started by matching Dev with Ana because they had the largest numbers, which mixed the two trios together and forced extra small payments later. Checking every possible payment plan confirms that 4 is the true minimum here: the six balances can be split into at most two zero-sum groups, so no plan can use fewer than 6 − 2 = 4 transfers. Note that the total money moved is the same in both plans ($140, the sum of the positive balances). Only the number of transfers differs.

Why the true minimum is hard to guarantee

Finding the smallest possible number of payments means finding the largest number of separate groups whose balances each sum to zero. That is a subset-sum style search, and the number of possible groupings explodes as the group grows. It belongs to a class of problems for which no known method is fast in every case.

For small groups it is manageable by hand or with a brute-force search. For a larger group of travelers, checking every combination becomes impractical, which is why most apps use the greedy method or greedy plus a quick check for obvious zero-sum pairs.

In practice, the gap is usually small:

  • Greedy never exceeds n − 1.
  • The true minimum is n − g, where g is the most zero-sum groups the balances can be split into.
  • For most real groups with irregular amounts, g is 1, so greedy’s answer is already the minimum.
  • Zero-sum subgroups show up more often when amounts are round numbers or when a subgroup mostly shared costs among themselves.

A quick manual check for fewer payments

Before running the greedy method, spend thirty seconds on these checks:

  1. Exact matches. If a debtor owes exactly what a creditor is owed (for example, −$45 and +$45), pair them first. That pair is a zero-sum group of two and settles in one payment.
  2. Small trios. Look for one creditor whose balance equals two debtors combined, or one debtor who equals two creditors combined. Each such trio settles in two payments.
  3. Obvious subgroups. If part of the group mostly spent money among themselves (one car, one cabin), check whether their balances already net close to zero.
  4. Run greedy on the rest. Whatever is left over, match largest debtor with largest creditor.

If the balances you start from do not add up to exactly zero, stop and recheck them first; the steps for that are in calculating net balances when different people paid.

This is a practical improvement, not a guarantee of the absolute minimum, but it catches the common cases like example 3.

Practical tips for real settle-ups

  • Round last. Keep balances in exact cents and only round final amounts, so the payments add up to the real total.
  • Fewest payments is not the only goal. Sometimes an extra transfer is worth it if it avoids sending money between people who do not have each other’s payment details, or avoids international transfer fees.
  • Settle once, at the end. Paying back as you go recreates the expense-by-expense problem. Record everything, then net once.
  • Treat zero balances as done. A person at $0 should never appear in the settlement list, even if they paid for a lot.

For how shared costs across a longer trip turn into those balances in the first place, see splitting trip expenses when everyone pays for different things.

How the Split Calculator settles up

The Split Calculator lets you add people and expenses, choose who paid each one and who shared it, and then shows each person’s paid amount, fair share and net balance. Its “who pays whom” list uses the greedy method described above: it repeatedly matches the largest debtor with the largest creditor.

That means:

  • It never lists more than n − 1 payments for n people.
  • It finds the true minimum in many everyday cases, but not in every case. When your group contains zero-sum subgroups, as in example 3, you can apply the manual check above and choose a plan with fewer transfers.
  • Its settlement is one valid option. Any other plan that brings every balance to zero is equally correct.

Enter the expenses, read the net balances, and use the suggested payments as your starting point.

Frequently Asked Questions

What is the fewest number of payments needed to settle a group?

A group of n people with nonzero balances never needs more than n minus 1 payments. It can need fewer when some smaller set of people have balances that add up to zero among themselves, because each such subgroup can settle separately.

Does simplifying debts change how much anyone owes?

No. Simplifying only changes who pays whom. Each person's net balance, meaning what they paid minus their fair share, stays exactly the same, so everyone ends up paying or receiving the same total.

Is the largest debtor pays largest creditor method always optimal?

No. It always finishes in at most n minus 1 payments and is often optimal, but it can miss a smaller answer when the group contains subgroups whose balances net to zero. Finding the true minimum in every case is a hard combinatorial problem.

Is there only one correct way to settle up?

No. Settlements are not unique. Several different sets of payments can clear the same balances with the same number of transfers, and all of them are correct as long as every balance ends at zero.

Back to blog

Split your next bill with real numbers

Add your group, enter who paid what, and get a clean settlement. Free, no signup.

Open the Split Calculator

Latest guides