ECON 301 · Intermediate Microeconomics

Preferences and Utility Functions

How economists turn "I like this more than that" into a ranking, then into a utility function that a little math can use.

Key takeaways

  • A preference is a ranking of bundles. A bundle is a list of how much of each good you get, such as 2 tacos and 1 smoothie.
  • Four plain rules (complete, consistent, more-is-better, and a taste for variety) are enough to build nearly all of consumer theory.
  • A utility function is just a scoreboard that gives higher numbers to bundles you like more. Only the order of the scores matters.
  • Marginal utility is the extra satisfaction from one more unit. For most goods it shrinks as you get more.
  • Any stretching of the scoreboard that keeps the order, such as squaring all the scores, describes exactly the same person.

Picture Dev, a college student with one free Saturday and a ten-dollar bill. A friend asks, "Would you rather have two tacos and one smoothie, or one taco and three smoothies?" Dev thinks for a second and says the smoothies. Nobody asked him to explain. He just knows.

That gut answer is the raw material of this entire course. Consumer theory starts from a modest claim: people can compare things, and their comparisons follow a few sensible rules. From those rules we can build a tidy tool, the utility function, that lets us predict choices with algebra and graphs. This lesson builds the tool. The next lessons put it to work on prices, budgets and demand.

Bundles: the things being compared

Economists call a list of goods a bundle. With two goods, say tacos (x) and smoothies (y), a bundle is a pair like (2, 1): two tacos and one smoothie. Two goods keep the pictures simple. The ideas carry over to a hundred goods without change.

Dev's job, in the model, is to look at any two bundles A and B and say one of three things: "I prefer A," "I prefer B," or "I am equally happy with both." The word indifferent means exactly that last case. Being indifferent does not mean Dev does not care. It means the two bundles feel equally good to him.

Why start with a ranking and not with money or happiness points? Because a ranking is something we can actually observe. If Dev always picks smoothies when both bundles cost the same, we learn his ranking without reading his mind. The later lesson on revealed preference builds on this idea.

The four rules of sensible preferences

Economists add a few rules so that the ranking behaves. None is a law of nature. They are assumptions, and each one has a job.

Four assumptions about preferences
The rule Complete: any two bundles can be compared Transitive: if A beats B and B beats C, then A beats C Monotone: more of a good is never worse Convex: a blend is liked at least as much as the extremes The job it does No bundle is a mystery to the person No cycles, so a best choice exists Higher scores mean more goods Smooth, bowed curves in the next lesson VS The rule Complete: any two bundles can be compared Transitive: if A beats B and B beats C, then A beats C Monotone: more of a good is never worse Convex: a blend is liked at least as much as the extremes The job it does No bundle is a mystery to the person No cycles, so a best choice exists Higher scores mean more goods Smooth, bowed curves in the next lesson

Each rule is simple. Together they let us draw curves and solve for choices.

Complete means Dev can compare any two bundles, even odd ones. He might say "equal," but he does not say "I cannot decide what that even is."

Transitive means the ranking has no loops. If Dev likes A more than B, and B more than C, then he must like A more than C. Without this rule you could trap a person in a loop. Suppose Dev would pay a nickel to swap C for B, another nickel to swap B for A, and another to swap A for C. He ends up where he started, down fifteen cents. A person like that has no best choice, so the model could not predict anything.

Monotone (more is better) means that if bundle A has at least as much of every good as bundle B, and more of one, Dev prefers A. This is a modeling choice. Nobody likes a fifth plate of tacos at some point. The usual fix is to treat "goods" as things Dev wants and leave real overeating to a different model.

Convex is the taste for variety. If Dev is equally happy with 4 tacos and 0 smoothies or with 0 tacos and 4 smoothies, then a mix like 2 tacos and 2 smoothies is at least as good as either. Most people feel that a blend beats a lot of one thing. That is the logic behind balanced shopping carts.

From a ranking to a number

Rankings are hard to do algebra on. So economists invent a scoreboard. A utility function, written u(x, y), gives each bundle a number such that bundle A gets a higher number than bundle B exactly when Dev prefers A to B. Equal scores mean indifference.

Here is a famous and handy example:

A simple utility function
u = x × y u = Utility score The number the scoreboard gives to a bundle x = Tacos How many tacos are in the bundle y = Smoothies How many smoothies are in the bundle u = x × y u = Utility score The number the scoreboard gives to a bundle x = Tacos How many tacos are in the bundle y = Smoothies How many smoothies are in the bundle

Multiplying makes both goods matter: if either one is zero, the score is zero.

Say Dev's scoreboard is u = x × y. Score three bundles:

Bundle A: 4 tacos, 3 smoothies  ->  u = 4 × 3 = 12
Bundle B: 2 tacos, 6 smoothies  ->  u = 2 × 6 = 12
Bundle C: 3 tacos, 3 smoothies  ->  u = 3 × 3 =  9

A and B tie at 12, so Dev is indifferent between them. Both beat C, which scores 9. Notice that C has fewer tacos than A and the same smoothies, so "more is better" agrees with the scores. Notice also that the multiplication rule rewards balance: 4 tacos with no smoothies scores 0, which is below every bundle that has some of both.

Only the order matters

Here is the idea students find strangest. The numbers 12, 12 and 9 mean nothing by themselves. They are labels that happen to be ordered correctly. Dev does not "feel twelve units of happiness." If you replaced each score with its square, you would get 144, 144 and 81. The order is identical: A ties B, and both beat C. The same goes for adding 100 to every score, or doubling every score. Those changes keep the ranking and are called monotonic transformations (stretches that never reverse the order).

Utility measured this way is called ordinal, which means only the order counts. If utility were cardinal, the size of the gaps would count too, and you could say a score of 12 is twice as good as 6. In ordinary consumer theory we do not make that claim, because choices never reveal it. When Dev picks A over C, we learn that A ranks higher. We learn nothing about how much higher.

This sounds like a limitation, but it is a strength. A theory that needs fewer assumptions is harder to attack. Everything in the next lessons, from indifference curves to demand curves, comes out the same no matter which scoreboard you choose, as long as it preserves the ranking.

Marginal utility: one more slice

Many choices are about the margin, meaning one more unit. Marginal utility is the change in the score from one extra unit of a good, holding the other goods fixed. If Dev has 3 smoothies and a fourth would raise his score from 9 to 10.5, the marginal utility of that smoothie is 1.5.

For most goods, marginal utility falls as you consume more. The first taco after a long morning is wonderful. The fifth is a chore. This pattern is called diminishing marginal utility. Take a different scoreboard to see it. Suppose u = 3 × √x for tacos alone:

x = 1  ->  u = 3 × 1     = 3.00
x = 4  ->  u = 3 × 2     = 6.00
x = 9  ->  u = 3 × 3     = 9.00

The first taco adds 3. Going from 1 to 4 tacos (three more) adds 3 in total, or 1 per taco. Going from 4 to 9 (five more) adds 3 in total, or 0.6 per taco. Each added taco is worth less than the one before.

Total utility rises, but more slowly
Utility score u = 3 × √x 1 taco 4 tacos 9 tacos Each taco adds less Tacos eaten Utility score u = 3 × √x 1 taco 4 tacos 9 tacos Each taco adds less Tacos eaten

A word of warning. Diminishing marginal utility is a habit of many goods, not a required rule of the model. The four assumptions above do not demand it. And since utility is ordinal, the exact size of marginal utility depends on which scoreboard you picked. Square the scores and the marginals change. What does not change is a quantity built from a ratio of two marginal utilities, which we meet in the next lesson.

A worked example: ranking three weekends

Let us carry Dev one step further. He has a different goods pair now: hours of music (x) and hours of studying (y) in a 12-hour day. His scoreboard is u = x × y, and each bundle uses all 12 hours.

Bundle P: 6 hours music, 6 hours studying   u = 6 × 6 = 36
Bundle Q: 8 hours music, 4 hours studying   u = 8 × 4 = 32
Bundle R: 3 hours music, 9 hours studying   u = 3 × 9 = 27
Bundle S: 12 hours music, 0 hours studying  u = 12 × 0 = 0

Ranking: P (36), then Q (32), then R (27), then S (0). Dev's favorite is the even split. Check a transformation: if we use u² instead, the scores are 1,296, 1,024, 729 and 0. Same order, so the same Dev.

Now see how the convexity rule shows up. Compare S with the opposite extreme, T = (0, 12), which also scores 0. Dev is indifferent between those two extremes. Their half-and-half blend is (6, 6), which scores 36 and beats both. That is exactly the "taste for variety" we assumed, and the product form builds it in.

Scoring four ways to spend a day
Dev's Saturday Utility scores, u = hours of music × hours of studying 12 hours to spend Bundle scores P: 6 music, 6 study 36 Q: 8 music, 4 study 32 R: 3 music, 9 study 27 S: 12 music, 0 study 0 Scores summed (for display only) 95 Dev's Saturday Utility scores, u = hours of music × hours of studying 12 hours to spend Bundle scores P: 6 music, 6 study 36 Q: 8 music, 4 study 32 R: 3 music, 9 study 27 S: 12 music, 0 study 0 Scores summed (for display only) 95

The sum is not meaningful in economics; only the order of the four scores is. It is shown so you can check the arithmetic. Example with made-up numbers.

A common mistake: reading utility like money

The most frequent slip is to treat utility numbers as if they were dollars or degrees. You will hear a classmate say, "Bundle A has utility 12 and bundle C has 9, so Dev is 33% happier with A." That does not follow. With a different scoreboard that preserves the order, such as u² (144 against 81), the "percent happier" claim changes to 78%. A claim that depends on which valid scoreboard you chose is not a claim about Dev.

Another slip is to say that utility functions must be smooth, bowed, or increasing everywhere. A function only has to rank bundles in the same order as the person does. Different people have different functions, and the same person may have different ones in different moods.

A third slip is to believe the theory says people consciously compute utility. It does not. It says people choose as if they follow a ranking. A cook does not solve equations either, yet the soup comes out balanced.

Why bother with all this?

The scoreboard lets us ask a precise question: given prices and a budget, which bundle has the highest score Dev can afford? Answering it needs two more pieces. The first is a picture of all the bundles that tie, which you will get in the lesson on indifference curves. The second is a clear idea of what Dev can afford, covered in budget constraints. Put them together and you get the consumer's optimal choice. The utility function is the first block in that tower.

It is also why economists seem to keep arguing about "assumptions." They are not claiming people are robots. They are asking which small set of plain rules can rebuild the behavior we see, and where it breaks. Behavioral economics, for example, collects cases where real people fail transitivity or change rankings when a question is worded differently. Those findings sharpen the model rather than throw it out.

Words to know

Bundle a list of how much of each good a person gets, such as 2 tacos and 1 smoothie.

Preference a person's ranking of bundles from most to least liked, with ties allowed.

Indifferent equally happy with two bundles, so neither is ranked above the other.

Utility function a scoreboard that gives higher numbers to bundles the person likes more.

Ordinal utility the idea that only the order of utility scores matters, not the size of the gaps.

Monotonic transformation a change to the scores, like squaring them, that never reverses their order.

Marginal utility the extra utility from one more unit of a good, holding the other goods fixed.

Diminishing marginal utility the pattern that each extra unit of a good adds less than the one before.

Check yourself

  1. Name the four assumptions about preferences used in this lesson and say in one phrase what each means.
  2. With u = x × y, find the utility of the bundles (5, 2), (2, 5) and (4, 2). Which does Dev rank lowest?
  3. Using the scoreboard u = x × y, replace each score from question 2 by its square. Does the ranking change?
  4. If utility is 3 × √x, what is the marginal utility per taco in going from 4 tacos to 9 tacos?
  5. Explain why a person with the cycle "A over B, B over C, C over A" cannot have a utility function.
  6. A friend says "utility 20 is twice as good as utility 10." Explain why that claim is not justified in ordinal theory.
Show the answers
  1. Complete (any two bundles can be compared), transitive (no loops in rankings), monotone (more is never worse), convex (a blend is at least as good as the extremes).
  2. (5, 2) gives 10, (2, 5) gives 10, (4, 2) gives 8. The bundle (4, 2) is ranked lowest, and the first two tie.
  3. The squares are 100, 100 and 64. The order is the same, with a tie for first and (4, 2) last, so nothing changes.
  4. Utility rises from 6 to 9, a gain of 3 over 5 extra tacos, so 3 ÷ 5 = 0.6 per taco.
  5. A utility function needs u(A) > u(B) > u(C) > u(A), which is impossible because a number cannot be higher than itself.
  6. Another scoreboard with the same order, such as one that gives 400 and 100, tells a different story about "twice," so the ratio is not a fact about the person; only the order is.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Consumer theory

  1. Preferences and Utility FunctionsHow economists turn "I like this more than that" into a ranking, then into a utility function that a little math can use.12 min
  2. Indifference Curves and the Marginal Rate of SubstitutionIndifference curves map every bundle that ties in rank, and their slope shows how much of one good you would trade for another.11 min
  3. Budget Constraints in DetailA budget line shows every bundle a person can afford; learn its equation, how prices and income move it, and what a coupon or cap does.11 min
  4. The Consumer's Optimal ChoiceThe best affordable bundle sits where an indifference curve just touches the budget line, unless the best spot is a corner.10 min
  5. Deriving Demand Curves From ChoicesChange one price, find the new best bundle each time, and the quantities you pick trace out the demand curve.9 min
  6. Income and Substitution EffectsA price change does two jobs at once: it makes the good a better deal, and it changes how rich you feel. Here is how to separate them.11 min
  7. Measuring Welfare: Compensating and Equivalent VariationTwo dollar measures of how much a price change helps or hurts a person, and how they compare with the area under the demand curve.11 min
  8. Revealed PreferenceLearn how a shopper's choices alone can show their tastes, and how to test whether those choices fit a rational consumer.10 min
  9. Labor Supply and Saving as Consumer ChoicesSee how the same budget-and-preference tools explain how many hours people work and how much they save for later.10 min
  10. Choice Under Risk: Expected Utility and Risk AversionLearn how economists model choices when outcomes are uncertain, and why most people pay to avoid risk even at fair odds.9 min

In the news