Demand and supply are the backbone of market economics. They determine how much of a good gets produced and sold, and at what price. These forces shape everything from the cost of your morning coffee to global oil prices.
Understanding demand and supply helps you make sense of market behavior. This guide covers how prices adjust, what causes shifts in demand or supply, and how markets reach equilibrium.
Demand and Supply
Demand and supply fundamentals
Demand is the quantity of a good or service that consumers are willing and able to purchase at various prices during a given time period. "Willing and able" is doing real work in that definition: you might want a new smartphone, but if you can't afford it, you don't count as part of market demand.
Several factors shape demand beyond just price:
- Consumer preferences (taste, trends, fashion)
- Income (how much disposable income buyers have)
- Prices of related goods (substitutes like Coke vs. Pepsi, or complements like phones and phone cases)
Supply is the quantity of a good or service that producers are willing and able to offer for sale at various prices during a given time period. Factors that shape supply include:
- Production costs (raw materials, wages)
- Technology (automation, improved efficiency)
- Prices of inputs (energy, transportation)
Price acts as a signal in the market, influencing both sides. As price rises, quantity demanded falls (fewer buyers) while quantity supplied rises (more sellers find it profitable). As price drops, the opposite happens. These two forces push against each other and ultimately determine what gets bought and sold.

Price and quantity relationships
The demand curve plots price on the vertical axis and quantity demanded on the horizontal axis. It slopes downward from left to right, showing the inverse relationship: higher prices correspond to lower quantities demanded.
The supply curve plots the same axes but slopes upward from left to right, showing a positive relationship: higher prices correspond to higher quantities supplied.
Both curves can shift left or right when something other than the good's own price changes:
- The demand curve shifts when income, preferences, population, expectations, or prices of related goods change. For example, a recession reduces income and shifts demand left (less demanded at every price).
- The supply curve shifts when production costs, technology, number of sellers, or input prices change. For example, a new automation technology lowers costs and shifts supply right (more supplied at every price).
A shift of the curve is different from a movement along the curve. A change in the good's own price causes movement along the curve. A change in any other factor shifts the entire curve.

Laws of demand and supply
The law of demand states that, all else being equal (ceteris paribus), as the price of a good increases, the quantity demanded decreases, and vice versa. This is why the demand curve has a negative slope. Think of it this way: if gas prices double, people drive less or carpool more.
The law of supply states that, all else being equal, as the price of a good increases, the quantity supplied increases, and vice versa. This is why the supply curve has a positive slope. Higher prices make production more profitable, so firms are willing to produce more.
Together, these two laws explain how prices and quantities adjust when market conditions change. If a drought destroys part of the wheat crop, supply falls, prices rise, and consumers buy less wheat. The laws give you a reliable framework for predicting the direction of these changes.
Market equilibrium determination
Market equilibrium is the point where quantity demanded equals quantity supplied. Graphically, it's where the demand and supply curves intersect.
- The equilibrium price () is the price at which the market clears: every unit produced finds a buyer.
- The equilibrium quantity () is the amount bought and sold at that price.
At equilibrium, there's no shortage and no surplus. But markets aren't always at equilibrium. Here's how they adjust:
- If the market price is above , a surplus (excess supply) develops. Producers can't sell everything, so they lower prices. This continues until price falls back to .
- If the market price is below , a shortage (excess demand) develops. Consumers compete for limited goods, bidding the price up. This continues until price rises back to .
- These adjustments keep pushing the market toward equilibrium, where price stabilizes and the quantity supplied matches the quantity demanded.
Elasticity and market surplus
Price elasticity of demand measures how responsive quantity demanded is to a change in price. If a small price increase causes a large drop in quantity demanded, demand is elastic. If quantity demanded barely budges, demand is inelastic. The formula is:
Price elasticity of supply measures the same responsiveness on the producer side: how much quantity supplied changes when price changes.
Consumer surplus is the difference between what consumers are willing to pay and what they actually pay (the market price). On a graph, it's the area below the demand curve and above the equilibrium price. If you'd pay $5 for a coffee but the price is $3, your consumer surplus on that cup is $2.
Producer surplus is the difference between the market price and the minimum price producers would accept. On a graph, it's the area above the supply curve and below the equilibrium price. Together, consumer and producer surplus make up the total gains from trade in a market.