Sub topic 3
Where the Curves Cross: Market Equilibrium
What this chapter assumes
This chapter assumes you can read a graph with price on the vertical axis and quantity on the horizontal axis. It also assumes you can solve a linear equation and accept that buyers and sellers respond to prices. The two previous chapters introduced the demand curve and the supply curve. Here we put them on one graph and ask where they meet.
The definition
A market is in equilibrium when the price is at a level where the quantity buyers want to purchase equals the quantity sellers want to offer. Economists call that price the equilibrium price (or market-clearing price). They call the matching quantity the equilibrium quantity.
In symbols, write the quantity demanded as Qd(P) and the quantity supplied as Qs(P). The equilibrium price P* satisfies:
Qd(P) = Qs(P)
The equilibrium quantity is Q = Qd(P) = Qs(P*).
"Equilibrium" here means a state with no pressure to change. At P*, every buyer who is willing to pay the price can find a seller, and every seller willing to accept the price can find a buyer. Nobody is left frustrated, so nobody has a reason to bid the price up or cut it down.
Reading the crossing point on a graph
The demand curve slopes downward: a higher price means buyers want less. The supply curve slopes upward: a higher price means sellers offer more. Because one falls and the other rises, the two curves cross at one point when both are straight lines with these slopes.
The price at the crossing is P. The quantity at the crossing is Q. Reading across from the crossing to the vertical axis gives the price. Reading down to the horizontal axis gives the quantity.
Look at that diagram carefully before moving on, because the middle box needs a correction. With the demand and supply used in this tutorial, Qd = 100 - 2P and Qs = -20 + 4P, the numbers are different from the ones in the middle box. The table below gives the correct values.
| Price | Qd = 100 - 2P | Qs = -20 + 4P | Qd - Qs | Situation |
|---|---|---|---|---|
| 10 | 80 | 20 | 60 | Shortage |
| 20 | 60 | 60 | 0 | Equilibrium |
| 30 | 40 | 100 | -60 | Surplus |
At a price of 20, buyers want 60 units and sellers offer 60 units. That is the equilibrium.
Why only one price works
Consider why prices other than P* do not last. This is the main idea of the chapter, and the later chapters on shortages, surpluses and price adjustment build on it.
- Price below P*. Buyers want more than sellers offer. Some buyers cannot get the good. They compete, and some offer more money. This pressure pushes the price up.
- Price above P*. Sellers offer more than buyers want. Some sellers cannot sell. They compete, and some cut their price. This pressure pushes the price down.
- Price at P*. Neither group is frustrated, so nothing pushes the price anywhere.
This is why P* is called a resting point. The pressure points toward it from both sides.
Computing equilibrium with linear curves
Suppose demand is Qd = a - bP and supply is Qs = c + dP. Here a and c are the intercepts (the quantities at a price of zero), b is how fast demand falls as price rises, and d is how fast supply rises as price rises. Both b and d are positive.
Set Qd equal to Qs:
a - bP = c + dP
Move the price terms to one side:
a - c = (b + d)P
So:
P* = (a - c) / (b + d)
Substitute P back into either equation to find Q. The function below does both steps.
def equilibrium(a, b, c, d):
# Demand: Qd = a - b*P Supply: Qs = c + d*P
price = (a - c) / (b + d)
quantity = a - b * price
return price, quantity
print(equilibrium(100, 2, -20, 4))With Qd = 100 - 2P and Qs = -20 + 4P, we have a = 100, b = 2, c = -20 and d = 4. Then P = (100 + 20) / (2 + 4) = 120 / 6 = 20, and Q = 100 - 2 × 20 = 60. The program prints (20.0, 60.0).
You can check the answer by computing the supply side too: Qs = -20 + 4 × 20 = 60. Both sides give 60, so the two curves agree at that price.
A check you should always do
After solving, confirm that Q is positive and that P is positive. A linear supply curve with a negative intercept, like the one here, means sellers offer nothing until the price rises above 5 (since -20 + 4P = 0 when P = 5). If your algebra gives a negative price or quantity, the curves may not cross in the region where the model makes sense. In that case the market has no meaningful interior equilibrium, and the right conclusion is that the good is not traded.
Measuring the gap away from equilibrium
It is useful to have a single number that says how far a price is from clearing the market. Excess demand is the quantity demanded minus the quantity supplied at a given price:
Excess demand = Qd(P) - Qs(P)
- A positive value is a shortage.
- A negative value is a surplus (also called excess supply).
- Zero means the market clears.
Equilibrium is the price where excess demand is zero. The code below tests three prices.
def excess_demand(price):
qd = 100 - 2 * price
qs = -20 + 4 * price
return qd - qs
for p in (10, 20, 30):
gap = excess_demand(p)
kind = "shortage" if gap > 0 else "surplus" if gap < 0 else "equilibrium"
print(p, gap, kind)The output is:
10 60 shortage
20 0 equilibrium
30 -60 surplusNotice that excess demand here equals 120 - 6P. It is a straight line that falls as price rises, and it crosses zero at P = 20. Finding equilibrium is the same as finding the root of this function, which is a useful way to think about it when the curves are not straight lines.
Edge cases and common errors
Intermediate learners often make a few predictable mistakes with equilibrium.
- Confusing quantity demanded with demand. A change in price moves you along a curve and changes the quantity demanded. It does not move the curve. Only changes in things other than the good's own price, such as income or tastes, shift the whole curve. This distinction matters in the chapter on shifts.
- Using the short side wrongly. When the price is not at equilibrium, the quantity actually traded is the smaller of Qd and Qs, because a trade needs both a willing buyer and a willing seller. At a price of 10, buyers want 80 but sellers offer only 20, so 20 units trade. At a price of 30, sellers offer 100 but buyers want only 40, so 40 units trade.
- Assuming the market is always at equilibrium. The model describes where the market is heading. Real markets may spend time away from P*. Later chapters on adjustment, stability and frictions cover this.
- Mixing up the axes. Economists put price on the vertical axis even though price is the variable that causes the quantity to change. When you write demand as Qd = a - bP, the slope on the graph is -1/b, not -b. The same applies to supply, where the graph slope is 1/d.
- Forgetting that the equilibrium may not be unique or stable in other models. With the usual downward demand and upward supply, there is exactly one crossing. If a curve bends in unusual ways, there can be more than one, and the chapter on stability explains which ones the market would settle on.
Preview: moving the crossing point
Equilibrium is a result of the two curves, so it changes when either curve moves. If the demand intercept a rises from 100 to 130, the same function gives the new equilibrium:
print(equilibrium(130, 2, -20, 4))This prints (25.0, 80.0). Higher demand raised both the price and the quantity. The chapter on shifts explores this in detail, including the four basic cases.
Summary of the key ideas
| Idea | Statement |
|---|---|
| Equilibrium condition | Qd(P*) = Qs(P*) |
| Linear formula | P* = (a - c) / (b + d) |
| Excess demand | Qd - Qs; positive is a shortage, negative is a surplus |
| Why equilibrium holds | Shortages push price up and surpluses push price down |
| Quantity traded away from equilibrium | The smaller of Qd and Qs |
Exercise
Demand is Qd = 90 - 3P and supply is Qs = 10 + 5P. Find the equilibrium price and quantity. Then compute excess demand at a price of 5 and say how many units actually trade at that price.
Show answer
Set 90 - 3P = 10 + 5P, so 80 = 8P and P = 10. Then Q = 90 - 3 × 10 = 60, and Qs = 10 + 5 × 10 = 60 agrees. At P = 5, Qd = 75 and Qs = 35, so excess demand is 40, a shortage. Only the smaller quantity trades, so 35 units are sold.
Exercise
A student solves Qd = 50 - 2P and Qs = -10 + 3P and gets P = 12 and Q = 26. Is the student correct? Explain how you can tell without redoing the whole problem.
Show answer
Yes. Check the price in both equations: Qd = 50 - 2 × 12 = 26 and Qs = -10 + 3 × 12 = 26. The two quantities match, so the equilibrium condition holds. The formula also agrees: (50 + 10) / (2 + 3) = 12.