Chapter 2Supply and Demand

Introduction

Chapter 1 established that scarcity forces choices and that the price system coordinates those choices. This chapter introduces the specific mechanism through which prices emerge: the interaction of supply and demand. The supply-and-demand model is the most widely used tool in economics. It explains how prices are determined in competitive markets, predicts how prices respond to changes in underlying conditions, and reveals the unintended consequences of price interventions.

The model rests on a simple premise: in a competitive market — one with many buyers, many sellers, and a homogeneous product — no single participant can dictate the price. Instead, the price emerges from the collective behavior of all participants. Our task is to formalize this process.

By the end of this chapter, you will be able to:
  1. Construct demand and supply schedules and curves from data
  2. Solve for market equilibrium algebraically and graphically
  3. Distinguish between shifts of a curve and movements along a curve
  4. Predict equilibrium changes from shifts in supply, demand, or both
  5. Analyze the effects of price floors and price ceilings
  6. Perform basic comparative statics

2.1 Demand

What Is Demand?

Quantity demanded. The amount of a good that buyers are willing and able to purchase at a given price, during a specific period, holding all other factors constant.
Ceteris paribus. A Latin phrase meaning "all other things being equal." In economics, it means holding all other factors constant while analyzing the relationship between two variables.

The phrase "willing and able" matters. Desire alone is not demand — a student who wants a Ferrari but cannot afford one does not contribute to the demand for Ferraris. Demand requires both the willingness to buy and the purchasing power to follow through. The phrase "holding all other factors constant" — sometimes written in Latin as ceteris paribus — is equally important. Demand describes the relationship between price and quantity when everything else stays the same. When other things change (income, tastes, the price of related goods), we are no longer moving along the same demand curve — we are shifting to a new one.

The law of demand. Holding all else constant, as the price of a good rises, the quantity demanded falls; as the price falls, the quantity demanded rises.

Why does demand slope downward? Two reinforcing mechanisms are at work:

Substitution effect. When the price of a good rises, consumers switch to cheaper alternatives, reducing the quantity demanded of the now-more-expensive good.
Income effect. When the price of a good rises, consumers' real purchasing power falls, reducing the quantity they can afford to buy of all goods, including this one.

Both effects push in the same direction: higher price, lower quantity demanded.

Demand Schedules and Curves

Demand schedule. A table showing the quantity demanded of a good at each price, holding all other factors constant.
Demand curve. A graph of the demand schedule, plotting price on the vertical axis and quantity demanded on the horizontal axis. The demand curve slopes downward by the law of demand.

Consider a neighborhood's demand for cups of lemonade per day:

Price ($/cup)Quantity demanded (cups/day)
0.5090
1.0080
1.5070
2.0060
2.5050
3.0040
3.5030
4.0020
4.5010
5.000

Each row represents a price-quantity pair. Notice the inverse relationship: as price rises by \$1.50, quantity falls by 10 cups. This regular pattern can be captured by a linear demand function:

$$Q_d = a - bP$$ Eq. 2.1

where $a$ is the quantity demanded when price is zero (the horizontal intercept) and $b$ is the absolute value of the slope. From the table: $a = 100$ and $b = 20$:

$$Q_d = 100 - 20P$$

The inverse demand function — price as a function of quantity:

$$P = \frac{a}{b} - \frac{1}{b}Q = 5 - \frac{Q}{20}$$

Figure 2.1. The demand curve shows the quantity demanded at each price, holding all other factors constant. It slopes downward by the law of demand. Hover over the curve or the schedule points for exact values.

Movements Along vs. Shifts of the Demand Curve

Movement along the demand curve. A change in quantity demanded caused by a change in the good's own price, represented by moving from one point to another on the same demand curve.
Shift of the demand curve. A change in demand caused by a factor other than the good's own price (income, tastes, prices of related goods, expectations, number of buyers), represented by the entire curve moving left or right.

A movement along the demand curve occurs when the good's own price changes — the consumer moves to a different point on the same curve. A shift of the demand curve occurs when any factor other than the good's own price changes. The entire curve moves left or right.

A critical rule of thumb: If you're analyzing the effect of a change in the good's own price, you move along the curve. If you're analyzing the effect of anything else, you shift the curve. Mixing these up leads to serious analytical errors.

2.2 Supply

Quantity supplied. The amount of a good that sellers are willing and able to sell at a given price, during a specific period, holding all other factors constant.
The law of supply. Holding all else constant, as the price of a good rises, the quantity supplied rises; as the price falls, the quantity supplied falls.
Supply schedule. A table showing the quantity supplied of a good at each price, holding all other factors constant.
Supply curve. A graph of the supply schedule, plotting price on the vertical axis and quantity supplied on the horizontal axis. The supply curve slopes upward by the law of supply.

There is a deeper reason why supply curves slope upward: increasing marginal cost. As a firm produces more, it eventually runs into capacity constraints. Each additional unit costs more to produce than the last. The firm produces that unit only if the price covers its rising marginal cost.

Price ($/cup)Quantity supplied (cups/day)
0.500
1.0010
1.5020
2.0030
2.5040
3.0050
3.5060
4.0070
$$Q_s = c + dP$$ Eq. 2.2

From the table: $c = -10$, $d = 20$, so $Q_s = 20P - 10$. The inverse supply function: $P = 0.50 + Q/20$.

Figure 2.3. The supply curve shows the quantity supplied at each price. It slopes upward because higher prices make production more profitable. Hover for exact values.

2.3 Market Equilibrium

Market equilibrium. The price-quantity combination at which quantity demanded equals quantity supplied. At this point, there is no tendency for the price to change — the market "clears."

Set $Q_d = Q_s$:

$$a - bP^* = c + dP^*$$ Eq. 2.3

Solving:

$$P^* = \frac{a - c}{b + d}$$ Eq. 2.4
$$Q^* = a - bP^* = c + dP^*$$ Eq. 2.5

Example 2.1

Using $Q_d = 100 - 20P$ and $Q_s = 20P - 10$:

\$100 - 20P = 20P - 10 \implies 110 = 40P \implies P^* = 2.75$

$Q^* = 100 - 20(2.75) = 45$ cups per day. Verification: $Q^* = 20(2.75) - 10 = 45$ ✓

Why Equilibrium Is Stable

Surplus. A situation in which quantity supplied exceeds quantity demanded at the prevailing price. A surplus puts downward pressure on the price as sellers compete to attract buyers.
Shortage. A situation in which quantity demanded exceeds quantity supplied at the prevailing price. A shortage puts upward pressure on the price as buyers compete for the limited supply.

Surplus (price too high). At $P = 3.50$: $Q_d = 30$ but $Q_s = 60$. Sellers have 30 unsold cups — a surplus. They cut prices until $P^* = 2.75$.

Shortage (price too low). At $P = 1.50$: $Q_d = 70$ but $Q_s = 20$. Frustrated buyers bid the price up to $P^*$.

2.4 Comparative Statics: Shifting Curves

Comparative statics. The analysis of how equilibrium changes when an exogenous variable (a demand or supply shifter) changes. We compare the old equilibrium to the new one, without tracing the adjustment process.

Demand Shift

The demand intercept $a$ represents "how much people want the good" — driven by income, tastes, expectations, or number of buyers. Slide it to simulate a demand shift and watch the equilibrium move along the supply curve.

Low demand (40) Original (100) High demand (160)
Equilibrium: P* = \$1.75  |  Q* = 45.0 cups  |  CS = \$10.63  |  PS = \$10.63  |  Total Surplus = \$101.25

Figure 2.5. Drag the slider to shift the demand curve. The green equilibrium point moves along the supply curve. Shaded areas show consumer surplus (blue) and producer surplus (red). The dashed line is the original demand curve for reference.

Supply Shift

The supply intercept $c$ represents production costs. A frost in the lemon-growing region raises costs (shifting supply left, making $c$ more negative). A technology improvement lowers costs (shifting supply right, making $c$ less negative). Watch the equilibrium ride along the demand curve.

High cost (c = −50) Original (c = −10) Low cost (c = 30)
Equilibrium: P* = \$1.75  |  Q* = 45.0 cups  |  CS = \$10.63  |  PS = \$10.63  |  Total Surplus = \$101.25

Figure 2.6. Drag the slider to shift the supply curve. The equilibrium rides along the demand curve. When supply shifts right (lower costs), price falls and quantity rises — the signature of a supply increase.

Two Simultaneous Shifts

When both curves shift at the same time, one variable's direction is unambiguous (both shifts push it the same way), while the other is ambiguous (depends on magnitudes). Use both sliders to explore:

Demand decrease (−40) No shift (0) Demand increase (+40)
Supply decrease (−40) No shift (0) Supply increase (+40)
Original equilibrium: P* = \$1.75  |  Q* = 45.0 cups  |  ΔP = \$1.00  |  ΔQ = 0.0

Figure 2.7. Drag both sliders. Watch how some combinations produce unambiguous outcomes (both shifts push price the same way) while quantity becomes ambiguous, or vice versa. The dashed curves show the original positions.

General principle for simultaneous shifts:

Demand ↑Demand ↓
Supply ↑Q ↑ unambiguous; P ambiguousP ↓ unambiguous; Q ambiguous
Supply ↓P ↑ unambiguous; Q ambiguousQ ↓ unambiguous; P ambiguous
Example 2.2 — Demand Shift (Heat Wave)

A heat wave increases demand for lemonade. The demand intercept rises from $a = 100$ to $a = 120$: $Q_d = 120 - 20P$.

New equilibrium: \$120 - 20P = 20P - 10 \implies 130 = 40P \implies P^* = 3.25$, $Q^* = 120 - 20(3.25) = 55$.

Result: price rises from \$1.75 to \$1.25 (+\$1.50), quantity rises from 45 to 55 (+10 cups). Both increase when demand shifts right.

Example 2.2b — Supply Shift (Lemon Frost)

A frost destroys lemon groves, raising costs. Supply intercept shifts from $c = -10$ to $c = -30$: $Q_s = 20P - 30$.

New equilibrium: \$100 - 20P = 20P - 30 \implies 130 = 40P \implies P^* = 3.25$, $Q^* = 100 - 20(3.25) = 35$.

Result: price rises from \$1.75 to \$1.25 (+\$1.50), quantity falls from 45 to 35 (−10 cups). Price and quantity move in opposite directions when supply shifts left.

Example 2.3 — Simultaneous Shifts

Heat wave ($a = 120$) and lemon frost ($c = -30$) hit simultaneously.

\$120 - 20P = 20P - 30 \implies 150 = 40P \implies P^* = 3.75$, $Q^* = 120 - 20(3.75) = 45$.

Price rises unambiguously (\$1.75 → \$1.75) because both shifts push price up. Quantity is unchanged (45 → 45) because the two shifts are equal in magnitude and push quantity in opposite directions. If the demand shift were larger, Q would rise; if the supply shift were larger, Q would fall.

2.5 Price Ceilings and Floors

Price Ceilings

Price ceiling. A legal maximum on the price of a good. Non-binding if set above equilibrium. Binding if set below — creates a shortage.

Drag the price ceiling. When it's above equilibrium (\$1.75), it has no effect. As you drag it below equilibrium, a shortage appears and grows.

\$0.50 (severe) \$2.75 (equilibrium) \$4.50 (non-binding)
Non-binding — ceiling (\$1.00) is above equilibrium (\$1.75). No effect.

Figure 2.8. Drag the ceiling below \$1.75 to see the shortage appear. The gap between quantity demanded and quantity supplied is the shortage — allocated by queuing, rationing, or black markets instead of price.

Example 2.4 — Price Ceiling

The city imposes a price ceiling of \$1.00 per cup on lemonade ($Q_d = 100 - 20P$, $Q_s = 20P - 10$, $P^* = 2.75$).

At $P = 2.00$: $Q_d = 100 - 20(2) = 60$, $Q_s = 20(2) - 10 = 30$.

Shortage = $Q_d - Q_s = 60 - 30 = 30$ cups. The ceiling is binding (below $P^*$), creating a shortage of 30 cups per day. Some willing buyers cannot purchase lemonade at the controlled price.

Real-world application: Rent control. The most prominent price ceiling is rent control. When the cap is below the market-clearing rent: shortage of apartments, deterioration of quality (landlords underinvest), misallocation (apartments go to those who found them first, not those who value them most), reduced construction, and black-market side payments.

Price Floors

Price floor. A legal minimum on the price of a good. Non-binding if set below equilibrium. Binding if set above — creates a surplus.
\$0.50 (non-binding) \$2.75 (equilibrium) \$4.50 (severe)
Non-binding — floor (\$1.50) is below equilibrium (\$1.75). No effect.

Figure 2.9. Drag the floor above \$1.75 to see the surplus appear. The gap between quantity supplied and quantity demanded is the surplus — unsold output (or, in labor markets, unemployment).

Example 2.5 — Price Floor

The city imposes a price floor of \$1.50 per cup on lemonade.

At $P = 3.50$: $Q_d = 100 - 20(3.50) = 30$, $Q_s = 20(3.50) - 10 = 60$.

Surplus = $Q_s - Q_d = 60 - 30 = 30$ cups. The floor is binding (above $P^*$), creating a surplus of 30 cups per day. Sellers cannot find enough buyers at the mandated price.

Real-world application: The minimum wage. The most prominent price floor is the minimum wage. If set above the equilibrium wage, the simple model predicts a surplus of labor — unemployment. However, Card and Krueger's famous 1994 study found no significant employment effect of a minimum wage increase in New Jersey, illustrating why theoretical predictions must always be tested against data. If firms have monopsony power, a minimum wage can actually increase employment.

2.6 International Trade: World Price and Tariffs

When a country opens to international trade, the market operates at the world price $P_W$. If $P_W < P^*_{domestic}$, the country imports (domestic demand exceeds domestic supply at the world price). If $P_W > P^*_{domestic}$, the country exports.

Example 2.6 — Imports under World Price

The world price of lemonade is $P_W = 2.00$, below the domestic equilibrium of $P^* = 2.75$.

At $P_W = 2.00$: $Q_d = 100 - 20(2) = 60$, $Q_s = 20(2) - 10 = 30$.

Imports = $Q_d - Q_s = 60 - 30 = 30$ cups per day. Domestic consumers gain from cheaper lemonade; domestic producers lose as they produce less at the lower price.

Example 2.7 — Tariff and Deadweight Loss

A tariff of $t = 0.50$ per cup is imposed on imported lemonade. Domestic price rises to $P_W + t = 2.50$.

At $P = 2.50$: $Q_d = 100 - 20(2.50) = 50$, $Q_s = 20(2.50) - 10 = 40$.

Imports fall from 30 to 10 cups. Tariff revenue = \$1.50 \times 10 = \\$1.00$. Two DWL triangles appear: (1) production DWL from inefficient domestic production replacing cheaper imports ($\frac{1}{2}(0.50)(40 - 30) = 2.50$), (2) consumption DWL from lost consumer purchases ($\frac{1}{2}(0.50)(60 - 50) = 2.50$). Total DWL = \$1.00.

\$0.50 (low) \$2.75 (autarky) \$5.00 (high)
Free trade (\$1) \$1.25 Prohibitive (\$2.50)
Imports: Domestic price = \$1.00  |  Qd = 60  |  Qs = 30  |  Imports = 30 cups

Figure 2.10. Adjust the world price to see imports (when $P_W$ is below autarky equilibrium) or exports (when above). Add a tariff to see imports shrink, domestic production rise, and deadweight loss appear. The yellow triangles are DWL from the tariff.

Thread Example: Maya's Enterprise

Maya has set up her lemonade stand. She surveys her neighborhood and estimates daily demand: $Q_d = 100 - 20P$. Her supply function, based on costs: $Q_s = 20P - 10$.

Setting demand equal to supply: \$100 - 20P = 20P - 10 \implies P^* = 2.75$, $Q^* = 45$.

Maya will sell 45 cups per day at \$1.75 each, earning revenue of \$123.75/day. Her opportunity cost is \$120/day (the bookstore job from Chapter 1). She's making at most \$1.75 per day above her opportunity cost — precarious. Any shock (a tax, a competitor, a rise in lemon prices) could push her into negative territory.

Summary

Key Equations

LabelEquationDescription
Eq. 2.1$Q_d = a - bP$Linear demand function
Eq. 2.2$Q_s = c + dP$Linear supply function
Eq. 2.3$a - bP^* = c + dP^*$Equilibrium condition
Eq. 2.4$P^* = (a - c)/(b + d)$Equilibrium price
Eq. 2.5$Q^* = a - bP^*$Equilibrium quantity

Exercises

Practice

  1. Given $Q_d = 200 - 5P$ and $Q_s = 50 + 10P$, solve for the equilibrium price and quantity. Verify your answer by substituting $P^*$ into both the demand and supply functions.
  2. Using the functions from Exercise 1, suppose income rises and new demand is $Q_d' = 260 - 5P$. Find the new equilibrium price and quantity. In which direction did price and quantity move? Is this consistent with the comparative statics table?
  3. Draw the supply and demand curves from Exercise 1 on a graph (price on the vertical axis, quantity on the horizontal axis). Label the equilibrium point $E_1$. Then show the shift from Exercise 2, label the new equilibrium $E_2$, and draw arrows indicating the direction of the change.
  4. A price ceiling of \$1 is imposed in the market from Exercise 1 (original demand). Is it binding? If so, calculate the shortage. If not, explain why it has no effect.
  5. A price floor of \$12 is imposed in the same market. Is it binding? If so, calculate the surplus. If not, explain why it has no effect.
  6. Suppose the world price is \$1 in the market from Exercise 1. Does the country import or export? How much? Now suppose the government imposes a tariff of \$1. What happens to domestic price, domestic quantity demanded, domestic quantity supplied, and imports?

Apply

  1. A new study reports that coffee causes health problems. Using supply-and-demand analysis, predict what happens to the equilibrium price and quantity of: (a) coffee, (b) tea (a substitute for coffee), (c) cream (a complement to coffee), (d) wages of coffee-shop baristas. For each, identify which curve shifts, in which direction, and draw a separate S/D diagram.
  2. The government imposes a binding price ceiling on gasoline during a supply disruption. Predict three non-price mechanisms that will emerge to allocate the scarce gasoline. For each mechanism, explain why it is typically less efficient than the price mechanism. Under what circumstances might non-price allocation be more equitable, even if less efficient?
  3. Two simultaneous shocks hit the wheat market: a drought reduces supply, and a new diet trend increases demand for wheat products. What happens to the equilibrium price? What happens to the equilibrium quantity? Can you determine the direction of the quantity change without knowing the magnitudes of the shifts? Explain carefully, referring to the simultaneous-shift analysis.
  4. A country currently imports 50 units of a good at the world price of \$10. The domestic demand is $Q_d = 100 - 5P$ and domestic supply is $Q_s = -10 + 3P$. Verify that imports equal 50 at $P_W = 10$. Then suppose the government imposes a tariff of \$1 per unit. Find: (a) the new domestic price, (b) new domestic quantity demanded, (c) new domestic quantity supplied, (d) new volume of imports. Who benefits from the tariff and who is harmed?

Challenge

  1. Prove algebraically that for linear supply and demand curves ($Q_d = a - bP$ and $Q_s = c + dP$ with $a > c > 0$ and $b, d > 0$), the equilibrium price $P^*$ is always positive and the equilibrium quantity $Q^*$ is always positive. Under what parameter conditions does $Q^* = 0$ (market collapse)? What economic scenario does this represent?
  2. Some economists argue that rent control is "the most effective technique presently known to destroy a city — except for bombing" (attributed to Assar Lindbeck). Others argue it protects vulnerable tenants from displacement in tight housing markets. Using the supply-and-demand model, identify three specific predictions about the long-run effects of rent control. For each prediction, discuss whether the model's assumptions (homogeneous apartments, competitive landlords, no mobility costs, perfect information) are realistic enough to trust the prediction. What modifications to the model might change the conclusions?