Start from one market
Take a market with demand Qd = 100 − 2P and supply Qs = 20 + 2P. Setting them equal gives a price of 20 and a quantity of 60. Each case below shifts the curves sideways, demand by changing the 100 and supply by changing the 20, and solves again.
With straight-line curves the result can be written down in general. If demand is Qd = a − bP and supply is Qs = c + dP, price moves by the demand shift minus the supply shift, divided by b + d, and quantity moves by a weighted sum of the two shifts. Price follows the difference between the shifts; quantity follows their sum.
Worked example
100 − 2P = 20 + 2P
80 = 4P → P = 20
Q = 100 − 2 × 20 = 60
Both increase: quantity rises, price depends
Demand rises, perhaps from more buyers, and supply rises, perhaps from cheaper inputs. Both shifts push quantity up, so quantity rises for certain. For price they pull opposite ways: more demand raises it and more supply lowers it, so the bigger shift wins.
Quantity is 80 in every row because, with these equal slopes, quantity depends on the sum of the two shifts, and the sum is 40 each time. Price depends on their difference.
Worked example
Demand +20, supply +20 → P = 20, Q = 80
Demand +30, supply +10 → P = 25, Q = 80
Demand +10, supply +30 → P = 15, Q = 80
Both decrease: quantity falls, price depends
This is the combination OpenStax works through with the US Postal Service: higher compensation for postal workers shifts supply to the left while changing tastes shift demand to the left. Quantity falls for certain, and the effect on price cannot be signed without knowing the sizes of the shifts.
Worked example
Demand −20, supply −20 → P = 20, Q = 40
Demand −30, supply −10 → P = 15, Q = 40
Demand −10, supply −30 → P = 25, Q = 40
Demand up, supply down: price rises, quantity depends
Now the shifts agree on price, since more demand and less supply both raise it, and disagree on quantity. A popular product hit by a shortage of one of its inputs has this shape: the price goes up for certain, but whether more or less is sold depends on which shift is bigger.
Worked example
Demand +20, supply −20 → P = 30, Q = 60
Demand +30, supply −10 → P = 30, Q = 70
Demand +10, supply −30 → P = 30, Q = 50
Demand down, supply up: price falls, quantity depends
The mirror case. Less demand and more supply both push price down, so price falls for certain, while quantity depends on the balance. A product that is losing buyers just as a cheaper way to make it arrives fits this pattern.
Worked example
Demand −20, supply +20 → P = 10, Q = 60
Demand −30, supply +10 → P = 10, Q = 50
Demand −10, supply +30 → P = 10, Q = 70
The rule, and how to settle the ambiguous one
If the two shifts go the same way, quantity is certain and price is ambiguous. If they go opposite ways, price is certain and quantity is ambiguous. It follows from the formulas above: shifts in the same direction add up in quantity and partly cancel in price, while opposite shifts add up in price and partly cancel in quantity. It holds for any downward-sloping demand and upward-sloping supply, not only for these numbers.
To settle the ambiguous variable you need what a sketch does not show: how big each shift is and, for quantity, how steep each curve is. With those, write the shifted equations and solve them, or enter the shifted curves in the market equilibrium calculator.
Worked example
Demand | Supply | Price | Quantity
Up | Up | Ambiguous | Up
Down | Down | Ambiguous | Down
Up | Down | Up | Ambiguous
Down | Up | Down | Ambiguous
Same shifts, different slopes
The four cases tell you which variable you can sign from the directions alone. When quantity is the ambiguous one, the sizes of the shifts do not settle it on their own: the slopes matter too. Take demand +20 and supply −20, the equal-shift row of the demand-up, supply-down case, in three markets that all start at a price of 20 and a quantity of 60.
With equal slopes, quantity stays at 60. Make supply flatter, so sellers respond more to price (Qs = −60 + 6P, nothing offered below a price of 10), and the same two shifts raise quantity to 70: the higher price draws out enough extra output to outweigh the supply cut. Make demand flatter instead (Qd = 180 − 6P) and quantity falls to 50, because buyers cut back hard as the price rises. Price rises in all three, to 30 with equal slopes and to 25 in the other two.
The formula at the top shows why. A shift's effect on quantity is weighted by how strongly the other side responds to price: d for a demand shift, b for a supply shift. So a demand shift moves quantity most when supply is flat, and a supply shift moves it most when demand is flat. Price depends on the shifts only through their difference, so with shifts measured sideways, as here, its direction never depends on the slopes; flatter curves only make the move smaller.
Worked example
Equal slopes: 120 − 2P = 2P → P = 30, Q = 60
Flatter supply: 120 − 2P = −80 + 6P → P = 25, Q = 70
Flatter demand: 200 − 6P = 2P → P = 25, Q = 50
Putting numbers on a real market
Real markets do not come with intercepts, but two things can often be estimated: how far each curve has shifted, as a percentage of the quantity traded (a 5% demand shift means buyers want 5% more at the starting price), and the price elasticities of demand and supply. Dividing the two formulas above by the starting price and quantity turns them into percentages, with the elasticities in place of the slopes.
Check it on the worked market. At the start both elasticities are 2 × 20 ÷ 60 ≈ 0.67 in size, and the row with demand +30 and supply +10 is a 50% demand shift and a 16.7% supply shift. The formula gives price +25% and quantity +33.3%: the same 20 → 25 and 60 → 80 as solving the equations.
Then use it where there are no equations. If demand grows 5% while supply grows 3%, with a demand elasticity of −1.0 and a supply elasticity of 0.5, price rises about 1.3% and quantity about 3.7%. The certain variable still comes from the directions; the elasticities turn "it depends" into an estimate.
Worked example
%ΔP = (5 − 3) ÷ (0.5 + 1.0) = 1.33%
%ΔQ = (0.5 × 5 + 1.0 × 3) ÷ 1.5 = 3.67%
Common mistakes
Drawing both shifts the same size and reading off a definite answer.An equal-sized sketch hides the ambiguity. Without the sizes, the honest answer for the contested variable is "it depends".Signing both price and quantity when both curves shift.Only one of the two can be signed from the directions alone.Assuming equal shifts in opposite directions leave quantity unchanged.They do only when the two curves are equally steep. With a flatter supply curve the same shifts raise quantity; with a flatter demand curve they lower it.Treating a change in the good's own price as a shift.That is a movement along a curve. Shifts come from income, tastes, input costs, technology, taxes and similar changes.Assuming "it depends" means "no change".It means the direction is set by the relative sizes of the shifts, and it can go either way.Reading a fall in supply as a move down the supply curve.A fall in supply is a shift to the left: less is offered at every price.
When not to rely only on the calculator
Sources
- Shifts in Demand and Supply for Goods and Services (section 3.2), OpenStax, Principles of Economics 3e
- Changes in Equilibrium Price and Quantity: The Four-Step Process (section 3.3), OpenStax, Principles of Economics 3e
- Price Elasticity of Demand and Price Elasticity of Supply (section 5.1), OpenStax, Principles of Economics 3e