Skip to content
We use only essential cookies to keep you signed in and remember your preferences. See our Cookie Policy.
TestStop
MocksPracticeResourcesIndiaBlogPricing
Sign in
Resources › General equilibrium and welfare › 2. Equilibrium
General equilibrium and welfare · Lesson 2 of 6

Competitive equilibrium and Walras' law

Lesson 1 found every efficient split of the goods, and there were many. Prices pick one. Give each person an endowment and a price line, let each choose the bundle she likes best, and look for the prices at which what people want is exactly what exists. That is a competitive equilibrium, and the arithmetic of finding it is the most examined skill in this module.

← General equilibrium and welfare moduleLesson 2 of 6 · about 45 minutes
1The box2Equilibrium3Production4Welfare theorems5Social choice6Delhi School
A question to hold on to
Amar has endowment FA = 2 and WA = 5 and utility UA = f²w. Barun has endowment FB = 8 and WB = 5 and utility UB = min{f, w}. They trade food and water at prices pf and pw. In the competitive equilibrium, pf/pw equals ______ (an integer).
JAM 2021 (Economics)Solved at the end ↓
In this guide
Lesson · about 45 minutes
  1. From the contract curve to prices
  2. The budget line through the endowment
  3. Try it: move the price
  4. Excess demand and Walras' law
  5. Computing an equilibrium, step by step
  6. Zero prices and free goods
  7. Does an equilibrium exist? Is it unique?
  8. The opening question, solved
  9. The lesson on one screen
  10. Check yourself
  11. Past papers, by level
01
The idea

From the contract curve to prices

Lesson 1 left a puzzle. The contract curve is a whole curve of efficient allocations, and bargaining inside the core can end anywhere on a stretch of it. A market gives an exact answer. Léon Walras, in his Éléments d’économie politique pure (1874), asked what happens if everyone treats prices as given, and showed that the whole economy can be described by a set of prices that makes all the separate choices fit together.

A competitive (or Walrasian) equilibrium is a set of prices and an allocation such that:

  1. each person chooses her best bundle among those she can afford at those prices, taking prices as given; and
  2. markets clear: the total amount demanded of each good equals the total amount available.

What goes in is only the “three givens” of neoclassical theory: preferences, technology and endowments (Hyderabad 2010). Everything else, prices included, comes out.

02
The constraint

The budget line through the endowment

A person owns an endowment ω = (ωx, ωy) and sells it, in her mind, at market prices to get wealth pxωx + pyωy. She then buys the bundle she likes best that costs no more. Her budget line therefore always passes through her endowment point, with slope −px/py: the market’s rate of exchange.

Two consequences matter for exams. First, only relative prices matter. Double both prices and both wealth and the budget set are unchanged, so demands are homogeneous of degree zero in prices. That is why a competitive-equilibrium problem with N goods fixes only N − 1 relative prices, and why we must normalise by hand (JNU 2021). Second, the usual normalisation is to pick one good as the numeraire and set its price to 1 (a price taken as constant, with the others measured relative to it: Hyderabad 2019). Setting the price of y to 1 makes p = px the price of x in units of y. The Delhi School often normalises prices to sum to one instead; nothing changes.

Pause and predict
If every price and every wealth is doubled, each person's best choice
03
Interactive

Try it: move the price

Slide the price of x. The two budget lines pivot round the endowment ω, and each person jumps to the best bundle on her line. When the two dots coincide, the markets clear. The graph on the right shows the excess demand for x against its price: where it crosses zero is the equilibrium. Press the auctioneer button to watch Walras’s own process: raise the price of a good that is in excess demand, lower the price of a good that is in excess supply.

Person 1 spends 40% of her wealth on x, person 2 spends 70%. Each starts with a lot of the good she likes less. Person 1: Cobb–Douglas, endowed with (6, 2). Person 2: Cobb–Douglas, endowed with (2, 6).

ωX →← XY →← YO₁O₂
Budget line through ω (slope −p_x/p_y)Person 1’s choicePerson 2’s choice○ hollow: she wants more than the box holds
Excess demand for x, at every price0.511.522.533.54−10−5510p_x / p_yz_x
● now○ market-clearing price
Excess demand

Good x: +5.8. Good y: −2.9. People want more x than there is: the auctioneer raises the price of x.

Walras’ law

p_x · z_x + p_y · z_y = 0. It is zero at every price, not only here: when x is in excess demand, y is in excess supply, in exactly the value that balances it.

04
The identity

Excess demand and Walras' law

The excess demand for a good is total demand minus the total endowment: zx = Σ xi − Σ ωix. A market clears when z = 0. Add up every person’s budget constraint, which holds with equality when more is better (the total spent equals the wealth), and the value of the excess demands must be zero:

Walras' law
px​zx​(p)+py​zy​(p)=0for all prices p
It holds at every price vector, not only at an equilibrium: the lab's second readout stays at zero as you slide the price.

The value of aggregate excess demand across all markets is zero (CUET 2021, 2023). The consequence is the one every paper asks for: if N − 1 markets clear, the Nth clears automatically(Hyderabad 2010; UGC NET Dec 2024; GATE 2021). With two goods, if x is in excess demand then y must be in excess supply, in exactly the value that balances it, so we only ever need to clear one market. There are N markets but only N − 1 independent equations, matching the N − 1 relative prices we are solving for.

The same logic in macroeconomics: the sum of the excess demands for money, bonds and current output is zero (UGC NET June 2024), so if the goods and bond markets clear, the money market does.

Walras' law is not a theory

It is an accounting identity that follows from people spending their wealth. It does not say markets clear, and it does not say the excess demand for each good is zero at every price: it says only that the values add to zero. Assertion-and-reason questions use this: the first welfare theorem is true, Walras’ law is true, and the law does not explain the theorem (CUET 2023).

05
The skill

Computing an equilibrium, step by step

  1. Normalise. Set py = 1 and call the price of x simply p.
  2. Wealth. For each person w = p·ωx + ωy.
  3. Demand. Cobb–Douglas, u = xay1−a: spend a share a of wealth on x, so x = a·w/p. Perfect complements, min{x, y}: buy equal amounts, x = w/(p + 1). Perfect substitutes, x + y: spend everything on the cheaper good (if p < 1 buy only x; if p > 1 buy only y; at p = 1 any split).
  4. Clear one market. Add the two demands for x and set the sum equal to the total supply of x. By Walras’ law the other market then clears too.
  5. Read off the allocation by putting the price back into the demands, and check the other market as a test.
JAM 2024 · standard
Two consumers with UA = 2X0.4Y0.6 and UB = X0.3Y0.7. Each is endowed with 50 of X and 20 of Y. With the price of Y normalised to 1, find the equilibrium price of X.
  1. 1
    Wealth.
    Each has w = 50p + 20. (The factor 2 in A’s utility changes nothing: it is a monotonic rescaling.)
  2. 2
    Demands for X.
    A: 0.4w/p; B: 0.3w/p. Total: 0.7(50p + 20)/p.
  3. 3
    Clear the X market.
    Supply is 100. So 0.7(50p + 20) = 100p, that is 35p + 14 = 100p, and p = 14/65.
Answer
0.2154, which rounds to 0.22: inside the keyed range 0.21 to 0.22.
GATE 2024 · standard
Anu’s utility is a + 2b and Binu’s is min{a, 2b}. Anu starts with no apricots and 12 bananas; Binu with 12 apricots and no bananas. In the competitive equilibrium, what is Anu’s consumption bundle?
  1. 1
    Anu is a perfect substitute chooser.
    She values a banana at 2 apricots, so she buys only bananas if pa/pb > 1/2, only apricots if it is < 1/2, and is indifferent at 1/2.
  2. 2
    Binu is a complement chooser.
    She wants a = 2b. With pb = 1 and pa = p, her wealth is 12p, so 2b·p + b = 12p and b = 12p/(2p + 1).
  3. 3
    Only p = 1/2 can work.
    If p > 1/2 Anu spends everything on bananas (all 12 of them) and Binu wants some too, so bananas are in excess demand and apricots in excess supply. If p < 1/2 she buys only apricots, and the reverse happens. At p = 1/2, Binu has wealth 6, so b = 6/2 = 3 and a = 6.
  4. 4
    Anu gets the rest.
    Apricots: 12 − 6 = 6. Bananas: 12 − 3 = 9. Check her budget: 6·(1/2) + 9 = 12 = her wealth ✓.
Answer
6 apricots and 9 bananas (option A).
06
The corner case

Zero prices and free goods

Suppose people between them want fewer units of x than exist, even when x is free. Then the price of x cannot be positive: it would fall to zero, and the market clears with an excess supply of x and a price of 0. If an equilibrium price is zero, the good is in excess supply (JNU 2021). Walras’ law still holds in the form “price times excess demand is zero for each good”: either the price is zero or the market clears.

Perfect complements make the point sharply. If the two people together own 10 units of x but only 5 of y, and they want the goods one for one, at most 5 units of x can ever be used, so x is free. The DSE asks many of these in Lesson 6.

Another corner: with u = max{x, y} a person spends everything on the cheaper good, so she is indifferent only when prices are equal. JAM 2023: endowments (25, 5) and (5, 5), so 30 of x and 10 of y. At prices (2, 2) the first has wealth 60 and buys 30 of x; the second has wealth 20 and buys 10 of y. Both markets clear. At (2, 1) everyone wants only y, and nobody buys x. So only the equal-price vector is an equilibrium.

07
Existence and uniqueness

Does an equilibrium exist? Is it unique?

Two facts, and an easy way to remember them. Existence: with continuous, convex, monotone preferences, an equilibrium exists. This is the Arrow–Debreu theorem (1954). It needs convexity: without it, demand can jump and prices can fail to clear the market (Lesson 6). Uniqueness is not guaranteed: some economies have several equilibria (CUET 2021 gives “the Walrasian equilibrium is always unique” as a false option).

The other trap is the opposite claim. In general equilibrium relative prices are determined by the model: they are endogenous (JAM 2026). Only the absolute level of prices is arbitrary, which is what the numeraire fixes. A reason that says “relative prices cannot be determined” is false (CUET 2023). And Walras’ tâtonnement is the story, with an auctioneer calling prices until demand equals supply, of how the economy might find them.

Watch out for

The mistakes examiners are fishing for

  • Solving all markets. Solve one; Walras’ law does the other. Use the other to check.
  • Forgetting the numeraire. You cannot solve for both prices. Fix one.
  • Using the endowment instead of wealth. A person’s demand depends on the value of her endowment at the prices, not on which goods she holds.
  • “Excess demand is zero at every price.” Only the value of excess demand is zero at every price; each market clears only at equilibrium.
  • “Walras’ law explains the welfare theorem.” Both are true statements but one does not explain the other.
08
Solving the opening question

The opening question, solved

JAM 2021 · standard
Amar: F = 2, W = 5, U = f²w. Barun: F = 8, W = 5, U = min{f, w}. Find pf/pw.
  1. 1
    Normalise.
    pw = 1 and pf = p. Amar’s wealth is 2p + 5; Barun’s is 8p + 5.
  2. 2
    Amar's demand for food.
    f²w is Cobb–Douglas with weight 2/3 on food, so f = (2/3)(2p + 5)/p.
  3. 3
    Barun's demand for food.
    Complements, so f = w = (8p + 5)/(p + 1).
  4. 4
    Clear the food market.
    Total food is 10. Try p = 2: Amar buys (2/3)(9)/2 = 3 and Barun buys 21/3 = 7. They add to 10 ✓.
  5. 5
    Check water.
    Amar’s w = (1/3)(9)/1 = 3, Barun’s w = 7: total 10 = 5 + 5 ✓.
Answer
pf/pw = 2.

To solve it without guessing: (2/3)(2p + 5)/p + (8p + 5)/(p + 1) = 10. Multiply through by 3p(p + 1): 2(2p + 5)(p + 1) + 3p(8p + 5) = 30p(p + 1), which gives 28p² + 29p + 10 = 30p² + 30p, that is 2p² + p − 10 = 0, or (p − 2)(2p + 5) = 0. The positive root is p = 2. When the question says the answer is an integer, trying a small one and checking the second market is faster.

09
Revise

The lesson on one screen

The lesson on one screen
Equilibrium
Prices and an allocation where each person picks her best affordable bundle and every market clears.
The givens
Preferences, technology (none here) and endowments. Prices are the output.
Budget
Wealth = value of the endowment; the budget line passes through the endowment with slope −p_x/p_y.
Relative prices
Demands are homogeneous of degree zero, so only relative prices matter: fix a numeraire.
Walras' law
p·z(p) = 0 at all prices. N − 1 clear ⇒ the Nth clears. Not 'every excess demand is zero'.
Method
Set p_y = 1; wealth; demands; clear x; check y.
Free goods
A good in excess supply has a zero price.
Existence, uniqueness
Arrow–Debreu (1954) with convexity; uniqueness not guaranteed; relative prices are determined.
10
Practice

Check yourself

0 of 7 correct so far

Quick questions

1In an economy with N markets, if N − 1 of them are in equilibrium, then the Nth market
2A price normalisation is needed in a general equilibrium model because
3If the equilibrium price of a good is zero, the good is
4Which statement is true of competitive equilibrium in the Walrasian model?

Numerical problems

Equilibrium price · two Cobb–Douglas
Person 1 has u = √(xy) and endowment (6, 0). Person 2 has u = √(xy) and endowment (0, 12). Find the equilibrium price of x in units of y.
Equilibrium price · complements and Cobb–Douglas
Person 1 has u = min{x, y} and endowment (8, 0). Person 2 has u = √(xy) and endowment (0, 4). Find the equilibrium price of x in units of y (to two decimal places).
Walras' law
At prices (px, py) = (2, 1) the total excess demand for x is +3. What is the excess demand for y?
11
Real questions

Past papers, by level

Standard

Statements to judge, matching lists, and equilibrium prices and bundles to compute with Cobb–Douglas and Leontief tastes, up to JAM, GATE and JNU level.

15 questionsPractise →

Delhi School level

This topic’s hardest questions, from the DSE entrance, are worked through in Lesson 6: Which prices clear the markets? Leontief, linear and Cobb–Douglas agents.

22 questionsLesson 6 →
All 15 past-paper questions for this lesson, easiest first: practise the full set →

✦These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.

← Lesson 1The Edgeworth box and the contract curveLesson 3 →Efficiency with production: the three conditions

Read next

All resources →
MicroeconomicsEfficiency with production: exchange, production and product-mix conditionsThe three marginal conditions for Pareto efficiency (MRS equal, MRTS equal, MRS = MRT), the Robinson Crusoe economy, the production possibilities curve, and why an indirect tax breaks the third condition.Complete guide · 35 minMicroeconomicsThe Edgeworth box and the contract curve, explainedHow to read an Edgeworth box, Pareto improvements and the lens of mutually beneficial trades, why efficiency means equal MRS, the contract curve for Cobb–Douglas, Leontief and perfect substitutes, and why efficient is not fair.Complete guide · 45 minMicroeconomicsIncome and substitution effects: Hicks and SlutskyTen chapters from the basic idea to the Slutsky equation, with a step-by-step decomposition lab and normal, inferior and Giffen goods on live diagrams.Complete guide · 35 min