Supply and Demand Explained: How Markets Set Prices and Allocate Resources
A comprehensive explanation of supply and demand — how demand curves work, what shifts them, supply curves and their determinants, how equilibrium price and quantity are reached, price elasticity, market failures, and real-world applications from housing markets to oil prices.
The Fundamental Mechanism of Markets
Supply and demand is the foundational model of economics — the framework that explains how prices form in competitive markets and how resources are allocated across competing uses. Understanding it illuminates not only economics textbook examples but real phenomena: why gasoline prices spike after hurricanes, why housing is expensive in San Francisco, why the price of personal computers fell 99.9% over 40 years while the price of college tuition quadrupled, and why minimum wages sometimes reduce employment and sometimes don't.
The model dates to Adam Smith's observations in The Wealth of Nations (1776) and was formalized mathematically by Alfred Marshall in his Principles of Economics (1890), who introduced the supply and demand diagram as a tool for economic analysis — one of the most productive simplifications in social science history.
Demand: What Buyers Want at Each Price
The law of demand states that, all else equal, as the price of a good rises, the quantity demanded falls — and vice versa. This inverse relationship reflects two mechanisms:
- Substitution effect: When coffee becomes more expensive, some consumers switch to tea — a substitute. Higher price makes the good relatively more expensive compared to alternatives.
- Income effect: Higher prices reduce the purchasing power of consumers' budgets, reducing consumption of normal goods.
The demand curve — price on the vertical axis, quantity on the horizontal — slopes downward. A movement along the curve (a change in quantity demanded) is caused by a price change. A shift of the entire curve (a change in demand) is caused by anything other than price:
- Income: Higher income increases demand for normal goods; decreases demand for inferior goods (cheap substitutes people buy when they can't afford better)
- Price of related goods: A rise in coffee prices increases demand for tea (substitutes); a rise in printer prices reduces demand for printer ink (complements)
- Tastes and preferences: Health trends increasing demand for plant-based foods
- Expectations: Expected future price increases can boost current demand (e.g., gasoline before a hurricane)
- Number of buyers: Population growth increases demand
Supply: What Sellers Offer at Each Price
The law of supply states that, all else equal, as the price of a good rises, the quantity supplied increases. Higher prices make production more profitable, inducing existing firms to produce more and attracting new entrants.
Supply curves slope upward. Shifts of the supply curve are caused by:
- Input costs: A rise in steel prices shifts the supply of cars leftward (less supply at every price); cheaper solar panels shifted the supply of solar energy rightward
- Technology: Improvements in production technology reduce costs and shift supply rightward — explaining falling computer and renewable energy prices
- Number of sellers: More firms in a market increases supply
- Government policies: Taxes increase production costs (shift left); subsidies reduce them (shift right)
- Expectations: Expected future price increases can reduce current supply (withholding)
Equilibrium: Where Supply Meets Demand
Market equilibrium is the price at which quantity supplied equals quantity demanded — where the supply and demand curves intersect. At this price, the market clears: there are no unsold surpluses and no unsatisfied buyers willing to pay the market price.
Markets tend toward equilibrium through automatic adjustment:
- If price is above equilibrium: quantity supplied exceeds quantity demanded (surplus). Sellers reduce prices to move inventory, pushing price toward equilibrium.
- If price is below equilibrium: quantity demanded exceeds quantity supplied (shortage). Buyers compete for scarce goods, bidding up prices toward equilibrium.
This self-correcting mechanism — Adam Smith's "invisible hand" — coordinates the decisions of millions of buyers and sellers without central coordination, transmitting information through prices and allocating resources toward highest-valued uses.
Price Elasticity
Price elasticity of demand measures how much quantity demanded responds to a price change — the percentage change in quantity demanded divided by the percentage change in price:
- Elastic demand (|elasticity| > 1): Quantity responds strongly to price changes. Luxury goods, goods with many substitutes, items that are a large share of budget. A 10% price rise reduces quantity demanded by more than 10%.
- Inelastic demand (|elasticity| < 1): Quantity responds weakly to price changes. Necessities (insulin, gasoline in the short run), goods with few substitutes, items with small budget share. A 10% price rise reduces quantity demanded by less than 10%.
- Perfectly inelastic: Quantity demanded doesn't change regardless of price (rare — some emergency medications approach this)
Elasticity has profound implications: taxing inelastic goods (tobacco, alcohol, gasoline) raises revenue with little reduction in quantity; taxing elastic goods causes large drops in consumption. Drug enforcement policies that reduce supply but face inelastic demand raise drug prices without proportionally reducing drug use — while increasing crime as users steal to pay higher prices.
Real-World Applications
Housing Markets
High housing prices in cities like San Francisco, New York, and London reflect a supply-demand imbalance: strong demand (desirable location, high wages, amenities) combined with restricted supply (zoning laws, building height limits, lengthy permitting). Economists near-universally find that increasing housing supply — permitting more construction — is the most effective way to improve affordability, though this faces political resistance from existing homeowners benefiting from high prices.
Oil Markets
Oil demand is relatively inelastic in the short run (people can't immediately change cars or commuting patterns) but more elastic over the long run (they can switch to EVs, move closer to work, increase efficiency). OPEC exploits this by restricting supply to raise prices — effective in the short run when demand is inelastic, but over years triggers substitution and innovation that erodes market share.
When Markets Fail
The supply-demand model assumes competitive markets without externalities or information problems. Real markets often violate these assumptions:
- Externalities: When a factory pollutes a river, the cost falls on people outside the market transaction. The supply curve doesn't include this social cost, producing more pollution than is socially optimal. Carbon pricing attempts to correct this by making emitters face the social cost of carbon.
- Public goods: Non-excludable, non-rival goods (national defense, basic research) are under-provided by private markets because free-riding prevents charging for them.
- Information asymmetry: George Akerlof's "market for lemons" (1970 Nobel Prize paper) showed how sellers knowing more than buyers (e.g., used cars) can cause markets to collapse.
- Monopoly power: A single seller can restrict output below competitive levels and raise prices above competitive levels.