ECON 301 · Intermediate Microeconomics

General Equilibrium and Walras' Law

How prices in every market can settle together, why only relative prices matter, and why one market always clears the others.

Key takeaways

  • A general equilibrium is a set of prices at which supply equals demand in every market at once.
  • Demand depends only on relative prices, so doubling all prices changes nothing real.
  • Walras' law says that the value of excess demand across all markets is always zero, so if all but one market clear, the last one does too.
  • Because of that law, an economy with n goods has only n − 1 independent price equations to solve, and we can fix one price as the numeraire.
  • General equilibrium shows how a shock in one market spreads to others, which a one-market view misses.

Here is a strange fact about a grocery store. The price of eggs rises, and a week later the price of bacon rises too, and the price of bread, and the number of people hiring cooks. Markets are linked in ways nobody sees from inside one of them. When we study a single market and hold everything else fixed, we are making a bet that the links are weak. Sometimes the bet is fine. Sometimes it badly misses.

General equilibrium is the study of all markets at once. It asks a bold question: is there a set of prices that makes every market clear at the same moment? This lesson builds a tiny version with two people and two goods, finds the answer with arithmetic, and reveals a neat rule, called Walras' law, that follows from the budget constraints.

Setting up the economy

We return to Ana and Ben from the box lesson. They share 10 slices of pizza and 10 cans of soda. Ana starts with 8 slices and 2 cans. Ben starts with 2 slices and 8 cans. Both have the taste U = slices × cans.

Instead of two friends bargaining, we now let a market do the work. There is a price for pizza and a price for soda, and each person takes both prices as given. We choose pizza as the numeraire, the good whose price is set to 1 so that other prices are measured in it. Call the money unit a "dollar": pizza costs $1 a slice, and soda costs $p a can. So p is also the number of slices one can is worth.

Each person's wealth is the market value of what they start with.

  • Ana's wealth: 8 × 1 + 2 × p = 8 + 2p.
  • Ben's wealth: 2 × 1 + 8 × p = 2 + 8p.

With the taste U = x × y, a person spends half their wealth on each good. (This is what the choice of the best bundle gives; see the consumer choice lesson.) So demands are:

Ana:  slices = (8 + 2p) ÷ 2 = 4 + p       cans = (8 + 2p) ÷ (2p) = 4 ÷ p + 1
Ben:  slices = (2 + 8p) ÷ 2 = 1 + 4p      cans = (2 + 8p) ÷ (2p) = 1 ÷ p + 4

Finding the prices that clear every market

Market for slices. Total demand is (4 + p) + (1 + 4p) = 5 + 5p. Supply is 10. They are equal when 5 + 5p = 10, so p = 1.

Market for cans. Total demand is (4 ÷ p + 1) + (1 ÷ p + 4) = 5 ÷ p + 5. Supply is 10. They are equal when 5 ÷ p = 5, so p = 1.

Both markets clear at the same price, p = 1. We found a general equilibrium. At those prices, Ana has 4 + 1 = 5 slices and 4 ÷ 1 + 1 = 5 cans. Ben has 1 + 4 = 5 slices and 1 + 4 = 5 cans. That is the point (5, 5) in the Edgeworth box, a very good outcome in the core.

Total demand for soda at each price
Cans demanded or supplied 1 10 Demand for cans Supply of cans Clears at p = 1 Excess demand Excess supply Price of a can (in slices' worth) Cans demanded or supplied 1 10 Demand for cans Supply of cans Clears at p = 1 Excess demand Excess supply Price of a can (in slices' worth)

Below p = 1 more cans are wanted than exist, so the price rises. Above it, cans pile up, so the price falls.

The figure shows a simple price-adjusting story. Imagine an auctioneer who calls out a price and watches the market. If people want more than exists, the auctioneer raises the price. If too much exists, the auctioneer lowers it. This old thought experiment is called tâtonnement, French for groping. No real market works quite like this, but it gives the idea of how prices find their level.

Walras' law, with real numbers

Now the surprise. Pick a price that is not the equilibrium and look at both markets together. Define excess demand as quantity demanded minus quantity supplied. From the formulas above:

  • Excess demand for slices = (5 + 5p) − 10 = 5p − 5.
  • Excess demand for cans = (5 ÷ p + 5) − 10 = 5 ÷ p − 5.

Try p = 2. Slices: 5 × 2 − 5 = 5, so slices are wanted in excess by 5. Cans: 5 ÷ 2 − 5 = −2.5, so there is an excess supply of 2.5 cans. Now weigh each excess by its price, slices at $1 and cans at $2:

1 × (+5) + 2 × (−2.5) = 5 − 5 = 0

Try p = 0.5. Slices: 5 × 0.5 − 5 = −2.5. Cans: 5 ÷ 0.5 − 5 = 5. Value: 1 × (−2.5) + 0.5 × 5 = −2.5 + 2.5 = 0. Again zero. Try p = 4: slices 15, cans 1.25 − 5 = −3.75, value = 15 + 4 × (−3.75) = 15 − 15 = 0. It works at every price.

Walras' law in one line
p₁ × ED₁ + p₂ × ED₂ = 0 p₁ × ED₁ = Value of excess demand, good 1 Price times quantity demanded minus supplied. p₂ × ED₂ = Value of excess demand, good 2 Same for the second good. 0 = Always, at any prices Budgets guarantee that planned spending equals income. p₁ × ED₁ + p₂ × ED₂ = 0 p₁ × ED₁ = Value of excess demand, good 1 Price times quantity demanded minus supplied. p₂ × ED₂ = Value of excess demand, good 2 Same for the second good. 0 = Always, at any prices Budgets guarantee that planned spending equals income.

Why does it hold? Every person spends exactly their wealth (we assume no one wastes money or burns cash). So the total value of what everyone wants to buy equals the total value of what everyone brings to market. Move everything to one side and you get zero: the value of excess demand across all goods adds up to nothing. It is a bookkeeping fact that flows from the budget constraints, not a claim about how people behave.

What Walras' law buys us

The law gives three results.

  1. If all markets but one clear, the last one clears too. Suppose slices clear at p = 1. Then slice excess demand is zero, so the cans' excess demand times its price must be zero too, and the price is not zero, so cans clear. That is why we got p = 1 from both markets: they were not two separate puzzles.
  2. We can drop one equation. With n goods there are n markets but only n − 1 independent clearing conditions. And since we have set one price to 1, there are n − 1 unknown prices. Count and match: n − 1 equations, n − 1 unknowns. This is how economists reason about whether an equilibrium can exist, which is the beginning of an old research literature.
  3. Only relative prices matter. Suppose both prices doubled: slices cost $2, cans cost $2p. Ana's wealth doubles too (her endowment is worth twice as much), and she buys the same amounts as before. Demand does not change when all prices and all incomes scale together. We say demand is homogeneous of degree zero in prices. The money price level is not determined here at all; it needs monetary theory to pin down.

A shock that travels

Here is where general equilibrium earns its keep. Suppose a spill ruins 2 of Ben's cans, so Ben now has 6 cans and Ana still has 2. Pizza is untouched: 10 slices. The soda supply is now 8. Redo the work. Ana's wealth is still 8 + 2p, and Ben's is 2 + 6p.

Ana's cans: (8 + 2p) ÷ (2p) = 4 ÷ p + 1. Ben's cans: (2 + 6p) ÷ (2p) = 1 ÷ p + 3. Total cans demanded: 5 ÷ p + 4. Set equal to 8: 5 ÷ p = 4, so p = 1.25. Check the pizza market, which we did not use. Ana's slices: (8 + 2.5) ÷ 2 = 5.25. Ben's slices: (2 + 7.5) ÷ 2 = 4.75. Total 10, equal to supply. So pizza clears at the same price, as Walras' law promised.

The price of a can rose from $1 to $1.25. A one-market model would stop at that sentence. The full model says more. Ana, who sells her slices to buy cans, now holds 5.25 slices, a little more than before, while Ben holds 4.75. Cans are scarcer, so the person who owns them is richer relative to the person who owns pizza. A spill in the soda market moved what happens in the pizza market, because both people spend from one budget.

How a shock in one market spreads
1 Cans become scarce The spill cuts the supply of soda from 10 to 8. 2 Soda price rises Demand exceeds supply until the price reaches 1.25. 3 Budgets shift Soda owners gain buying power; pizza owners lose some. 4 Pizza demand moves Ana buys 5.25 slices and Ben 4.75, still 10 in all. Cans become scarce The spill cuts the supply of soda from 10 to 8. 1 Soda price rises Demand exceeds supply until the price reaches 1.25. 2 Budgets shift Soda owners gain buying power; pizza owners lose some. 3 Pizza demand moves Ana buys 5.25 slices and Ben 4.75, still 10 in all. 4

Does an equilibrium always exist?

In our toy economy we could solve for the price. A fair question is whether a price like this always exists in a bigger economy with many goods and many people. In the 1950s Kenneth Arrow and Gérard Debreu (and, separately, Lionel McKenzie) proved that under certain conditions it does. The conditions include that preferences are well behaved (convex), that firms have no increasing returns, and that each person has something of positive value to sell. The proof uses a branch of mathematics called fixed-point theorems, which we will not need here.

Two limits are worth knowing. First, there can be more than one equilibrium. Our economy had only one, but some economies have several price vectors that each clear every market. Second, the proof says nothing about how the economy reaches its price. Real adjustment is messy, with firms guessing, contracts slow to change, and trades happening before prices settle. Treat general equilibrium as a benchmark for thinking, one that tells you what would have to be true for prices to coordinate everyone, not as a forecast.

A common mistake

The most common mistake is to read Walras' law as "all markets always clear." It says only that the value of excess demands sums to zero. At p = 2 above, one market has excess demand and the other has excess supply, and they offset in value. A second mistake is to think a single price level is determined: only ratios of prices appear in the demand formulas. A third is to believe that the equilibrium found is reached automatically. It is a statement about where things would rest, and whether the economy gets there, and how fast, are other questions.

Words to know

General equilibrium a set of prices at which every market in the economy clears at the same time.

Numeraire the good whose price is fixed at 1 so that all other prices can be stated relative to it.

Excess demand the quantity demanded minus the quantity supplied at a given price.

Walras' law the statement that the value of excess demand summed across all markets is zero at any set of prices.

Relative price the price of one good in terms of another.

Homogeneous of degree zero describes a function whose value does not change when all its inputs are multiplied by the same number.

Tâtonnement a thought experiment in which an auctioneer adjusts prices up or down until markets clear.

Check yourself

  1. State Walras' law in words.
  2. In Ana and Ben's economy, what are the total demands for slices and for cans at price p of a can (slice price 1)?
  3. Find the price at which slices clear, and check that cans clear there too.
  4. At p = 2, find the excess demand in each market and show Walras' law holds.
  5. Explain why doubling every price and every endowment value leaves demands unchanged.
  6. Explain why an economy with 5 goods needs only 4 independent price equations.
Show the answers
  1. The total value of excess demand across all markets equals zero at any set of prices.
  2. Slices: 5 + 5p. Cans: 5 ÷ p + 5.
  3. 5 + 5p = 10 gives p = 1. Cans: 5 ÷ 1 + 5 = 10, which equals supply.
  4. Slices: 5 × 2 − 5 = 5. Cans: 2.5 − 5 = −2.5. Value: 1 × 5 + 2 × (−2.5) = 0.
  5. A person's budget line does not change when prices and wealth both scale up, so the best choice is the same.
  6. Walras' law says the fifth market clears automatically if the other four do, so only 4 equations are needed (and one price is fixed as numeraire, leaving 4 unknowns).

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: Equilibrium and welfare

  1. Partial Equilibrium Welfare AnalysisUsing consumer and producer surplus in one market to measure who gains and loses from taxes, price ceilings and other policies.10 min
  2. The Edgeworth Box and Gains From ExchangeA box diagram shows how two people with different tastes can both gain by trading, and where trading stops.10 min
  3. General Equilibrium and Walras' LawHow prices in every market can settle together, why only relative prices matter, and why one market always clears the others.10 min
  4. The Two Welfare TheoremsWhy competitive markets reach efficient outcomes, how any efficient outcome can be reached by markets, and where each claim breaks.10 min

In the news