How to Settle Group Debts With Fewer Payments
In a group of five where everyone owes everyone, how many payments does it take? With net balances and a greedy match, at most N-1. This guide explains both the method and its limit, with a real example.
By Berk Can Güney, MatePay developer · Last updated: November 19, 2026
Quick Bill Splitter & Minimum Transfer Calculator
Try it right here before downloading: split a restaurant check evenly with tip, or enter what each person paid to calculate a settlement plan with few transfers.
Want to scan receipts with AI, split item-by-item, and save your group history?
Download MatePay FreeThe rule is simple: at most N-1 payments in a group of N. Not always the fewest, but good enough in practice.
Group expenses turn into a tangled web over time: Ali owes Berk, Berk owes Ece, Ece owes Ali. If everyone paid everyone back one by one, a group of five could have 10 separate pairs (5 × 4 ÷ 2). Debt simplification is producing a shorter payment list that gives the same result.
The first step is to ignore who owes whom and look at how much each person is owed or owes overall. A person's net balance is what they paid minus their share. Positive means they are owed money, negative means they owe. All net balances always add up to zero, so no money disappears.
Take this group: Berk +$100, Ece +$100, Can +$50 are owed money; Ali −$100 and Deniz −$150 owe. Total zero. We will work out who pays whom from these five numbers.
MatePay uses a greedy method: start with the person who owes the most, match them with the largest creditor, and suggest the smaller of the two amounts. Continue once someone reaches zero. In the example, Deniz pays Berk $100 and Ece $50, and Ali pays Can $50 and Ece $50. That is 4 payments.
But that is not always the fewest. The same balances can be settled in 3 payments: Ali pays Berk $100 and both reach zero; Deniz pays Ece $100 and Can $50. The balances split into independent zero-sum groups: {Ali, Berk} settles in one payment and {Deniz, Ece, Can} in two. Each zero-sum group finishes in one payment fewer than its number of people, so the more separate groups you find, the fewer payments you need.
Finding the true minimum means splitting the balances into the largest possible number of zero-sum groups, which is generally considered NP-hard. In small groups you can try every split; in large groups that is impractical. The greedy method is fast, always gives at most N-1 payments, and is easy to explain. That is why MatePay's settlement screen and the calculator on this page use the same method.
Running this on the server taught us a practical lesson: when two debtors have equal balances, the database does not guarantee which one comes first. Users could see the suggestion rows swap places even though they had changed nothing. We fixed it by breaking ties on user ID, so the same data now always produces the same suggestion.
Other apps offer debt simplification too; in Splitwise, for example, a 'simplify debts' setting is switched on or off per group. The idea is the same: nobody's total balance changes, only the number of payments. The app does not make payments for you; you pay from your own banking app and then mark it as 'Paid'.
Sources: A. Patcaş, 'The debts' clearing problem: a new approach' (arXiv:1111.3663); GeeksforGeeks, 'Minimize Cash Flow among a given set of friends who have borrowed money from each other'; Splitwise help center, 'What does the simplify debts setting do?'.
"The settlement plan is a suggestion: as payments are made, balances update, and everyone's total stays the same."
How MatePay Does the Math
From Net Balance to Payment Plan: 4 Steps
Calculate each person's net balance: what they paid minus their share.
Separate debtors (negative) from creditors (positive).
Match the biggest debtor with the biggest creditor and suggest the smaller of the two amounts.
Remove anyone who reaches zero and repeat until everyone is at zero.
Frequently Asked Questions About Debt Simplification
See the plans for this use case
Start for free right now. Move to Premium when you need more than 3 simultaneous active groups, unlimited AI receipt scanning, or item-based smart splitting.
View pricingQ1.What is debt simplification?
It reduces mutual debts in a group to each person's net balance and turns them into a shorter payment list. Nobody's total balance changes; only the number of payments goes down.
Q2.Does it always produce the fewest possible payments?
No. MatePay uses a greedy method: it guarantees at most N-1 payments but not the true minimum. Finding the true minimum is generally an NP-hard problem.
Q3.Does MatePay make the payment itself?
No. MatePay is a debt tracking app; you make payments from your own banking app and then mark them as 'Paid'.
Start Settling Up with MatePay
The free Splitwise alternative with no daily limits on expense logging. Download now and put an end to financial confusion instantly.
Settle up
Transfer suggestions to clear every debt
Minimum transfer algorithm: everyone is square in 3 payments.