essay · 14 min read · october 2026

what's your utility function?

two people make the same choices for opposite reasons. a walk through marginal utility, opportunity cost and sunk costs, and what they say about how we live.

two people, one decision

for sake of explaining my probably somewhat abstract thoughts and the nature of economics, i will use two different people as guiding characters, hanni and nanni.

hanni and nanni are both 32.

they live in the same city, work in similar jobs, earn roughly the same amount of money, and spend an arguably unhealthy number of hours staring at their laptops.

both are ambitious. both are successful. both have sacrificed a considerable amount of their twenties to get where they are. they work roughly 65 hours a week.

ask either of them why they work so much, and you’ll probably get a similar answer. they enjoy what they do. they like the challenge. they’re building something. they want to achieve things.

good enough. but there’s a difference between hanni and nanni.

hanni works because working makes her happy. nanni works because not working makes her unhappy.

at first glance, that might seem like a distinction without much difference. after all, they behave almost identically.

but i think it’s a distinction that tells us something fundamental about how people make decisions, what drives them, and ultimately what they’re optimizing for.

which brings me to utility functions.

i studied economics, so i spent way too much time learning about and suffering through them.

the basic idea is relatively simple: people have preferences, and a utility function is a mathematical way of representing those preferences.

standard microeconomic theory generally models individuals as making choices that maximize their utility, subject to constraints.

you have a limited amount of money, time, and other resources. you have things you prefer over other things. and you make decisions accordingly.

the mathematics can get more complicated, but the underlying intuition is quite accessible.

what i find fascinating is applying this framework to life itself.

because if we’re spending our lives making decisions that supposedly maximize our utility, shouldn’t we have some idea of what our personal utility function actually looks like?

and, what happens when the function we believe we’re maximizing isn’t the one our behavior suggests we’re following?

the mathematics of wanting things

let’s start with the economics. the entire idea and essay also works if you completely ignore them, but i think they are helpful thought exercises.

imagine that your utility depends on two things: money and leisure.

U=f(M,L)U=f(M,L)

where M represents money and L represents leisure. the function describes how different combinations of money and leisure rank according to your preferences.

someone might prefer more money and be willing to sacrifice leisure to obtain it. someone else might prefer more free time, even if that means earning less.

neither is necessarily irrational. they simply have different preferences.

now let’s expand the model. perhaps your utility depends on happiness, relationships, achievement, meaning, freedom, and security.

U=f(H,R,A,Me,F,S)U=f(H,R,A,\mathit{Me},F,S)

this is already a much more interesting representation of a human life. but also a more complicated one.

because these variables don’t necessarily contribute equally to your utility. and they certainly aren’t independent of one another.

achievement might be especially rewarding when you have people to share it with. financial security might be enormously valuable when you’re struggling to pay rent, but less important once you’re comfortably wealthy. freedom might be wonderful, until you have so much of it that you no longer know what to do with yourself.

economists have spent centuries developing mathematical frameworks for thinking about these kinds of trade-offs. i don’t think we can accurately represent the complexity of a human life with a six-variable equation. but the exercise forces us to ask interesting questions.

what are the variables in your personal utility function? how much do they matter? and how do you trade them off against one another?

let’s return to hanni and nanni.

and simplify their lives to just two variables: achievement and leisure.

hanni genuinely enjoys achievement. solving difficult problems, building things, and making progress give her satisfaction.

nanni also values achievement, but her relationship with it is different. for nanni, achievement is partly a way of avoiding uncomfortable feelings. when she’s productive, she feels good about herself. when she’s not, she feels guilty.

we could construct two different illustrative functions.

for hanni:

UA=α ln⁡(1+A)+β ln⁡(1+L)U_A=\alpha\,\ln(1+A)+\beta\,\ln(1+L)

for nanni:

UC=γ ln⁡(1+L)−k1+AU_C=\gamma\,\ln(1+L)-\frac{k}{1+A}

the logarithmic function in hanni’s utility represents diminishing marginal utility. nanni’s function represents another mechanism: the psychological cost associated with insufficient achievement becomes smaller as achievement increases.

both can rationally choose to work extremely hard, under appropriate constraints and parameter values. but the underlying sources of utility are different.

the distinction between pursuing a reward and escaping a penalty becomes more interesting once we introduce marginal utility.

the price of one more

one of key concepts in economics is marginal utility. it’s quite useful in reality as well.

the utility you derive from consuming or obtaining something can change depending on how much of it you already have.

consider pizza.

the first slice when you’re starving is wonderful. the second is still pretty good. the third is enjoyable. by the sixth, you’re probably starting to question your decisions.

the marginal utility of another slice decreases as you consume more.

in economics, this is called diminishing marginal utility.

d2Udx2<0\frac{d^2U}{dx^2}<0

the rate at which utility increases becomes smaller as consumption increases.

and i think this applies really well to achievement.

imagine hanni receives her first promotion. she’s thrilled. she calls her parents. celebrates with friends. feels proud of what she’s accomplished.

two years later, another promotion. still exciting, but perhaps not quite as exciting as the first.

then another. and another.

eventually, promotions start to feel less like extraordinary achievements and more like expected milestones.

the absolute level of achievement continues increasing. but the additional satisfaction from each new achievement might decline.

take the illustrative function:

U(A)=100 ln⁡(1+A)U(A)=100\,\ln(1+A)

then marginal utility is:

MU(A)=1001+A\mathrm{MU}(A)=\frac{100}{1+A}
fig. 1total utility from achievement (schematic)
fig. 2marginal utility of one more achievement (schematic)

the first unit contributes much more than the tenth.

this creates an interesting problem. even if marginal utility is declining, we might continue pursuing achievement with the same intensity.

hanni works harder for her fourth promotion than she did for her first. but the fourth promotion might make her less happy.

and nanni?

nanni receives the same promotion. but for her, the emotional experience is different. she doesn’t necessarily feel enormous satisfaction. she feels relief.

relief that she hasn’t fallen behind. relief that her colleagues recognize her work. relief that she’s still progressing.

for a brief moment, the anxiety disappears. then, eventually, it returns.

from the outside, both appear equally ambitious. but while hanni is chasing the next reward, nanni might be running away from the absence of one.

are you pursuing success because success makes you happy, or because not being successful would make you unhappy?

i’m not convinced most of us know the answer.

everything has an opportunity cost

economics has another concept that more people should internalize: opportunity cost.

the opportunity cost of a decision is the value of the best alternative you give up by making it.

when you choose one thing, you’re simultaneously choosing not to do something else.

hanni and nanni both receive an offer to take on a more senior role. the salary increase is substantial. the responsibilities are exciting. the title sounds impressive.

but the new position also means working another ten hours a week.

both accept.

suppose:

U=α ln⁡(M)+β ln⁡(L)U=\alpha\,\ln(M)+\beta\,\ln(L)

where M is income and L leisure.

MUM=αM,MUL=βL\mathrm{MU}_M=\frac{\alpha}{M},\qquad \mathrm{MU}_L=\frac{\beta}{L}

the marginal rate of substitution of leisure for income is:

MRSL,M=MULMUM=βMαL\mathrm{MRS}_{L,M}=\frac{\mathrm{MU}_L}{\mathrm{MU}_M}=\frac{\beta M}{\alpha L}

it represents the income compensation required for a small reduction in leisure, under this illustrative model.

fig. 3indifference curves: combinations of income and leisureillustrative curves for U = ln(M) + ln(L); each curve represents combinations delivering the same represented preference level. higher curves represent higher utility.

hanni thinks about the projects she’ll work on, the people she’ll learn from, and the satisfaction of building something meaningful.

nanni thinks about what turning down the promotion would mean. would her colleagues think she’s unambitious? would she fall behind? would she regret missing the opportunity?

both accept the same job, but for different reasons.

and neither necessarily thinks much about what they’re giving up.

ten additional hours a week. 520 hours a year. over five years, 2,600 hours.

time that could have been spent with friends, family, partners, or simply doing nothing.

none of those alternatives is automatically more valuable than work. that’s the point.

the question isn’t whether working more is good or bad. it’s whether the additional utility from working more exceeds the utility of the alternatives you’re sacrificing.

the future version of yourself

economists call trade-offs between the present and the future intertemporal choice.

imagine you can receive €100 today or €110 in a year. which do you choose?

your answer depends partly on how you value present versus future consumption, uncertainty, and what else you could do with the money.

a standard discounted-utility model is:

U=∑t=0Tδtu(ct)U=\sum_{t=0}^{T}\delta^t u(c_t)

where the discount factor δ is between zero and one. the higher δ, the greater the relative weight on future utility.

some people are more willing than others to sacrifice present satisfaction for future rewards.

hanni and nanni both spent much of their twenties working long hours. they skipped holidays, missed birthdays, postponed relationships, worked weekends, and told themselves it would eventually pay off.

perhaps they were right.

but there’s an assumption hidden inside that reasoning: that the future version of yourself will derive enough utility from the outcome to justify the utility you gave up along the way.

fig. 4present weight of future utility, δ = 0.9exponential discounting is a model, not a claim about how any particular person actually values their future.

imagine hanni at 25. she believes that becoming a senior executive by 35 will make her enormously happy.

so she spends ten years working toward it.

at 35, she achieves it. but the achievement doesn’t feel nearly as good as she anticipated.

perhaps she’s become accustomed to success. perhaps her priorities have changed. perhaps the goal was never as important as she thought.

she’s spent ten years maximizing a future utility function that turned out to look different from the one she expected.

nanni faces another problem.

she wasn’t necessarily chasing happiness. she was chasing a future in which she would finally feel secure enough to relax.

except that future never quite arrives. there’s always another milestone, another financial target, another person who seems to be doing better.

the finish line keeps moving.

how much of your present life are you willing to sacrifice for a future version of yourself whose preferences you cannot reliably predict?

sacrificing present utility for future utility isn’t inherently irrational. saving, studying, exercising, and investing in relationships all involve such trade-offs.

the problem is systematically overestimating future rewards or underestimating what we give up today.

the sunk cost fallacy

hanni is now 35.

she’s spent more than a decade building her career. she has an impressive title, a good salary, and a reputation for being excellent at what she does.

but lately, she’s started wondering whether she actually wants to continue.

the work that once excited her has become repetitive. she misses having time for other things. she’s increasingly interested in starting something of her own.

but leaving would mean giving up the career she’s spent so long building.

nanni faces a similar situation. she also questions whether her current path makes her happy. but the thought of leaving terrifies her.

she’s invested too much. worked too hard. sacrificed too much.

surely she can’t just walk away now?

a sunk cost is a cost already incurred that cannot be recovered.

the rational decision about what to do next should depend on expected future costs and benefits, not irrecoverable past investments.

imagine you’ve spent €100 on a concert ticket. on the day, you’re exhausted, the weather is terrible, and you’d rather stay home.

the €100 is gone whether you attend or not. the decision should depend on whether the concert will provide more utility than staying home.

the same logic applies to careers.

Choose A if 𝔼[Ufuture∣A]>𝔼[Ufuture∣B]\text{Choose A if }\text{𝔼}[U_{\mathrm{future}}|A]>\text{𝔼}[U_{\mathrm{future}}|B]
fig. 5the decision from today forward

but psychologically, that’s much easier said than done.

we don’t just invest time and effort into careers. we build identities around them.

we become the ambitious person. the successful person. the person who always works hard.

changing direction can feel less like making a rational decision and more like abandoning part of ourselves.

hanni might struggle because she’s attached to her identity. nanni might struggle because leaving feels like admitting all those sacrifices were wasted.

something can have been the right decision in the past and no longer be the right decision today.

the fact that a career made you happy at 25 doesn’t mean it must continue making you happy at 35.

what your decisions say about you

revealed preference theory examines preferences through observable choices.

rather than asking someone what they value, we look at what they actually choose.

imagine someone says family is the most important thing in their life, but every time they choose between working late and family time, they choose work.

what should we conclude?

perhaps work matters more than they claim. perhaps they’re making a deliberate short-term sacrifice for long-term security. perhaps they don’t feel they have a choice.

or perhaps habits, fears, or expectations are driving choices that don’t align with their reflective values.

we can’t know from behavior alone.

observed choices can reveal something about preferences under particular assumptions, but they don’t give us direct access to motivation.

still, the question is powerful.

if someone observed your life for a month, what utility function would they conclude you’re maximizing?

not what you say matters. not what you wish mattered. what your decisions seem to prioritize.

how do you spend your time? what do you spend money on? which commitments do you cancel? what makes you anxious? what are you willing to suffer for?

hanni and nanni might both tell an interviewer that they value growth, meaningful work, and strong relationships.

but an observer would see two people who consistently prioritize work.

the same behavior, though, can emerge from different mechanisms.

hanni might be pursuing something she loves. nanni might be avoiding something she fears.

and both might be mistaken about how much happiness their choices will generate.

when your utility function changes

economics often models preferences as relatively stable. real life is messier.

the things we value at 20 aren’t necessarily what we value at 30, or 50.

at 22, hanni might have placed enormous weight on achievement and growth. at 35, perhaps relationships have become more important.

we could write illustrative weighted scores:

U22=0.5A+0.3G+0.2RU_{22}=0.5A+0.3G+0.2R
U35=0.2A+0.2G+0.6RU_{35}=0.2A+0.2G+0.6R

these are stylized scoring functions, not cardinal measurements of well-being; their coefficients only make sense given a common normalization of the inputs.

fig. 6changing priorities (illustrative weights)descending curve: achievement. ascending curve: relationships. hypothetical preference weights, not population data.

the problem is that her life might not have changed accordingly.

she’s still working the same hours, pursuing the same goals, and making decisions based on preferences she had ten years ago.

in a sense, she’s optimizing for an outdated utility function.

we choose careers, relationships, cities, and lifestyles based on what we value at a particular moment. then we build routines and identities around them.

over time, the routines become self-reinforcing. we stop asking whether the original reasons still apply.

nanni’s situation might be more complicated. her preferences may have been shaped by the competitive environment she’s spent years in.

we sometimes distinguish exogenous preferences, treated as given, from endogenous preferences, shaped by experience, institutions, and social environments.

are you choosing your environment because it aligns with your preferences, or is your environment teaching you what to prefer?

probably both.

maximizing utility isn’t the same as maximizing happiness

here’s a distinction we need to make.

in economics, utility doesn’t necessarily mean happiness.

a utility function represents preferences. it describes how someone ranks outcomes, not necessarily how happy those outcomes will make them.

someone might strongly prefer professional recognition over leisure. they might consistently choose recognition. their behavior might fit utility maximization.

but that doesn’t mean the resulting life will make them happy.

hanni might genuinely prefer achievement. nanni might genuinely prefer avoiding the discomfort associated with failure.

both might choose consistently with their preferences, yet experience very different levels of well-being.

and even if both maximize those preferences, that doesn’t settle whether they’re living good lives.

this is where economics meets philosophy.

aristotle’s idea of eudaimonia points toward human flourishing rather than pleasure alone.

modern psychology distinguishes hedonic well-being, associated with pleasure and positive feelings, from eudaimonic well-being, associated with meaning and purpose.

a life can be pleasurable without feeling meaningful. meaningful without always being pleasurable. conventionally successful while feeling strangely empty.

perhaps the interesting question isn’t simply whether we’re maximizing our utility.

perhaps it’s whether the preferences we’re maximizing are actually the ones we want to have.

choosing what to want

hanni and nanni are now 40.

both have successful careers, financial security, and achievements their younger selves would have been proud of.

but their lives look different.

hanni has gradually started working less. she still enjoys achievement, but additional success doesn’t contribute as much satisfaction as it once did.

she’s investing more time in relationships, hobbies, and experiences.

nanni is still working 65 hours a week. she’s wealthier than ever, more successful than ever, and still worried she’s falling behind.

the milestones that were supposed to make her feel secure haven’t eliminated the underlying anxiety.

now imagine we ask both a question.

not what their utility functions currently look like.

but what they would want them to look like.

hanni might wish she placed less weight on achievement. nanni might wish she could enjoy success without constantly needing to prove herself.

suddenly, we’re no longer asking what people prefer. we’re asking what they wish they preferred.

philosophy has a term for this: second-order desires. desires about our desires.

you might want to work hard, but wish you didn’t care quite so much about working hard.

you might want recognition, but wish you were less dependent on approval.

you might enjoy competition, but wish you could occasionally stop comparing yourself with everyone around you.

these aren’t necessarily contradictions. they’re different levels of reflection about what we want.

and if preferences are partly shaped by our environments, experiences, and habits, perhaps we can also become more deliberate about shaping them.

not perfectly. not through some magical act of willpower.

but gradually, through what we pay attention to, how we spend our time, who we surround ourselves with, and what we reward ourselves for.

if you’re maximizing a utility function that you wish were different, are you really optimizing for the life you want?

perhaps life isn’t an optimization problem

there’s something slightly absurd about the entire exercise.

trying to represent a human life with mathematical equations. assigning coefficients to relationships, achievement, freedom, and happiness. calculating marginal utilities. estimating opportunity costs.

imagining that somewhere, hidden beneath all our decisions, there’s a coherent function waiting to be discovered.

the economist in me finds the idea appealing.

the human in me is considerably less convinced.

because real life is messy.

our preferences are inconsistent. our motivations are often unclear, even to ourselves. we make decisions based on incomplete information. we change our minds. we want contradictory things.

sometimes we don’t know what will make us happy until we’ve experienced it.

even the idea of an optimal life might be misleading.

there’s no objective function that can tell us whether spending another hour working is better than spending it with a friend.

no equation that can determine whether ambition is worth its sacrifices.

no universally correct set of weights for achievement, relationships, freedom, or meaning.

and perhaps that’s fine.

perhaps the purpose of thinking about your utility function isn’t to solve it.

perhaps it’s simply to become more conscious of the trade-offs you’re making.

to recognize when you’re pursuing something because you genuinely want it, and when you’re pursuing it because you’re afraid of not having it.

to notice when the marginal utility of something has started declining.

to question whether past investments are influencing decisions that should be about the future.

to ask whether the preferences that shaped your life five years ago still reflect what matters to you today.

and perhaps most importantly, to recognize that the utility function you’re currently maximizing isn’t necessarily the one you have to keep maximizing forever.

i’ve started asking people a question occasionally. including in interviews.

what’s your personal utility function?

i like it because it forces people to think beyond the usual answers about ambition, motivation, and happiness.

what actually drives you? what brings you joy? what are you willing to sacrifice? what are you optimizing for?

and if someone observed your decisions rather than listening to your answers, would they come to the same conclusions?

i don’t have a particularly good answer to these questions myself.

but perhaps that’s why it’s worth trying.

because maybe the most important part of understanding your utility function isn’t figuring out how to maximize it.

it’s figuring out whether it’s the function you actually want to maximize.

the letter

a short email when something new is up. nothing else.