A Divzy build story
Working build, pre-launch
Splitting the bill to the last cent
How we built Divzy, an expense splitter where every split adds up exactly and a group settles up in fewer payments.
By Doerwise ·
The wish
I want an app that splits group bills fairly. A trip, a flat, a long dinner. One person pays for the apartment, another for groceries, a third for tickets, and by the end nobody is sure who owes whom.
Fair has a precise meaning here. Every share adds up to the bill, and when the group settles, everyone ends up even.
Why it sounded impossible
Money does not divide evenly. Split €63.75 between four people and each share is 15.9375. Round every share and you lose a cent or invent one. Do that across a whole trip and the group's books stop adding up, by an amount too small to find and too real to ignore.
Settling is its own tangle. Each expense creates small debts between people, and a handful of expenses can leave a list of payments longer than the group has patience for.
Whole cents, every time
Divzy keeps every amount as a whole number of cents. Floating point never touches money, except to format it for the screen.
Splits use the largest-remainder method. Everyone first gets their share rounded down. The cents left over then go out one at a time, to the shares that lost the most in rounding, with ties going to the earliest person in the list. Those €63.75 of groceries become €15.94, €15.94, €15.94 and €15.93. The extra cents are assigned to someone, never lost.
The engine then checks that the parts add up to the total, and stops with an error rather than saving a split that does not. Divzy has six ways to split, and every one of them adds up to the cent.
Fewer payments
To settle a group, Divzy first works out where each person really stands: what they paid minus what they owe. Across the group those positions sum to zero.
Then it matches the person who owes the most with the person who is owed the most, settles what it can between them, and moves on. A group of any size settles in at most one payment fewer than it has people, and ties always resolve the same way, so the plan never shuffles when you look again.
In the sample Lisbon trip on Divzy's product page, four people and six expenses leave six debts between pairs. Turn on Fewer payments and they become three, and the line under the switch says what matters: everyone still ends up even.
What it does now
Divzy runs on the web, iOS and Android, kept in sync. You can spend in any of 54 currencies, and the exchange rate and its date are always shown.
Divzy keeps the record of who paid and who owes. It never moves money itself.
Where it stands
Divzy is a working build, pre-launch. It has not launched publicly.
The demo on its product page runs the money engine ported from Divzy itself. Add an expense, flip Fewer payments, and every figure you see is computed, not typed in.