Five friends, nine bills, everyone paid for something. The naive way to settle is for every pair who owe each other to transfer the difference: up to ten payments. The right way needs at most four. This guide shows how the "Who pays whom" panel works, by hand, so you can trust it and explain it.
Step 1: work out each person's net position
For every person: what they paid minus their share of everything they took part in. A positive number means the group owes them; negative means they owe the group.
Example. Asha, Vik and Omi go out. Asha pays ₹300 for a cab (all three share it). Vik pays ₹90 for snacks that only Asha and Vik ate.
| Paid | Share | Net | |
|---|---|---|---|
| Asha | 300 | 100 + 45 = 145 | +155 |
| Vik | 90 | 100 + 45 = 145 | −55 |
| Omi | 0 | 100 | −100 |
The nets always add up to zero: +155 − 55 − 100 = 0. If yours don't, a bill is missing or double-entered.
Step 2: who owes, who is owed
Split people into two lists. Creditors (positive): Asha +155. Debtors (negative): Omi −100, Vik −55. Sort each list largest first.
Step 3: match them up
Take the biggest debtor and the biggest creditor. The payment is the smaller of the two amounts. Reduce both by that payment; whoever hits zero drops off their list. Repeat.
- Omi (100) → Asha (155): Omi pays ₹100. Omi is done; Asha is now owed 55.
- Vik (55) → Asha (55): Vik pays ₹55. Both done.
Two payments settle three people. In general, this method needs at most one fewer payment than the number of people with a non-zero balance.

Why not "everyone pays the person who paid for them"?
Because it creates chains. If Omi owes Asha and Asha owes Vik, Omi paying Asha and Asha paying Vik is two transfers where one would do. Netting positions first collapses every chain.
Is it the absolute minimum?
Usually, and in Ezysplit always for groups of up to 12 people. The greedy matching above can miss one case: when a smaller group inside the group cancels out exactly. Say Omi owes Vik exactly ₹200 and nobody else is involved with either of them. Those two should settle with each other in one payment, separately from everyone else, and every such pair or trio saves a payment.
Finding those groups by hand is fiddly (in general it's a hard problem), so Ezysplit does it for you: for up to 12 people it first finds the largest number of groups whose balances cancel exactly, then runs the matching inside each one. That gives the true minimum. Above 12 people it uses the matching on its own, which is still close to the minimum.
Exclusions change the shares, not the method
When someone is excluded from a bill, that bill is divided among the others only. In the example, the ₹90 snacks were split between two people (45 each) and Omi's share was zero. Everything after that is the same.
Rounding
Shares are computed to the paisa and payments are shown to two decimals. If a total doesn't divide evenly (₹100 three ways), someone ends up a paisa out. Nobody has ever noticed.
Frequently asked questions
How do you work out who owes whom in a group?
For each person, take what they paid and subtract their share of everything they took part in. A positive result means they are owed money, a negative one means they owe. Then match the biggest debtor with the biggest creditor until everyone is settled.
What is the minimum number of payments to settle a group?
At most one fewer than the number of people whose balance isn't zero. It can be fewer when some people's balances cancel each other out exactly; Ezysplit finds those cases for groups of up to 12.
Why do all the balances add up to zero?
Every rupee someone paid is part of someone's share, so what the group is owed always equals what the group owes. If your totals don't add up to zero, a bill is missing or entered twice.
Does Ezysplit send the payments?
No. Ezysplit only works out who pays whom. Each line is one payment you make yourself with GPay, PhonePe, Paytm or any other UPI app or bank transfer.
More guides
- How to split rent fairly with roommates
- Trip expense checklist: splitting travel costs without drama
- How to split a restaurant bill (even when someone didn't drink)
- Splitting costs when there's a couple in the group
- Planning a group trip budget everyone can live with
- How to ask a friend to pay you back (without making it weird)
- Splitting costs with friends who earn more (or less) than you
- Should you lend money to a friend? Five rules that protect the friendship