Six players, two rebuys: who's up and who's down

Six friends sit down with 200 chips each. During the night, Ben and Ella both rebuy for another 200, so 1,600 chips go into the game in total. Every buy-in is entered as it happens, so nobody has to remember at the end of the night who rebought and when.
Cash everyone out: count the chips

When a player leaves, count their chips and enter the number. Alex bought in for 200 and cashes out 750, so Alex is up 550. Each player's result is simply what they cashed out minus everything they bought in.
Check the count: wins and losses add up to 0

Chips don't appear or disappear at a home game, so once everyone has cashed out, the winners' gains must exactly match the losers' losses. Here, Alex and Chloe are up 800 between them, and Ben, Ella, Dan and Finn are down 800. If the total doesn't come to 0, a chip count or a buy-in was entered wrong, and it's much easier to find now than after everyone has gone home.
Settle up: 4 payments, each loser pays once

Four payments settle everyone: Ben pays Alex 300, Ella pays Alex 250, Dan pays Chloe 150 and Finn pays Chloe 100. Every losing player makes exactly one payment, and nobody has to pass money along to someone else.
Why you never need more than five payments
With six players, five payments are always enough: each payment can settle at least one player completely, and the last player is settled automatically. It often takes fewer, when players split into groups whose wins and losses cancel out. In this game, Alex's +550 is exactly Ben's 300 plus Ella's 250, and Chloe's +250 is exactly Dan's 150 plus Finn's 100. Two groups means one payment fewer: four instead of five.
The alternative most groups fall into, where every loser sends money to one person who then pays the winners, can take up to six transfers here. Fewer payments means fewer mistakes, and a quicker end to the night.
