Skip to content
AccountancyPath

EconomicsModule 2: Markets and pricesIntermediate6 min read

Market Equilibrium: Equations, Shifts and Surplus

Learn how to solve market equilibrium from demand and supply equations, analyse simultaneous shifts, price controls, and consumer and producer surplus.

Lesson 3 of 18
Course outline (18 lessons)

Before this lesson:Supply and Demand

In supply and demand, you saw visually that competitive markets tend toward the point where the two curves cross. Writing demand and supply as simple linear equations lets you calculate that market equilibrium precisely, measure shortages and surpluses, and calculate how much value trade creates for buyers and sellers.

Solving equilibrium algebraically

In a simplified linear market, quantity demanded falls smoothly as price rises, and quantity supplied rises as price rises:

Formula · Market equilibrium condition

Qd(P*) = Qs(P*)

Qd = a − bP
linear demand curve (quantity demanded falls by b units for every $1 price rise)
Qs = c + dP
linear supply curve (quantity supplied rises by d units for every $1 price rise, with Qs ≥ 0)
P*, Q*
equilibrium (market-clearing) price and equilibrium quantity

To find equilibrium, set the two equations equal, solve for P*, then substitute P* back into both equations to get Q* and check your algebra.

Worked example

Solving equilibrium, surplus and shortage

Consider a fictional regional wholesale market for roasted coffee beans (measured in kilograms per week):

  • Demand: Qd = 240 − 4P
  • Supply: Qs = −60 + 6P (for prices at or above $10; below $10, sellers supply 0 kg)

1. Find equilibrium:

Set Qd = Qs:

240 − 4P = −60 + 6P
300 = 10P
P = $30 per kg

Substitute P = $30 back into both equations:

  • Qd = 240 − 4 × 30 = 240 − 120 = 120 kg
  • Qs = −60 + 6 × 30 = −60 + 180 = 120 kg

Both sides match, so equilibrium is $30 per kg and 120 kg traded.

2. Check prices away from equilibrium:

Price Qd = 240 − 4P Qs = −60 + 6P Quantity traded Market state
$40 80 kg 180 kg 80 kg Surplus of 100 kg (downward pressure on price)
$30 120 kg 120 kg 120 kg Equilibrium (market clears)
$20 160 kg 60 kg 60 kg Shortage of 100 kg (upward pressure on price)

Notice an important rule: when a market is out of equilibrium, the short side determines how much is actually bought and sold (min(Qd, Qs)). At $40, sellers want to sell 180 kg but buyers only purchase 80 kg. At $20, buyers want 160 kg but only 60 kg is available.

When both curves shift at once

When a single curve shifts, both price and quantity move in a predictable direction. When both demand and supply shift simultaneously, one outcome is certain and the other is ambiguous until you know which shift is larger:

Simultaneous shift Effect on price Effect on quantity
Demand rises + Supply rises Ambiguous Rises
Demand falls + Supply falls Ambiguous Falls
Demand rises + Supply falls Rises Ambiguous
Demand falls + Supply rises Falls Ambiguous

For example, return to the fictional coffee market above (Qd = 240 − 4P, Qs = −60 + 6P). Suppose a health study boosts demand by 50 kg at every price (Qd₂ = 290 − 4P) while higher shipping fees cut supply by 10 kg at every price (Qs₂ = −70 + 6P). Setting them equal gives 290 − 4P = −70 + 6P, so 360 = 10P, P = $36 and Q = 146 kg (check: −70 + 6 × 36 = 146). Price definitely rose, and because the demand increase outweighed the supply drop, quantity rose from 120 kg to 146 kg.

You can test single and simultaneous shifts interactively in the Supply and Demand Lab.

Price ceilings and price floors

Governments sometimes restrict how high or low a price may go. A price control only changes the market outcome when it is binding:

  • A binding price ceiling is a legal maximum set below equilibrium (for example, capping the coffee price above at $20). It creates a persistent shortage of 100 kg and cuts trade from 120 kg to 60 kg. A ceiling set above $30 is non-binding and leaves equilibrium unchanged.
  • A binding price floor is a legal minimum set above equilibrium (for example, requiring a minimum price of $40). It creates a persistent surplus of 100 kg and cuts trade to 80 kg. A floor set below $30 is non-binding.

Because binding controls prevent mutually beneficial trades that would otherwise take place, they reduce total economic surplus and create a deadweight loss, even when introduced with fairness or income-support goals in mind.

Consumer surplus and producer surplus

Market equilibrium does more than clear the shelves—it measures the gains from trade:

  • Consumer surplus (CS) is the difference between the highest price buyers were willing to pay and the market price they actually paid.
  • Producer surplus (PS) is the difference between the market price sellers receive and the lowest price they were willing to accept (their marginal cost).

For straight-line curves, both areas form right triangles bounded by equilibrium quantity Q*:

Formula · Consumer and producer surplus (linear curves)

CS = ½ × Q* × (P_max − P*) | PS = ½ × Q* × (P* − P_min)

P_max
demand choke price (price where Qd = 0)
P_min
minimum supply price (price where Qs = 0, or $0 if Qs > 0 at P = 0)
P*, Q*
equilibrium price and equilibrium quantity
Worked example

Calculating consumer and producer surplus

Using the fictional coffee bean market (Qd = 240 − 4P, Qs = −60 + 6P) at equilibrium P = $30 and Q = 120 kg:

  1. Find the demand choke price (Qd = 0): 240 − 4P = 0 → P_max = $60.
  2. Find the minimum supply price (Qs = 0): −60 + 6P = 0 → P_min = $10.
  3. Consumer surplus: ½ × 120 × ($60 − $30) = ½ × 120 × $30 = $1,800.
  4. Producer surplus: ½ × 120 × ($30 − $10) = ½ × 120 × $20 = $1,200.
  5. Total economic surplus: $1,800 + $1,200 = $3,000 per week.

Every kilogram sold up to 120 kg is valued by buyers above what it costs sellers to produce. Beyond 120 kg, marginal cost exceeds buyers’ willingness to pay, so equilibrium maximises total surplus in a competitive market without external side effects.

Common mistakes

Real-world application

Commodity exchanges, ride-hailing platforms and airline booking systems continuously adjust prices to keep supply and demand close to balance. Retailers who set seasonal clearance prices too high face unsold surpluses; concert promoters who underprice popular shows create shortages and secondary resale markets. Businesses also pair equilibrium analysis with price elasticity to judge how steeply prices or quantities will move when costs change.

Recap

  • Equilibrium (P*, Q*) is found by solving Qd(P) = Qs(P) and verifying both sides give the same quantity.
  • Prices above P* create surpluses; prices below P* create shortages; actual volume traded is always min(Qd, Qs).
  • When both curves shift at once, one variable moves unambiguously while the other depends on which shift is larger.
  • Binding price ceilings (below P*) cause shortages; binding price floors (above P*) cause surpluses.
  • Consumer surplus and producer surplus measure the gains from trade; for linear curves, each is the area of a triangle (½ × base × height).

Try it yourself

Active recall

Quick check · Test yourself

Work out each answer in your head first, then reveal the explanation and mark whether you got it right.

  1. 1A market has demand Qd = 160 − 4P and supply Qs = −20 + 5P (for P ≥ $4). Find the equilibrium price and quantity.

    Show worked answer

    Set Qd = Qs: 160 − 4P = −20 + 5P, so 180 = 9P and P = $20. Substituting back: Q = 160 − 4 × 20 = 80 units (check: −20 + 5 × 20 = 80).

  2. 2In that same market (Qd = 160 − 4P, equilibrium P = $20 and Q = 80), calculate consumer surplus.

    Show worked answer

    Demand hits zero at the choke price where 160 − 4P = 0, giving P = $40. Consumer surplus = ½ × base × height = ½ × 80 × ($40 − $20) = ½ × 80 × $20 = $800.

  3. 3Raw material costs fall (supply shifts right) at the same time as household incomes rise for a normal good (demand shifts right). What happens to equilibrium price and quantity?

    Show worked answer

    Equilibrium quantity definitely rises because both shifts push quantity up. The change in equilibrium price is ambiguous: higher demand pushes price up while higher supply pushes price down, so the net result depends on which shift is larger.

Key terms in this lesson

Lesson 3 of 18 · Economics

Finished this lesson?

Mark it complete to track your progress through the course. Progress is saved in this browser only.

Previous lesson: Supply and Demand

Subject GuideEconomics & Financial Analysis

Lin Wei(林伟)

Connects macro policy shifts to real company cash flows and market cycles.

  • Macroeconomics & Policy
  • Market Equilibrium & Trade
  • DuPont ROE & Earnings Quality

More lessons with Lin

Published:

Educational content only—not accounting, tax, legal or investment advice. See our editorial policy or report an error via our corrections policy.

Search