Calculator guide

When Demand and Supply Shift at the Same Time

One shift is easy: more demand raises both price and quantity, and more supply raises quantity and lowers price. When both curves move at once, the two effects push one of the variables in opposite directions, and the honest answer for that variable is "it depends". The useful skill is knowing which variable you can still sign, and what you would need to know to sign the other.

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.

ΔP = (Δa − Δc) ÷ (b + d) ΔQ = (d × Δa + b × Δc) ÷ (b + d)

Worked example

100 − 2P = 20 + 2P

80 = 4P → P = 20

Q = 100 − 2 × 20 = 60

Two supply and demand panels for the market Qd = 100 − 2P, Qs = 20 + 2P, which starts at a price of 20 and a quantity of 60. Left, demand and supply both shift right: the three worked outcomes sit one above another at a quantity of 80, at prices 15, 20 and 25. Right, demand shifts right and supply left: the outcomes sit side by side at a price of 30, at quantities 50, 60 and 70.
FigureSame direction, and the outcomes stack: quantity is settled at 80, price is not. Opposite directions, and they line up: price is settled at 30, quantity is not. Dashed lines are the shifts of 20; each dot is one of the worked rows below. The other two cases are mirror images.

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.

%ΔP = (demand shift % − supply shift %) ÷ (Es + |Ed|) %ΔQ = (Es × demand shift % + |Ed| × supply shift %) ÷ (Es + |Ed|)

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

Try it with your own numbers

Open the Market Equilibrium Calculator to run this calculation for your own situation — the formula and assumptions are shown on the page.

Try the Market Equilibrium Calculator

Related calculators

Browse the full set in Economics Calculators.

Frequently asked questions

What happens to price and quantity when both demand and supply increase?

Quantity rises for certain. Price can rise, fall or stay the same depending on which shift is bigger. In the worked market, equal shifts of 20 leave the price at 20 while quantity rises from 60 to 80.

What happens when demand increases and supply decreases?

Price rises for certain, because both shifts push it up. Quantity can rise, fall or stay the same: in the worked market the price goes to 30 every time, while quantity ends at 70, 60 or 50 depending on the sizes of the shifts.

Why is one variable always ambiguous when both curves shift?

Because for that variable the two shifts push in opposite directions. Same-direction shifts conflict on price; opposite-direction shifts conflict on quantity.

Does the rule depend on the slopes of the curves?

Which variable is certain does not, as long as demand slopes down and supply slopes up. The size of every change does, and so does the direction of quantity when it is the ambiguous one: demand +20 with supply −20 leaves quantity at 60 with equal slopes, raises it to 70 with a flatter supply curve and lowers it to 50 with a flatter demand curve.

How do you estimate the effect of two shifts with elasticities?

Express each shift as a percentage of the quantity traded. Price changes by the demand shift minus the supply shift, divided by the two elasticities added as positive numbers; quantity changes by each shift weighted by the other side's elasticity. Demand +5% and supply +3%, with elasticities of −1.0 and 0.5, give price about +1.3% and quantity about +3.7%.

How do you find the exact new equilibrium?

Write the shifted demand and supply equations, set them equal and solve for price, then put that price back into either equation for quantity. The market equilibrium calculator does the same when you enter the new curves.

Related guides

Built and maintained by Jay Sudha · Last reviewed 21 November 2026.

See a formula issue or unclear assumption? Report it through the contact page.

Educational estimate only. Not financial, tax, legal, investment, or professional advice.