Split group meal/travel bills into the simplest set of transfers
The Bill Split Calculator is for situations such as group dinners, trips and shared housing, where one person pays up front and everyone settles up afterwards. Enter how much each person actually paid, and it works out the total, each person's fair share, and a settlement plan with as few transfers as it can manage, showing who should pay whom and how much. It only does equal splits. It cannot weight by person, assign individual items, or keep a record of past bills.
These results come from running the same settlement algorithm the tool uses. Three people: Alex paid 150, Blake paid 50, Casey paid nothing. The total is 200 and the fair share is 66.67. Alex is 83.33 over, Blake is 16.67 under, and Casey is 66.67 under. The tool gives two transfers: Casey pays Alex 66.67, and Blake pays Alex 16.67. With four people, A paid 90, B paid 30 and C and D paid 0, the total is 120 and the share is 30. The plan is C pays A 30.00 and D pays A 30.00. B paid exactly the fair share and is not involved in any transfer.
First each person's balance is calculated as what they paid minus the fair share. Positive balances are owed money; negative balances owe money. The tool then repeatedly takes the person who owes the most and the person who is owed the most, and has the first pay the second the smaller of their two amounts. That settles at least one of them each time. It repeats until every balance is effectively zero. Each person ends up only paying or only receiving, never both, which usually keeps the number of transfers small.
What they actually paid out of pocket. Enter 0 for people who did not pay anything, and the tool works out how much they need to contribute.
Each step settles at least one person, so the number of transfers never exceeds the number of people with a non-zero balance minus one, which is compact for ordinary cases. It is a greedy method, though, and the code only aims for few transfers. It does not prove an absolute minimum, so unusual, complicated bills might have a shorter solution.
The tool cannot handle that directly, since it always divides by the number of people listed. Split the expenses into separate calculations: one for what everyone shared, and another for the part only some people joined, then follow each plan.
Their balance is under 0.01, meaning they paid exactly their fair share, so no transfer is needed.
All calculations run in your browser. The names and amounts you type are not sent to a server and are not stored. Because refreshing clears everything, take a screenshot or copy the results if you want a record.