Ad Space — Top Banner

Market Equilibrium Calculator

Find equilibrium price and quantity from linear supply and demand equations.
See what happens when supply or demand shifts.

Market Equilibrium

The single most important model in microeconomics

Supply and demand is the foundational model of economics, attributed to Alfred Marshall (1890) though earlier versions trace back to Adam Smith and David Ricardo. It explains how markets coordinate vast numbers of decentralized decisions without any central planner.

The model is simple but profound: in a competitive market, prices adjust to balance the quantity buyers want with the quantity sellers offer. The price at which these match is the market-clearing equilibrium price.

The demand and supply equations

This calculator uses linear approximations:

Demand: Qd = a − b·P Supply: Qs = c + d·P

Where:

  • a = demand intercept (maximum quantity demanded at P=0)
  • b = demand slope (how quantity falls per dollar of price)
  • c = supply intercept (or negative — sellers may not produce at all below a minimum price)
  • d = supply slope (how quantity rises per dollar of price)

Setting Qd = Qs: a − b·P = c + d·P P* = (a − c) ÷ (b + d)

And substituting back: Q* = a − b·P* = c + d·P*

The equilibrium is the intersection of the two curves. Below this price: shortage. Above: surplus.

Why prices gravitate to equilibrium

The mechanism is straightforward:

Below equilibrium (P < P)*: buyers want more than sellers offer. Buyers compete by bidding higher prices. Sellers raise prices since stocks deplete fast. Result: price rises toward P*.

Above equilibrium (P > P)*: sellers offer more than buyers want. Inventories pile up. Sellers cut prices to move inventory. Result: price falls toward P*.

At equilibrium (P = P)*: quantity demanded equals quantity supplied. Inventories stable. Price has no reason to change.

This is the famous “invisible hand” — no one decides P*, yet markets find it.

What shifts demand

A shift moves the entire demand curve, not just movement along it:

Factor Effect on demand
Higher consumer income Right shift (normal goods); left shift (inferior goods)
Price of substitutes rises Right shift
Price of complements rises Left shift
Consumer preferences shift toward good Right shift
Population grows Right shift
Expected future prices rise Right shift now (buy before increase)
Tax credits / subsidies for buyers Right shift
Holiday season (for gifts) Right shift
New substitute appears Left shift

What shifts supply

Factor Effect on supply
Lower input costs Right shift
Better technology Right shift
More producers Right shift
Bad weather (for agriculture) Left shift
Strike, supply chain disruption Left shift
New regulations adding cost Left shift
Tax on producers Left shift
Expected future prices rise Left shift now (hold inventory for higher prices later)
Removal of price ceiling Right shift

The four basic shift scenarios

Shift Price Quantity
Demand increases (right shift) Up Up
Demand decreases (left shift) Down Down
Supply increases (right shift) Down Up
Supply decreases (left shift) Up Down

These four patterns explain most everyday price changes. Gas prices spike during refinery outage (supply down → price up, quantity down). Strawberry prices fall in summer (supply up → price down, quantity up). Beanie Baby craze in 1990s (demand up → price up, quantity up).

Elasticity — how responsive are buyers and sellers

The slopes (b and d) describe responsiveness. The economic term is elasticity:

Price elasticity of demand: %ΔQd ÷ %ΔP

| |Elasticity| | Description | Examples | |—————|————-|———-| | > 1 | Elastic — buyers respond strongly to price | Luxury goods, restaurant meals | | = 1 | Unit elastic | (theoretical reference) | | < 1 | Inelastic — quantity changes little with price | Gas, prescription drugs, salt | | 0 | Perfectly inelastic | Insulin (life-saving), addictive products | | ∞ | Perfectly elastic (any quantity at one price) | Theoretical limit |

Elasticity matters for:

  • Tax incidence (inelastic side pays more of the tax)
  • Pricing strategy (elastic demand → cut prices to grow revenue; inelastic → raise prices)
  • Welfare effects of supply shocks

Real-world examples of equilibrium shifts

  • 2020 COVID toilet paper: panic buying → demand right shift → price up (where allowed), shortage (with sticky prices and rationing)
  • 2008 housing crash: supply right shift (foreclosures) + demand left shift (credit crunch) → prices crashed, quantity sold dropped
  • Smartphones 2007-2024: technology improvements → supply right shift → falling real prices, rising quantities
  • EU dairy quotas removed 2015: supply right shift → prices fell ~25%
  • Egg market 2022-2023 US: bird flu → supply left shift → prices doubled
  • Cobalt for batteries: EV demand right shift → price spiked 4x in 2017-2018

Each follows the textbook pattern with predictable price/quantity outcomes.

Price ceilings and floors — when government intervenes

Sometimes governments prevent the market from reaching equilibrium:

Price ceiling (max price below P)*:

  • Creates shortage (Qd > Qs)
  • Examples: rent control (NYC, San Francisco), gas price caps (1970s US)
  • Result: lines, shortages, black markets, deterioration of quality, quotas, lotteries

Price floor (min price above P)*:

  • Creates surplus (Qs > Qd)
  • Examples: minimum wage, agricultural price supports
  • Result: unemployment (for labor), unsold inventory, government buys excess

The textbook prediction holds: every well-intended price control creates predictable shortages or surpluses. Rent control reduces housing supply over time as landlords abandon or skip maintenance. Minimum wage may reduce employment of marginal workers (the empirical magnitude is debated, but the direction matches theory).

When the model breaks down

The textbook model assumes:

  1. Many buyers and sellers (no market power)
  2. Homogeneous goods (one identical product)
  3. Perfect information (everyone knows prices)
  4. Easy entry and exit
  5. No externalities

Real markets violate these:

  • Monopoly/oligopoly: a few sellers control the market; price > marginal cost
  • Product differentiation: brands, quality differences, location
  • Information asymmetry: used cars (Akerlof’s “lemons”), health insurance (adverse selection)
  • Switching costs and lock-in: software, telecom
  • Network effects: social media (more users = more value)
  • Externalities: pollution, infectious diseases
  • Inelastic demand for essentials: insulin price spikes
  • Speculation and bubbles: housing 2006, GameStop 2021, tulips 1637

Each violation requires extending the basic model or adding regulation. The basic supply-demand framework remains useful — every deviation is described relative to it — but it’s a starting point, not a complete description.

The Marshallian “scissors”

Alfred Marshall used the metaphor of scissors: “We might as reasonably dispute whether it is the upper or under blade of a pair of scissors that cuts a piece of paper, as whether value is governed by utility or cost of production. Both demand and supply are essential to determining price.”

This was Marshall’s resolution of a 19th-century debate: are prices set by buyer utility (Jevons, Walras) or producer cost (classical economists)? Marshall’s answer: both — they intersect at equilibrium.

Worked example

A market for a good has:

  • Demand: Qd = 200 − 4P
  • Supply: Qs = 20 + 6P

Equilibrium: 200 − 4P = 20 + 6P → 180 = 10P → P* = $18 Q* = 200 − 4(18) = 128 units

Now apply a demand shift of +40 (perhaps due to a marketing campaign): new demand Qd = 240 − 4P New equilibrium: 240 − 4P = 20 + 6P → 220 = 10P → Pnew = $22 Qnew = 240 − 4(22) = 152 units

Both price and quantity rose, as the model predicts for a demand increase.

Bottom line

Supply and demand equilibrium is the foundational microeconomic model. Linear approximations work well near equilibrium for most goods. The four shift scenarios (demand/supply up/down) predict most price changes accurately. Elasticity determines how responsive buyers and sellers are. Price controls create shortages or surpluses depending on direction. The model has limits (monopoly, asymmetric info, externalities) but remains the right starting point for analyzing almost any market.


Ad Space — Bottom Banner

Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.