Solution Guide

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

FastSecureUnlimitedFree
MatePay
How to Settle Group Debts With Fewer Payments
Total Group Spend
$1,240.00
You're owed
+$285.00
Settle upTransfer suggestions to clear every debt
MehmetBerk
$145.00
AyşeBerk
$140.00
4 debts → reduced to 2 transfers
Interactive Calculator

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.

$
$
$
$
Total Group Spend
$210.00
Fair Share Per Person
$52.50
Minimum Transfer Settlement Plan
LiamAlex
$52.50
MayaAlex
$27.50
SarahAlex
$7.50

Want to scan receipts with AI, split item-by-item, and save your group history?

Download MatePay Free

The 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?'.

MatePay Insights

"The settlement plan is a suggestion: as payments are made, balances update, and everyone's total stays the same."

How MatePay Does the Math

Calculates net balances automatically, no manual spreadsheet
Suggests at most N-1 payments for a group of N in the Settlement tab
Fixes the order for equal balances, so the suggestion is the same every time you open it
Updates balances instantly when you mark a payment as 'Paid'
Debt Optimization
Few transfers.
Smart Currency
Real-time conversion.
AI Receipt
Extracts in seconds.
Precision Split
Penny-perfect fair.
Speed
Solved in seconds.
Security
Encrypted in transit (TLS).
Step-by-Step Guide

From Net Balance to Payment Plan: 4 Steps

01Step 1

Calculate each person's net balance: what they paid minus their share.

02Step 2

Separate debtors (negative) from creditors (positive).

03Step 3

Match the biggest debtor with the biggest creditor and suggest the smaller of the two amounts.

04Step 4

Remove anyone who reaches zero and repeat until everyone is at zero.

FAQ

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 pricing

Q1.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.

FastSecureUnlimitedFree

Settle up

Transfer suggestions to clear every debt

MehmetMehmet
₺1.554,69UNPAID
BerkBerk
AyşeAyşe
₺1.114,69UNPAID
BerkBerk
ZeynepZeynep
₺384,68UNPAID
BerkBerk

Minimum transfer algorithm: everyone is square in 3 payments.