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?
Almost always. Finding the true minimum number of payments is a hard problem in theory (it's related to finding subsets that cancel exactly), but for groups of friends the greedy approach above hits the minimum in practice and is never more than a transfer or two off in contrived cases. It's also predictable, which matters more: everyone can check it.
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.
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