Market Equilibrium: Supply and Demand

EC2201

Today: from one firm to the whole market

Last week: one price-taking firm chooses how much to produce, and when to shut down or leave.

Today: put many firms and many buyers together.

One idea runs through the whole lecture: the longer sellers have to adjust, the more of a shock shows up in quantity and the less in price.

The running example: barbers in a town

Most of today follows one market: men’s haircuts in a mid-sized town (numbers are illustrative).

Local Data Company figures: in one year more than 2,300 barbershops opened in the UK and about 1,500 closed. Over five years to 2024 the net increase was about 5,800. Lots of entry and exit is exactly what a competitive market looks like.

Sources: Estates Gazette on Local Data Company figures; Modern Barber, October 2024.

Part 1 · Time and the supply response

How much can sellers change what they sell, and how fast?

Three time frames

Time frame What sellers can change Hotels in a festival city
Very short run (market period) Nothing: quantity is fixed Tonight: the rooms that exist
Short run Existing firms change output; no new firms This year: hire staff, open the closed wing
Long run Existing firms adjust everything; firms enter or exit Next decade: new hotels are built

The time frames are defined by what can change, not by a number of weeks. For hotel rooms the very short run is a night; for cocoa it is several years, because new trees take years to bear fruit.

The very short run: supply is fixed

A vertical supply line at 20 thousand rooms. Demand crosses it at £100 per night.

Supply is a vertical line. Quantity cannot respond, so demand alone sets the price.

Festival week: what happens to the price?

During the festival, demand for rooms at every price doubles:

  1. Find the festival price.
  2. If hotels kept charging £100, how many rooms would people want? What goes wrong?

Answer: price rises until the rooms are rationed

Vertical supply at 20 thousand rooms. Demand shifts right; price rises from £100 to £300. At £100, festival demand is 60 thousand rooms, a shortage of 40 thousand.

  1. 80,000 − 200P = 20,000, so P = £300. Still 20,000 rooms: all the change is in price.
  2. At £100, people want 60,000 rooms. 40,000 would-be guests miss out, and something other than price must decide who.

Fixed supply in real life: Oasis tickets, 2024

When Oasis announced their 2025 reunion tour, the number of seats was fixed by the stadiums. Demand was enormous.

Think in pairs: the seats were going to sell out at £148 anyway. Who gained from the higher price, and who lost? Would a £148 price have sent the tickets to the fans who valued them most?

Sources: AP via WJLA, September 2024; LBC, September 2024.

When price is not allowed to ration: UK eggs, 2022

In late 2022 Britain had its largest ever bird-flu outbreak and farmers’ feed and energy costs had soared. Egg supply fell.

A purchase limit is rationing by quantity instead of by price. Compare with the hotel graph: price held below the clearing level, a shortage, and a rule to decide who gets what.

Sources: ITV News, November 2022; Reuters via Investing.com, December 2022.

Part 2 · Short-run supply and equilibrium

Existing firms can change output, but no firm can enter or leave.

Short-run market supply: add up the firms

In the short run the number of firms is fixed. Each firm supplies where P = MC, on the rising part of MC above minimum AVC (last week’s result).

Market supply = add the quantities of all firms at each price.

Price Firm A: q = P − 4 (opens at £4) Firm B: q = 2(P − 8) (opens at £8) Market
£4 0 0 0
£6 2 0 2
£8 4 0 4
£10 6 4 10
£12 8 8 16

Adding horizontally

Three panels. Firm A supplies 8 at £12, Firm B supplies 8 at £12, the market supplies 16 at £12. The market supply curve has a kink at £8 where Firm B starts producing.

At £12 each firm wants to sell 8 units, so the market supplies 16. The market curve is flatter than either firm’s curve: one more pound of price brings out more output from more firms.

The barber market

Each of the town’s 60 barbers has the same daily cost:

Market demand (haircuts per day): QD = 1000 − 20P.

  1. Find one barber’s supply curve.
  2. Find the market supply curve.
  3. Find the equilibrium price, total haircuts, cuts per barber and each barber’s profit.

Answer: £20 a cut, 600 cuts a day

  1. One barber: P = 2q, so q = P/2. (AVC = q has minimum 0, so the shop always opens.)
  2. 60 barbers: QS = 60 × P/2 = 30P.
  3. 30P = 1000 − 20P → 50P = 1000 → P = £20, Q = 600.
Per barber
Haircuts, q = 20/2 10
Revenue, 20 × 10 £200
Cost, 100 + 10² £200
Economic profit £0

We start in a position where each barber just covers all costs, including a normal return. Keep these numbers: P = £20, Q = 600, q = 10.

Equilibrium: firm, market and customer at once

Left: one barber's MC and AC, with the £20 price touching AC at its minimum at 10 cuts. Middle: market demand and supply cross at £20 and 600 cuts. Right: a typical customer buys 15 cuts a year at £20.

At £20, every barber is happy with 10 cuts (P = MC), and every customer is happy with their number of cuts (marginal value = P).

The price does two jobs

A signal to sellers

Given the price, each barber produces where P = MC. A higher price says “the market wants more; it is worth an extra cut, even an expensive one.”

A rationing device for buyers

Given the price, each customer buys only the cuts worth at least that much to them. A higher price says “this is scarce; buy only the ones you value most.”

At the equilibrium price both sides are content: no seller wants to sell more, no buyer is turned away.

Uber’s surge pricing does both jobs in real time. When demand spikes (rain, a match ending), the higher fare pulls more drivers onto the road and persuades some riders to wait or take the bus.

Demand rises: skin fades come into fashion

Short, sharp “skin fade” cuts need a touch-up every two or three weeks. Every customer wants more cuts at any price. Market demand becomes:

QD = 1300 − 20P (was 1000 − 20P)

Still 60 barbers: nobody can open a new shop this month.

  1. Find the new short-run price and quantity.
  2. How many cuts does each barber now do, and what is their profit?

Answer: price £26, and barbers make a profit

30P = 1300 − 20P → 50P = 1300 → P = £26, Q = 780.

Per barber Before After the trend
Price £20 £26
Cuts per day, q = P/2 10 13
Revenue £200 £338
Cost, 100 + q² £200 £269
Profit £0 £69

Quantity rises (600 → 780) because each barber works harder, along their MC curve. Price rises because getting those extra cuts costs more.

Short-run response: the picture

Left: one barber moves up MC from 10 to 13 cuts as the price rises from £20 to £26; the shaded rectangle above AC is profit. Middle: demand shifts right, price rises from £20 to £26 and quantity from 600 to 780. Right: a typical customer's demand shifts out from 15 to 19.5 cuts a year.

Part 3 · Shifts and elasticities

What moves the curves, and why their slopes decide what happens to price.

What shifts demand, what shifts supply

Change Shifts Example
Income rises, normal good Demand right More restaurant meals
Income rises, inferior good Demand left Fewer supermarket value-range meals, fewer bus trips
Price of a substitute rises Demand right Butter dearer → more demand for spreads
Price of a complement falls Demand right Cheaper consoles → more demand for games
Tastes change Either Skin fades, oat milk
Input price falls Supply right Cheaper fertiliser → more wheat at each price
Technology improves Supply right Cheaper solar panels → more electricity at each price

A change in the good’s own price does not shift either curve; it moves us along them.

Quick fire: which curve, which way?

For each event, say which curve shifts in the market named, and predict the change in price and quantity.

  1. A summer heatwave. (Market: ice cream.)
  2. The price of coffee beans jumps. (Market: flat whites from cafés.)
  3. A recession cuts incomes. (Market: bus journeys.)
  4. Train fares rise sharply. (Market: long-distance coach trips.)
  5. A new barber academy trains lots of barbers, and skin fades get more popular. (Market: haircuts.)

Quick fire: answers

Event Curve Price Quantity
1. Heatwave Demand right ↑ ↑
2. Coffee beans dearer Supply left ↑ ↓
3. Recession (buses are inferior) Demand right ↑ ↑
4. Train fares rise (substitute) Demand right ↑ ↑
5. More barbers and more demand Both right ? ↑

In 5, both shifts raise quantity, but they push price in opposite directions. Without knowing the sizes, the price change is ambiguous.

Elasticity: how responsive?

On a straight line: elasticity = (ΔQ / ΔP) × (P / Q).

At P = £20, Q = 600 (barbers) Slope ΔQ/ΔP Elasticity
Demand, Q = 1000 − 20P −20 −20 × 20/600 = −0.67
Short-run supply, Q = 30P 30 30 × 20/600 = 1

A curve is relatively elastic (flat) if quantity responds a lot to price, inelastic (steep) if it responds little. On the same axes, flatter means more elastic.

Same supply shock, different demand

Every haircut becomes £5 more expensive to produce (higher wages for assistants, say). Supply shifts up by £5: QS = 30(P − 5).

Left, steep demand: price rises from £20 to £23 and quantity falls from 600 to 540. Right, flat demand: price rises from £20 to £21 and quantity falls from 600 to 480.

Inelastic demand: price +£3, quantity −60. Elastic demand: price +£1, quantity −120.

Supply shock + inelastic demand: olive oil, 2022–24

If demand were very elastic, what would the drought have done instead? Sketch it.

Sources: NPR, September 2023; Fortune/Bloomberg, December 2024; Investing.com, December 2024.

Same demand shift, different supply

Demand rises from 1000 − 20P to 1300 − 20P (the skin-fade trend). How much of it shows up in price depends on supply.

Left, steep supply: price rises from £20 to £30, quantity from 600 to 700. Right, flat supply: price rises from £20 to £22.50, quantity from 600 to 850.

Inelastic supply (elasticity 0.33): £30, 700 cuts. Our barbers (1): £26, 780. Elastic supply (3.33): £22.50, 850.

Summary: where does a shift show up?

When… …and the other curve is elastic (flat) …and the other curve is inelastic (steep)
Supply shifts Small price change, large quantity change Large price change, small quantity change
Demand shifts Small price change, large quantity change Large price change, small quantity change

The curve that shifts creates the change; the curve that does not shift decides how that change is split between price and quantity.

This is why time matters so much: supply gets more elastic as sellers have longer to respond. Very short run: vertical. Short run: upward sloping. Long run: flatter still.

Part 4 · The long run: entry and exit

Firms can change all inputs, open new shops or close for good.

Why long-run supply is more flexible

Two reasons:

  1. Every input can change. A barber can rent a bigger unit or add chairs, not just work longer.
  2. Firms can enter or exit. New shops can open; unprofitable ones can close for good.

Long-run equilibrium needs both sides to be content:

Together: P = MC = AC, which happens at the minimum of AC (MC cuts AC at its lowest point).

The long-run price for barbers

Each barber: MC = 2q, AC = 100/q + q.

Set MC = AC: 2q = 100/q + q → q² = 100 → q = 10, AC = 100/10 + 10 = £20.

So in the long run:

If entry and exit are free and every firm has the same costs, the long-run price is pinned down by costs alone: price = minimum average cost. Demand decides only how many firms there are.

How entry works

Situation Signal What firms do Effect on market
P > min AC Economic profit New firms enter Supply shifts right, price falls
P < min AC Economic loss Some firms exit Supply shifts left, price rises
P = min AC Zero profit Nobody moves Long-run equilibrium

Entry and exit continue until economic profit is zero.

After the fade trend: how many barbers in the long run?

Recall: demand is now QD = 1300 − 20P, each barber has min AC = £20 at q = 10, and the town currently has 60 barbers making £69 a day.

  1. What is the long-run price?
  2. How many haircuts are sold per day?
  3. How many barbers does the town end up with?

Answer: 30 new barbershops open

  1. Long-run price = min AC = £20.
  2. QD = 1300 − 20(20) = 900 cuts per day.
  3. Each barber does 10, so 900 / 10 = 90 barbers: 30 new shops.

Check: with 90 barbers, short-run supply is Q = 90 × P/2 = 45P, and 45P = 1300 − 20P gives P = £20. ✓

Before Short run Long run
Price £20 £26 £20
Cuts per barber 10 13 10
Number of barbers 60 60 90
Total cuts per day 600 780 900
Profit per barber £0 £69 £0

Long-run supply in a constant-cost industry

Left: one barber; price rises from £20 to £26 in the short run then returns to £20, where MC meets the minimum of AC. Right: demand shifts from D to D'; price rises along S to £26, then entry shifts supply to S' and the price falls back to £20. The long-run supply LS is a horizontal line at £20 through the points 600 and 900.

A → B: short run (60 barbers, price £26). B → C: entry shifts supply right until the price is back at £20. The long-run supply curve LS joins A and C: horizontal.

Entry in real life: face masks, 2020

In early 2020 demand for face masks exploded. China already made about half the world’s masks, about 20 million a day.

Mask making needs cheap, quick-to-install machines, so the “long run” took weeks, not years. How long the long run lasts depends on how fast new capacity can be added.

Sources: Xinhua via China Daily, March 2020; SCMP, March 2020.

Try it: students leave town

Suppose instead that a campus closes and demand falls to QD = 800 − 20P. Start from 60 barbers.

  1. Short run: find the price, cuts per barber and profit. Does any barber close today?
  2. Long run: find the price, total cuts and the number of barbers.

Answer: losses, then exit

Short run: 30P = 800 − 20P → P = £16, Q = 480, q = 8. Revenue 16 × 8 = £128; cost 100 + 64 = £164; loss £36 a day. But P = £16 > AVC = £8, so every barber keeps cutting today: closing would lose the whole £100 fixed cost.

Long run: price back to £20, Q = 800 − 400 = 400, so 40 barbers: 20 shops close.

Exit brings the price back up, just as entry brought it down. With constant costs, the long-run price always returns to min AC.

When entry raises costs: increasing-cost industries

So far, the 90th barber has the same costs as the first. Often entry pushes costs up for everyone:

Then each new firm raises everyone’s minimum AC, so the long-run price rises with output: long-run supply slopes up.

UK housebuilding: building more homes in one area raises the price of building land and of bricklayers’ and electricians’ time, so the cost of each new home rises as the industry grows.

When entry lowers costs: decreasing-cost industries

Sometimes a bigger industry makes every firm’s costs fall:

Then long-run supply slopes down: a bigger industry has a lower long-run price.

Solar panels and lithium-ion batteries: as world production grew, solar module prices fell about 90% between 2010 and 2019, and battery pack prices are down over 90% since 2010, helped by a large supplier base and learning across the whole industry.

Sources: pv magazine on IRENA, June 2020; BloombergNEF battery price survey.

Long-run industry supply: three shapes

Three panels. Constant cost: horizontal long-run supply, price unchanged when demand grows. Increasing cost: upward-sloping long-run supply, price rises. Decreasing cost: downward-sloping long-run supply, price falls.

Purple line: long-run industry supply. Dashed and solid navy lines: demand before and after it grows. Dots: long-run equilibria.

Measuring it: long-run supply elasticity

Long-run elasticity of supply = % change in quantity supplied ÷ % change in price, after entry and exit.

As the world economy grows, demand for raw materials keeps rising. Using these numbers, which resource would you expect to get much more expensive over the decades, and why does that matter for growth?

Part 5 · Welfare: who gains, and is the outcome efficient?

Measuring the gains from trade with consumer and producer surplus.

Surplus: one customer and one barber at a time

Five customers, each wanting one cut, and five barber slots, each with a minimum acceptable price (the cost of that slot). The market price is £20.

Customer Would pay up to Buys? Gains Slot Cost of slot Sells? Gains
Ana £40 ✓ £20 1 £8 ✓ £12
Ben £32 ✓ £12 2 £12 ✓ £8
Cat £25 ✓ £5 3 £16 ✓ £4
Dev £20 ✓ £0 4 £20 ✓ £0
Eli £14 ✗ – 5 £30 ✗ –
£37 £24

Consumer surplus = £37: what buyers would pay minus what they do pay. Producer surplus = £24: what sellers receive minus the least they would accept.

Surplus in the barber market

Market demand and supply cross at £20 and 600. The triangle above £20 under demand is consumer surplus, £9,000. The triangle below £20 above supply is producer surplus, £6,000.

Area under demand up to Q = total value to buyers. Area under supply up to Q = the least sellers need. Total surplus = £15,000 a day.

What producer surplus measures

Short run: producer surplus = revenue − variable cost = profit + fixed cost. It measures how much firms gain from operating rather than shutting down.

Barber check, at P = £20: revenue £200 − variable cost (q² = 100) £100 = £100 each. 60 barbers × £100 = £6,000, exactly the triangle. ✓ (Profit is zero; the £100 each is exactly their fixed cost.)

Long run: producer surplus = extra payments to inputs compared with an industry that produces nothing.

Why the competitive outcome is efficient

An allocation is economically efficient if it maximises total surplus (consumer + producer). That is the best use of society’s resources.

At the competitive equilibrium:

At the competitive quantity, the value of the last unit to buyers (the demand height) equals the cost of the last unit (the supply height). Produce less and you lose trades worth making; produce more and you make trades that destroy value.

Producing too little: a cap on licences

Suppose the council caps barber licences so that only 480 cuts a day can be supplied.

At 480 cuts, buyers value the next cut at £26 but it would cost only £16. The triangle between demand and supply from 480 to 600 is the deadweight loss of £600.

At 480, a buyer would pay £26 for one more cut that costs only £16: a gain of £10 left on the table. The lost surplus (deadweight loss) is ½ × 120 × (26 − 16) = £600 a day.

A real licence cap: New York taxi medallions

The medallion’s price was the value of the producer surplus that the cap created. Once entry happened by another route, that surplus was competed away, just like the barbers’ £69.

Sources: CBS News, 2018; NPR, October 2018.

Part 6 · Tax incidence: who really pays?

The person who hands the tax to the government is often not the person who bears it.

A £5 tax on every haircut

The council charges barbers £5 per haircut. Start from the original market: 60 barbers, QD = 1000 − 20P, P = £20.

Write P for the price customers pay; barbers keep P − 5.

  1. Short run (still 60 barbers): find the price customers pay, the price barbers keep, and the quantity.
  2. Is each barber making a profit or a loss?
  3. What will happen in the long run?

Short run: the burden is shared

30(P − 5) = 1000 − 20P → 50P = 1150 → customers pay £23, barbers keep £18, Q = 540, q = 9 each.

Supply shifts up by £5. Customers pay £23, barbers keep £18, quantity 540. The tax revenue rectangle is split: £3 per cut paid by customers, £2 by barbers. A small deadweight-loss triangle lies between 540 and 600.

Customers pay £3 more; barbers keep £2 less. Tax revenue £5 × 540 = £2,700. Deadweight loss ½ × 60 × 5 = £150.

Long run: customers pay all of it

Barbers make a loss at £18, so some leave. Exit continues until the price barbers keep is back at min AC = £20.

So customers pay £20 + £5 = £25, Q = 1000 − 20(25) = 500, and 500 / 10 = 50 barbers remain.

No tax Short run Long run
Price customers pay £20 £23 £25
Price barbers keep £20 £18 £20
Cuts per day 600 540 500
Number of barbers 60 60 50
Profit per barber £0 −£19 £0

In a constant-cost industry the long-run supply curve is flat, so the whole tax ends up on consumers. Producers escape by leaving.

The long-run tax in pictures

Left: one barber at the bottom of AC, keeping £20 per cut after tax. Right: market with horizontal long-run supply at £20 and a parallel line at £25 including tax; demand meets the £25 line at 500 cuts.

Increasing-cost industry: the burden is shared

If long-run supply slopes up, exit also lowers input costs (cheaper rents, lower wages), so the price firms keep can stay below its old level.

Upward-sloping long-run supply. A tax moves the price paid by consumers up from P1 to P3 and the price kept by firms down from P1 to P2. The tax revenue rectangle is split into a consumer burden above P1 and a firm burden below. A deadweight loss triangle sits between Q2 and Q1.

P3 is what consumers pay, P2 what firms keep. Consumer share of the tax = εS ÷ (εS + |εD|).

Tax incidence: the rules of thumb

A tax on beachfront hotel rooms in one resort, which has no room to build more hotels. Who pays most of it in the long run, guests or hotel owners? What if the same tax applied to all hotels in the country?

Part 7 · Application: a tariff

A tax on imports, in a market where the country is a price taker in the world market.

Washing machines: free trade

A country can import any number of washing machines at the world price, £300. Domestic market (thousands of machines per year):

At £300: buyers want 400; home firms make 200; imports = 200.

Now the government adds a £25 tariff on every imported machine.

  1. What is the new domestic price, and how much do home firms make? How much is imported?
  2. Who gains and who loses, and by how much?

Answer: price £325, imports halve

At £325: buyers want 1000 − 650 = 350; home firms make 650 − 400 = 250; imports = 100.

Domestic demand and supply with world price £300 and tariff-inclusive price £325. Areas: A is gain to domestic producers; C is tariff revenue; B and D are deadweight-loss triangles.

Home production rises by 50 and buying falls by 50, so imports fall from 200 to 100.

Who gains, who loses

Effect (per year) Area £
Consumers lose A + B + C + D −9.375m
Home producers gain A +5.625m
Government revenue C +2.5m
Deadweight loss B + D −1.25m

A tariff transfers surplus from consumers to home producers and the government, and wastes some along the way. Consumers lose £9.4m to give producers £5.6m.

The real thing: US washing-machine tariffs, 2018

In 2018 the US put tariffs of 20–50% on imported washing machines. Economists Flaaen, Hortaçsu and Tintelnot tracked what happened:

Use the graph to explain why the domestic brands’ prices also rose, even though no tariff was paid on them.

Sources: NBER Working Paper 25767; AEA Research Highlights; published in the American Economic Review, 2020.

Common mistakes to avoid

  1. “Price rose, so demand fell.” Quantity demanded fell; demand (the curve) did not move.
  2. Adding prices to get market supply. Add quantities at each price.
  3. “Zero economic profit means firms earn nothing.” They earn their opportunity cost; accounting profit is positive.
  4. “Demand doesn’t matter in the long run.” With constant costs it does not affect price, but it decides output and the number of firms.
  5. “The firm pays the tax because it hands over the money.” Who bears it depends on elasticities.
  6. “Producer surplus = profit.” In the short run it is profit plus fixed cost.

Summary (1 of 2)

Summary (2 of 2)

Barbers: before Fade trend, SR Fade trend, LR £5 tax, SR £5 tax, LR
Price paid £20 £26 £20 £23 £25
Barbers 60 60 90 60 50
Cuts per day 600 780 900 540 500

Final check

  1. In the very short run, a café has 30 croissants left at 11am and a coach party arrives. What happens to the croissant price if the café can change it, and what if it cannot?
  2. Start from the long-run equilibrium after the fade trend: 90 barbers, demand QD = 1300 − 20P, constant costs. Rents on every shop rise by £69 a day, so TC = 169 + q². In the long run, what happens to the price of a haircut, cuts per barber and the number of barbers?
  3. A tax is levied on a good whose demand is perfectly inelastic. Who pays it? Is there a deadweight loss?

Final check: answers

  1. Supply is fixed at 30. If price can change, it rises until only 30 croissants are wanted. If not, there is a shortage: first come, first served.
  2. New AC = 169/q + q; MC = AC gives q² = 169, q = 13, min AC = £26. Price rises to £26, Q = 1300 − 520 = 780, so 780/13 = 60 barbers (down from 90). A higher fixed cost means bigger shops and fewer of them.
  3. Buyers pay all of it. No deadweight loss: quantity does not change, so no trades are lost.

For any market question, ask: what shifted, which curve did not, and how much time do sellers have?