Bill splitter with settlement
Split a bill to the cent across the chosen participants, then derive a short settlement transfer list from who actually paid, all by integer-cent arithmetic.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Split result
Cents-exact equal split with the remainder front-loaded; settlement transfers are exact to the cent.
Enter the bill JSON to see the result
participants decides who shares the bill (everyone by default) and paidBy records who actually paid. Transfers are only computed when paidBy is given; the matching is greedy — few transfers, not provably the minimum.
What this tool does
- Split a dinner or trip bill: see what each person owes, then who transfers what.
- Exclude people who did not share the cost (left early, paid on behalf) via participants.
- Turn several payers into a short list of transfers instead of paying everyone back one by one.
Example
Input
{"amount":90,"people":["A","B","C"],"paidBy":{"A":50,"B":40}}Output
Total: 90.00 Participants: 3 of 3 Share per person: A: 30.00 B: 30.00 C: 30.00 Paid: A: 50.00 B: 40.00 Settlement transfers: C → A: 20.00 C → B: 10.00
Each owes 30: A overpaid by 20 and B by 10, so C transfers to both.
Frequently asked questions
How is it kept exact?
Everything is integer cents: base = ⌊total ÷ participants⌋ and the remainder goes to the earliest names in the list (10.01 across three → 3.34 / 3.34 / 3.33, summing to exactly 10.01). No floating point, so nothing is a cent off.
What is the difference between people and participants?
people is everyone involved in the bill, participants are the ones who share the cost (defaults to everyone). Someone who only paid and does not share goes into people and paidBy but not participants: their share is 0.00 and the result says so.
Is paidBy mandatory?
Without it you only get the per-person share. With it you also get the settlement transfers. The paidBy amounts must add up to amount, otherwise it fails with amount-mismatch so a forgotten or mistyped amount cannot silently produce wrong transfers.
Is the transfer list minimal?
It uses greedy matching (largest debtor pays the largest creditor first). In practice this yields few transfers, but it is not guaranteed to be the mathematical minimum — a provably minimal pairwise settlement is a different, harder problem that this tool does not claim to solve.
What are the limits?
1–100 people, unique names up to 80 characters, a positive amount with at most two decimals and a per-amount cap around 10 trillion cents. Amounts accept numbers or strings (1 and "1.00" are equivalent).
Keywords:AAbill splitsettle upexpense