Chapter 2: Market Equilibrium and Welfare#
Picture a busy farmers market: dozens of stalls selling tomatoes, and customers choosing what to buy. Somehow, the amount of tomatoes brought to market roughly matches what people want, and the price settles at a level that keeps most people happy. In this chapter we go behind that everyday miracle. We ask how supply and demand interact to determine prices and quantities, and we examine whether the outcome a free market produces is as good as it could possibly be.
The Big Picture#
Markets are a vast, unplanned conversation between people who want things and people who can make them. In this chapter, we build a simple model of that conversation. We first see how a profit-maximising firm decides how much to produce, which gives us the supply curve. Then we bring buyers and sellers together to find the equilibrium price and quantity. Next, we learn to measure the benefits that both sides get from trade — consumer surplus and producer surplus — and we show that a competitive market, left to itself, makes the total economic pie as large as possible. That leads us to two powerful ideas: the First Welfare Theorem, which tells us that competitive markets are efficient, and the Second Welfare Theorem, which suggests that fairness and efficiency can, in principle, be separated.
From firm costs to the supply curve#
Think about a small bakery that makes fresh bread. To understand how many loaves it wants to sell, we need to peek inside its cost structure.
Marginal cost (MC): The extra cost a firm incurs from producing one more unit.
When the bakery produces an extra loaf, it uses a little more flour, a bit more labour, and maybe more oven time. Usually, the extra cost of making another unit rises as the firm gets busier — ovens are full, workers are rushed — so marginal cost slopes upward.
Imagine the bakery’s total cost of making
A profit-maximising firm asks: “If I make one more unit, what do I get, and what does it cost me?” In a market with many small buyers and sellers, no one can change the price. So the firm can sell as much as it likes at the going market price,
- If
, making that extra unit adds to profit — do it. - If
, that extra unit would eat into profit — stop. - The sweet spot is where
.
So the firm chooses the quantity
Now, if there are many identical bakeries, the market supply curve is the horizontal sum of all their individual supply curves. For example, 10 bakeries would give
Supply curve: A graph showing the quantity of a good that producers are willing and able to sell at each possible price, typically upward-sloping.
Because marginal cost usually rises with output, the supply curve slopes upward — higher prices call forth more production.
📝 Section Recap: A firm’s supply curve is its marginal cost curve (above the shutdown point), because profit maximisation requires producing until price equals marginal cost. The market supply is the horizontal sum of individual supplies.
Market equilibrium: where supply meets demand#
Now let’s add the buyers. Consumers have a willingness-to-pay for each unit of the good. The demand curve slopes downward because, as the price falls, people are willing to buy more — more of them enter the market or each buys extra units.
Demand curve: A graph showing the quantity of a good that consumers are willing and able to purchase at each possible price, typically downward-sloping.
We place the market demand curve and the market supply curve on the same picture. The point where they cross is the market equilibrium.
Market equilibrium: The price-quantity pair where the quantity demanded equals the quantity supplied, so that there is no tendency for the price to change.
In our bread example, let market demand be
At a price of 10, bakers want to sell exactly 10 loaves, and consumers want to buy exactly 10 loaves. If the price were higher, say 12, supply would be 12 loaves but demand only 8 — a surplus. Unsold bread would push the price down. If the price were lower, say 8, demand would be 12 and supply only 8 — a shortage. Buyers would bid the price up. The only resting point is the equilibrium.
This simple model is the heartbeat of market coordination. Prices act as signals that guide resources to where they are valued most.
📝 Section Recap: The equilibrium price balances the plans of buyers and sellers; any other price creates a surplus or shortage that pushes the market back toward equilibrium.
Consumer surplus: the buyers’ side of the deal#
A demand curve shows the highest price someone would pay for each successive unit. If you are willing to pay
Consumer surplus: The total net benefit buyers receive from participating in a market, measured as the difference between their maximum willingness-to-pay and the price they actually pay.
Graphically, consumer surplus is the area under the demand curve and above the market price, from zero up to the quantity bought.
In our linear market demand
If you prefer an integral approach, it is
📝 Section Recap: Consumer surplus measures the extra value consumers capture because they pay a uniform price that is below what many of them were prepared to pay for the earlier units.
Producer surplus: the sellers’ payoff#
Firms also get a net benefit. They sell each unit at the market price, but the minimum they would have been willing to accept for a unit is the marginal cost of producing it. Since the supply curve is the marginal cost curve, the area between the price and the supply curve is the producer surplus.
Producer surplus: The total net benefit sellers receive, equal to the difference between the price they actually get and their marginal cost, summed over all units sold.
For our linear supply curve
So the bakers collectively earn a surplus of 50 as well.
In a perfectly competitive market, producer surplus is essentially the sum of profits (before subtracting fixed costs). Our bakery’s total revenue is
📝 Section Recap: Producer surplus captures the extra benefit firms earn because the market price exceeds the marginal cost of the units they sell; graphically it is the area above the supply curve and below the price.
Putting it together: total surplus and efficiency#
Add consumer and producer surplus and we get total surplus — the overall net gain to society from the existence of the market.
In a market that is left to reach equilibrium, total surplus is maximised. Let’s test this with our bread market. At the equilibrium
What if the quantity were forced to be something else, say 8 loaves? To produce only 8, we would trade the 8 units that consumers value most and that cost the least. Total surplus would be the area between the demand and supply curves from 0 to 8:
We have lost 4 units of surplus compared with the equilibrium — that lost surplus is called deadweight loss (DWL).
Deadweight loss: The reduction in total surplus that occurs when a market is not at the efficient equilibrium, because some mutually beneficial trades do not happen (or because trades occur that cost more than the benefit).
If we forced quantity to be 12 loaves, the last few loaves cost more to make than what buyers are willing to pay. Total surplus would also be 96, with a deadweight loss of 4.
So equilibrium
Allocative efficiency: A situation where resources are distributed so that the last unit produced gives consumers a marginal benefit exactly equal to its marginal cost; no reallocation could increase total surplus.
📝 Section Recap: A competitive market, by equating quantity demanded and supplied, automatically maximises total surplus. Any deviation from the equilibrium quantity creates deadweight loss because valuable trades are left unexploited or costly trades are made.
The First Welfare Theorem: competitive markets are efficient#
The result we just saw is not a coincidence — it is a deep property of competitive markets. The First Welfare Theorem states:
First Welfare Theorem: In a perfectly competitive economy with no externalities (side-effects on others) or other market failures, the equilibrium allocation of resources is Pareto efficient.
What does “Pareto efficient” mean? An outcome is Pareto efficient if you cannot make any person better off without making someone else worse off. In other words, no mutually beneficial trades are left on the table.
At the equilibrium, all units with a consumer’s willingness-to-pay above the seller’s marginal cost have been produced and traded. Suppose we tried to move away from equilibrium. To give Alice an extra loaf, we would have to take one from Bob, or produce a loaf that costs more than anyone values it, hurting someone else. So no one can be made strictly better off without harming another. The outcome is Pareto efficient.
Intuitively, competitive markets act like a giant search engine that finds and completes every possible trade that offers a net gain. The total surplus pie is as big as it can be. Any change just rearranges slices — the pie itself cannot grow.
Notice that Pareto efficiency is strictly about the size of the pie, not about whether the slices are fairly distributed. A market outcome where one person gets 99% of the surplus can still be Pareto efficient if there is no way to improve someone without hurting another. That is why we need a second theorem.
📝 Section Recap: The First Welfare Theorem tells us that, under ideal conditions, competitive equilibrium is Pareto efficient — it exhausts all potential gains from trade and cannot be “improved” without making someone worse off.
The Second Welfare Theorem: separating equity and efficiency#
If the market’s efficient outcome feels unfair, can we fix the fairness without destroying efficiency? The Second Welfare Theorem gives us a theoretical “yes”.
Second Welfare Theorem: Any Pareto efficient outcome can be achieved as a competitive market equilibrium, provided we can first redistribute initial endowments (wealth) through lump-sum transfers that do not distort behaviour.
Imagine society has an endowment of resources — people own different amounts of labour, land, or capital. If we do not like the resulting distribution of income, we can, in principle, tax some people and give to others in a way that does not depend on their choices. For instance, the government could simply give every poor person a fixed sum of money and take a fixed amount from every rich person, independent of how much they work or invest. After this one-time redistribution, we let the market run. Because the lump-sum transfers do not change the payoff from working an extra hour or producing an extra loaf, the market will settle at a new equilibrium that is still Pareto efficient but now reflects the fairer distribution we wanted.
This is a remarkable idea: with the right tools, we can pursue fairness without shrinking the economic pie. In practice, truly lump-sum transfers are hard to design. A tax that takes a fixed amount from each person regardless of their actions is politically difficult and may be unrealistic. Most real-world taxes (income tax, sales tax) change people’s behaviour, so we face a trade‑off between equity and efficiency. But the Second Welfare Theorem provides a useful benchmark — it tells us that the market mechanism itself is not inherently hostile to fairness; the problem is that we lack perfect lump-sum instruments, not that markets are flawed.
📝 Section Recap: The Second Welfare Theorem shows that any desired Pareto efficient outcome can be reached through a competitive market if we first redistribute endowments using lump-sum transfers; in theory, equity and efficiency can be separated.
Summary#
We started with a simple bakery and ended up with two of the most important ideas in all of economics. Supply curves come naturally from firms trying to maximise profit. When supply meets demand, the market finds an equilibrium that balances everyone’s plans. By measuring consumer and producer surplus, we can count the gains from trade, and we saw that a free market pushes total surplus to its highest possible level — the equilibrium is efficient. The First Welfare Theorem makes this a general truth about competitive economies, and the Second Welfare Theorem tells us that, with the right kind of redistribution, we can make things fairer without losing that efficiency. Together, these two theorems frame almost every debate about when to leave markets alone and when to step in.
| Key idea | What it means (plain English) | Why it matters |
|---|---|---|
| Supply curve | Shows how many units firms want to sell at each price; it is the rising part of the marginal cost curve. | Explains producers’ behaviour and is the foundation for understanding market outcomes. |
| Market equilibrium | The price and quantity where amount buyers want equals amount sellers want — the market clears. | Tells us the price that coordinates millions of decisions without a central planner. |
| Consumer surplus | The extra value buyers get from paying less than the maximum they were willing to pay. | Measures how much the market benefits consumers; useful for evaluating policies. |
| Producer surplus | The net gain sellers get from receiving a price above their marginal cost. | Captures the benefit to firms; together with consumer surplus, measures total social welfare. |
| Total surplus | The sum of consumer and producer surplus — the total net gain from trade. | A yardstick for efficiency: policies that increase total surplus tend to make society better off. |
| Deadweight loss | The lost surplus when the market is not at the efficient equilibrium. | Shows the cost of taxes, price controls, and other interventions that move the market away from equilibrium. |
| Pareto efficiency | An outcome where no one can be made better off without making someone else worse off. | The standard definition of economic efficiency. The First Welfare Theorem says competitive markets achieve it. |
| First Welfare Theorem | Under perfect competition and no market failures, the equilibrium is Pareto efficient. | Explains why economists often favour free markets as engines of efficiency. |
| Second Welfare Theorem | Any Pareto efficient outcome can be reached via a competitive market after lump-sum redistribution of endowments. | Provides a theoretical basis for separating equity from efficiency, so we can pursue fairness without necessarily shrinking the pie. |