In 1999 a mathematician named Francis Su was asked by a friend for help. The friend was moving into a house with others, the rooms were different, and they could not agree on how to divide the rent. Su realised that the problem resembled one he knew from the mathematics of fair division, and wrote a paper about it. He called it "Rental Harmony".

The result is one of the rare cases in which a piece of pure mathematics tells three people in a kitchen exactly what to do.

Why the obvious methods fail

Equal shares. Simple, and unfair if one room is twice the size of another. Whoever gets the small room subsidises the others.

By floor area. Better, and still wrong. Area is one feature among many. One room is large and faces a busy road. Another is small and has a balcony and the morning sun. A third is next to the bathroom. People weigh these things differently. Someone who works nights cares about noise above all. Someone else wants the light.

By negotiation. This usually works, and it tends to favour whoever is most stubborn or arrived first.

The deeper point is that no formula based on the rooms can be right, because fairness here is not a property of the rooms. It depends on the preferences of the particular people.

What "fair" should mean

Mathematicians who study division have a precise standard, called envy-freeness. A division is envy-free if no person would prefer to swap their share for anyone else's.

Applied to rent: each person has a room and a price, and nobody looks at another flatmate's room and price and thinks "I would sooner have that deal".

This is a demanding standard. It does not require the prices to be equal, or proportional to anything. It requires only that everyone, by their own lights, believes they got the best of what was on offer. An arrangement like that ends the argument, because nobody has grounds to complain.

Su proved that under mild assumptions such an arrangement always exists.

The assumptions

There are three, and they are reasonable.

  1. Each person can always name a room they would accept. Given any set of prices adding up to the rent, each flatmate can say which room they would choose at those prices.
  2. A free room beats a paid one. If any room is offered at no cost, everyone prefers a free room to one they must pay for.
  3. Preferences do not jump. If you prefer a room across a whole sequence of prices approaching some limit, you still find it acceptable at the limit.

Where triangles come in

For three people, picture every possible way of dividing the rent as a point in a triangle. At one corner, room A costs the whole rent and the others are free. At another, room B bears it all. The centre is the equal split. Every point inside is a different set of three prices.

Now ask each flatmate, at every point, which room they would pick. Colour the point with their answer.

At the corner where room A costs everything, nobody chooses A. Near the opposite edge, where A is free, A is popular. So the colours are constrained round the boundary of the triangle.

A result from 1928 called Sperner's lemma says that when a triangle is divided into small triangles and the corners are labelled subject to exactly that kind of boundary constraint, at least one small triangle must have three different labels on its corners.

Su arranged the labelling so that the three corners of each small triangle are answered by three different flatmates. A small triangle with all three labels is therefore a spot where the first person chooses one room, the second another and the third the remaining one, at prices that are almost identical. Make the triangles small enough and "almost" becomes a matter of pennies. At that point everyone gets the room they would pick, and no two people want the same one.

The same argument works for any number of flatmates, in higher dimensions.

Doing it at the kitchen table

The proof suggests a procedure, and it needs no geometry.

  1. Propose a set of prices adding up to the total rent. Start with an equal split.
  2. Everyone says, at the same moment, which room they would take at those prices. Writing it down and revealing together avoids people adjusting to each other.
  3. If all choices are different, stop. That is the answer.
  4. If two or more people want the same room, raise its price a little and lower the price of a room nobody chose, keeping the total fixed.
  5. Repeat.

A room in demand becomes dearer until one of the people wanting it decides that another room, now cheaper, is the better deal. Within a few rounds the choices separate.

Suppose the rent is 1,800 for three rooms: a large one on the street, a medium one with a balcony and a small one at the back.

Round Large Balcony Small Choices
1 600 600 600 Amina: balcony. Bao: large. Chloe: balcony.
2 600 680 520 Amina: balcony. Bao: large. Chloe: balcony.
3 610 730 460 Amina: balcony. Bao: large. Chloe: small.

At 730 for the balcony room and 460 for the small one, Chloe decides the saving is worth more to her than the balcony. Everyone has chosen a different room, and each chose it freely at the stated prices. Amina pays 270 more than Chloe and is content, because she had the option of the small room at 460 and preferred the balcony.

Note what the prices have done. The balcony room costs more than the large one, although it is smaller. Floor area would have priced it the other way round. What the procedure measured was how much these three people wanted each room.

Calculators

For those who would sooner not haggle in rounds, there are websites that do it. One newspaper published an interactive calculator in 2014 based directly on Su's method. It asks each flatmate in turn which room they would choose at successive prices and homes in on a solution.

A group of computer scientists built a non-profit site offering a different approach. Each person privately enters what they think each room is worth, with the values adding up to the total rent. An algorithm then computes the assignment and prices. Among all the envy-free solutions it selects one by a further rule, such as making the least happy person as happy as possible. The site's authors have published the reasoning behind it, and tens of thousands of households have used it.

Where it gets difficult

Honesty. The method assumes people report their real preferences. Someone could pretend to care less about a room they want in the hope of getting it cheaply. With envy-free methods the gains from doing this are generally small, and the risk of ending up with a room you like less is real, but no procedure is immune.

Budgets. The procedure might assign someone a room they truly prefer at a price they cannot afford. If one flatmate has a hard limit, say so at the start, and treat it as a constraint.

Couples. Two people sharing one room use more of the kitchen, bathroom and hot water. The usual practice is to settle a fair share of the common costs first, often per person, and to run the procedure on the room rents alone.

Things that are not rooms. A parking space, the larger cupboard or the desk in the living room can be included by attaching each to a room, or dealt with separately.

Changes. When a flatmate leaves and a newcomer has different tastes, the fair prices change. Rerunning the procedure takes ten minutes.

Why it matters beyond the flat

Rental harmony is a small instance of a large field. The same ideas are used to divide inheritances, to allocate tasks, to share the cost of a taxi among passengers going to different places, and to assign courses to students. Economists and computer scientists work on these problems because so many practical disputes come down to dividing something among people who value it differently.

One feature recurs in all of them. Nobody outside the group could have worked out the fair answer for the flat by measuring the rooms. It came from asking each person what they would choose and adjusting until the choices fitted together.

For three people about to share a kitchen for a year or two, the practical benefit is that the price each one pays is a price they picked. There is very little left to resent.