An Equation for Dividing up Something (Like Pizza) Fairly Between Two People

Ever made a joint decision with your friend, partner, or family member that you debated hours and hours over? If that decision involved splitting up something between the two of you (e.g., pizza), then it turns out there’s a way to accomplish the sharing that’s mathematically proven to be fair to both parties.

In Section 6.2 of The Calculus of Happiness I discuss the solution. I also talk about its curious origin: John Nash’s (the mathematician the movie A Beautiful Mind centered on). Nash was a pioneer of a field now known as game theory, and one of his research articles focused on a collaborative “game” (roughly defined as an interaction between two or more people involving decisions that affected the people involved). Using some simplifying assumptions (see the Limitations section below), I apply the math in Nash’s research article to the two-person “game” where there’s a decision that needs to be made about splitting up a divisible thing (e.g., pizza). The resulting share each person gets can be quantified into two equations; see equations (6.7a) and (6.7b) in The Calculus of Happiness.

The calculator below uses those equations to help you get a sense of how to divide up the “thing.” It requires the following inputs:

There are two natural constraints:

which express the fact that the happiness levels in the event of a disagreement cannot be larger than the maximum happiness levels in the event an agreement is reached. There is also one technical constraint:

which is required for a solution (the optimal splitting) to exist. This constraint effectively says that a solution exists only when Y_d and P_d aren’t too large (relative to M and N).

NOTE: The calculate below was turned into a different interactive calculator by TIME Magazine; see this page for that interactive calculator.

Limitations

The formulas the calculator above is based on quantifying happiness using linear functions. This isn’t always an accurate description of happiness. These formulas, and the calculator above, also assume that the inputs (the green cells in the calculator) do not change over the course of the debate as to how much of the thing each person should have. Nonetheless, as I discuss in the book, the formulas (6.7a) and (6.7b) the calculator above is based on yield many useful insights into how to make more productive and fair certain joint decisions between two people.