Economics
High Schoolmicroeconomics

Supply, Demand, and Market Equilibrium

Why does the price of wheat at a farmers' market settle on one particular number instead of any other? Adding up what every buyer wants and every seller offers at each possible price leads to a single crossing point — and to the most-used tool in all of economics.

Before this, you should know:

Picture a farmers' market on a Saturday morning. One end of the square is lined with farmers who have trucked in bushels of wheat; the other end is full of shoppers who bake bread, feed animals, or mill flour. Nobody is in charge. No committee met the night before to decree a price, and no one counted exactly how much wheat the town needs. And yet, by the end of the morning, the wheat sells at one fairly steady price, and nearly every bushel that came to market finds a buyer. That quiet regularity — order emerging with nobody ordering it — is what this topic explains.

The two sides of the market want opposite things. Buyers would love the price to be low; every shopper would rather pay $8 a bushel than $16. Sellers would love it to be high; every farmer would rather receive $16 than $8. Neither side gets to dictate. What each side can do is decide how much to buy or sell at whatever price is on offer — and those decisions, added up across hundreds of people, turn out to be extraordinarily well-behaved.

Start with the buyers. Ask each shopper: "If the price were $10 a bushel, how many would you take home? What if it were $12? Or $20?" Add up everyone's answers and you get a quantity demanded for each possible price — the total amount buyers collectively want at that price. The pattern is as close to a law as economics has: at higher prices, buyers want less (some switch to oats or corn, some bake less often), and at lower prices, they want more. Plot quantity demanded against price and you get a demand curve, and it slopes downward. That slope is not a decoration — it is a literal record of buyers walking away as the price climbs and coming back as it falls.

Now the sellers. Ask each farmer: "At what price is it worth trucking wheat to town?" At low prices, only farmers with cheap transport and good harvests bother; at high prices, farmers with higher costs find the trip suddenly worthwhile, and everyone is willing to bring more. Add up their answers and you get a quantity supplied for each possible price. It rises with the price — plot it and you get an upward-sloping supply curve, a record of sellers being coaxed into the market as the reward grows.

So the market contains two crowd-sized preferences pulling in opposite directions, and the genuinely interesting question is: what actually happens when they meet? Is there a price where the amount buyers want exactly matches the amount sellers bring — and if so, can we find it precisely, and predict how it moves when the world changes? The rest of this topic answers that with nothing more than solving one linear equation — carefully, and in full.

What "equilibrium" actually means

Before any algebra, it helps to know what the destination is and why it deserves a special name. An equilibrium is a price at which quantity demanded and quantity supplied are equal — every buyer who wants wheat at that price finds a seller, and every seller who brought wheat at that price finds a buyer. Nothing is left over, and nobody goes home empty-handed. Economists call it an equilibrium because, once the market reaches it, nobody has any reason to change their behavior: no buyer is frustrated enough to offer more, no seller is stuck with unsold wheat and tempted to accept less. The price just sits there.

To see why every other price is unstable, put concrete numbers on the two sides. Suppose the weekly wheat market works like this (we'll derive these curves properly in the next section): if the price stood at $8 a bushel, buyers would want 68 thousand bushels but farmers would bring only 28 thousand. There is a shortage of 40 thousand bushels — forty thousand bushels' worth of shoppers going home without wheat. What happens next is not mysterious: frustrated buyers start offering a little more rather than leave empty-handed, and sellers, noticing the crowd, realize they can charge more and still sell out. The price gets pushed up.

Suppose instead the price stood at $16. Now buyers want only 36 thousand bushels while farmers bring 76 thousand — a surplus of 40 thousand bushels sitting unsold on the tables as the afternoon wears on. Sellers with wheat left over start accepting slightly less rather than truck it home, and buyers notice they can haggle. The price gets pushed down.

In plain words: any price below the crossing point creates a shortage that bids the price up, and any price above it creates a surplus that presses the price down. Only at the crossing itself do the pushes cancel. That's why the crossing point matters — it's not just a spot on a graph, it's the only resting place the market has.

Two curves for one market

Now make the two sides of this market precise. Throughout this track, QQ counts thousands of bushels per week — the wheat the whole county trades, not one stall's morning. Each curve is just the answer to the interview questions from the hook, compressed into one line of algebra. For the buyers of this wheat market:

Qd=1004P.Q_d = 100 - 4P.

Read that as: if wheat were free, the county would take 100 thousand bushels a week, and every dollar added to the price costs the market 4 thousand bushels of demand — a few buyers switch to other grains or bake less with each step up. (At P=25P = 25, demand hits zero: twenty-five dollars is the price at which the last buyer walks away.) For the farmers:

Qs=20+6P.Q_s = -20 + 6P.

Concretely: below about $3.33 a bushel (P=10/3P = 10/3 makes Qs=0Q_s = 0), no farmer finds the trip worthwhile at all; above that threshold, every dollar added to the price coaxes 6 thousand more bushels out of the fields and onto the tables. The negative intercept looks odd but means something real — supply doesn't even start until the price clears the cheapest farmer's costs. Neither of these numbers is plucked from nowhere; each is exactly what you'd get by tallying the buyer and seller interviews described above.

Solving for the equilibrium

Equilibrium means the quantity buyers want equals the quantity sellers bring — a single price where both interviews agree. So set the two expressions equal and solve, step by step:

Qd=Qs1004P=20+6P.Q_d = Q_s \quad\Longrightarrow\quad 100 - 4P = -20 + 6P.

Add 4P4P to both sides, then add 2020 to both sides:

100+20=6P+4P120=10PP=12010=12.100 + 20 = 6P + 4P \quad\Longrightarrow\quad 120 = 10P \quad\Longrightarrow\quad P^* = \frac{120}{10} = 12.

Now substitute P=12P^* = 12 back into demand to get the quantity:

Q=1004(12)=10048=52.Q^* = 100 - 4(12) = 100 - 48 = 52.

A solution isn't finished until it's checked against the side you didn't use. Supply at P=12P = 12 gives Qs=20+6(12)=20+72=52Q_s = -20 + 6(12) = -20 + 72 = 52 — the same number, as it must be. Put plainly: this market settles at $12 a bushel, with 52 thousand bushels changing hands each week, and at that price there is neither a single unsold bushel nor a single unfilled buyer. Also notice this is consistent with the off-equilibrium stories above: $8 is below $12 and produced a shortage; $16 is above and produced a surplus. The pushes both point at $12.

A useful check: the general formula

The wheat numbers are one instance of a pattern worth deriving once for all linear markets. Take any demand curve Qd=abPQ_d = a - bP and any supply curve Qs=c+dPQ_s = c + dP, with b>0b > 0 (demand slopes down) and d>0d > 0 (supply slopes up). Setting them equal:

abP=c+dPac=bP+dP=(b+d)PP=acb+d.a - bP = c + dP \quad\Longrightarrow\quad a - c = bP + dP = (b + d)P \quad\Longrightarrow\quad P^* = \frac{a - c}{b + d}.

What that says: the equilibrium price is the gap between the two intercepts — how much more buyers want at zero price than sellers offer, aca - c — divided by the sum of the two slopes, which measures how quickly the two sides close that gap as the price rises by a dollar. The equilibrium quantity follows by substituting back:

Q=abacb+d=a(b+d)b(ac)b+d=ad+bcb+d.Q^* = a - b\cdot\frac{a - c}{b + d} = \frac{a(b + d) - b(a - c)}{b + d} = \frac{ad + bc}{b + d}.

Now the check: the wheat market has a=100a = 100, b=4b = 4, c=20c = -20, d=6d = 6. Then

P=100(20)4+6=12010=12,Q=100×6+(20)×44+6=6008010=52.P^* = \frac{100 - (-20)}{4 + 6} = \frac{120}{10} = 12, \qquad Q^* = \frac{100 \times 6 + (-20) \times 4}{4 + 6} = \frac{600 - 80}{10} = 52.

Both match the step-by-step solution exactly — two independent routes to the same answer, which is what "the algebra is right" looks like.

When demand shifts: a rise in income

An equilibrium is only as permanent as the conditions behind the curves. Suppose the town gets richer — a factory opens, paychecks rise — and bread is the kind of good people buy more of when they have more to spend. At every price, buyers now want 20 thousand more bushels a week than before. The demand curve becomes

Qd=1204P,Q_d' = 120 - 4P,

same slope as before — buyers are just as price-sensitive — but a higher intercept: the whole schedule of wants has shifted up by 20.

Before solving anything, predict what must happen. At the old price of $12, buyers now want 1204(12)=72120 - 4(12) = 72 bushels, but sellers still bring only 52. That's a shortage of 20 thousand bushels — and we already know what shortages do: they bid the price up. As the price rises, two things happen at once: buyers trim back along their new demand curve, and sellers bring more along their unchanged supply curve. The market slides to a new crossing:

1204P=20+6P140=10PP=14,Q=1204(14)=64.120 - 4P = -20 + 6P \quad\Longrightarrow\quad 140 = 10P \quad\Longrightarrow\quad P' = 14, \qquad Q' = 120 - 4(14) = 64.

Check with supply: Qs=20+6(14)=20+84=64Q_s = -20 + 6(14) = -20 + 84 = 64. Matches. The price rose from $12 to $14, and the quantity traded rose from 52 to 64 thousand bushels. Both moved up. Notice the mechanics carefully, because this is the part everyone gets wrong at first: the supply curve itself never moved — farmers' costs and willingness are exactly what they were. What changed is where on that fixed curve the market sits. A demand-side shift pushes the equilibrium along the supply curve, and since the supply curve slopes up, the new resting point has both a higher price and a higher quantity. You could have predicted the direction of both changes with no algebra at all — the algebra only tells you how far.

One warning before the picture, because it trips up nearly everyone the first time: economics plots price on the vertical axis and quantity on the horizontal axis, even though the algebra above treats quantity QQ as the variable that depends on price PP. If this were a math class, PP would go on the horizontal axis. The convention is over a century old and too entrenched to fight, so just remember when reading the curves that each line shows "price on the vertical, quantity on the horizontal" — the demand line hits the vertical axis at P=25P = 25 (the walk-away price) and the shifted demand line at P=30P = 30.

A supply-and-demand graph for a weekly wheat market with quantity Q in thousands of bushels per week on the horizontal axis and price P in dollars per bushel on the vertical axis. A blue downward-sloping demand line labeled D starts at price 25 on the vertical axis and falls toward the lower right. A purple downward-sloping shifted demand line labeled D-prime runs parallel to it, starting at price 30. An orange upward-sloping supply line labeled S starts near price 3.33 on the vertical axis and rises toward the upper right. A dark dot marks the original equilibrium E-star where the blue demand line crosses the orange supply line at quantity 52 and price 12, with gray dashed guide lines to tick labels 52 on the quantity axis and 12 on the price axis. A purple dot marks the new equilibrium E-prime where the purple shifted demand line crosses the same orange supply line at quantity 64 and price 14, with gray dashed guides to tick labels 64 and 14.

The wheat market before and after a rise in consumer income. Demand D (blue) and supply S (orange) cross at the original equilibrium E* = (52 thousand bushels, $12). After income rises, demand shifts to D′ (purple) — parallel, 20 thousand bushels higher at every price — and the market slides up the unchanged supply curve to the new equilibrium E′ = (64 thousand bushels, $14), where both price and quantity are higher.

Worked example

A bad harvest hits the region: at every price, farmers can now bring 10 thousand fewer bushels per week, so supply shifts to Qs=30+6PQ_s' = -30 + 6P. Demand is the original Qd=1004PQ_d = 100 - 4P. Find the new equilibrium price and quantity, and compare them with the original equilibrium.

Step 1 — write down the two curves. Demand is unchanged: Qd=1004PQ_d = 100 - 4P. The bad harvest subtracts 10 from whatever farmers supplied at each price: Qs=20+6P10=30+6PQ_s' = -20 + 6P - 10 = -30 + 6P. Same slope as before — farmers respond to price exactly as they did — but a lower intercept: the whole supply schedule has shifted down by 10 thousand bushels.

Step 2 — predict before solving. At the old price of $12, sellers now bring 30+6(12)=42-30 + 6(12) = 42 bushels while buyers still want 52 — a shortage of 10. Expect the shortage to bid the price up, and expect quantity to fall this time, since the market will slide up the demand curve (which slopes down).

Step 3 — set the curves equal and solve for the price.

1004P=30+6P100+30=6P+4P130=10PP=13.100 - 4P = -30 + 6P \quad\Longrightarrow\quad 100 + 30 = 6P + 4P \quad\Longrightarrow\quad 130 = 10P \quad\Longrightarrow\quad P^* = 13.

Step 4 — solve for the quantity. Using demand:

Q=1004(13)=10052=48.Q^* = 100 - 4(13) = 100 - 52 = 48.

Step 5 — check against the other curve, then compare. New supply at P=13P = 13: Qs=30+6(13)=30+78=48Q_s' = -30 + 6(13) = -30 + 78 = 48. Matches. Comparison with the original equilibrium: price rose from $12 to $13, and quantity fell from 52 to 48 — exactly the directions predicted in Step 2. Note the contrast with the demand shift in the body of this topic, which moved price and quantity in the same direction. A supply shift moves them in opposite directions, because the equilibrium now travels along the downward-sloping demand curve instead of the upward-sloping supply curve. As a final sanity check, the general formula gives P=acb+d=100(30)4+6=13010=13P^* = \frac{a - c}{b + d} = \frac{100 - (-30)}{4 + 6} = \frac{130}{10} = 13 — same answer, third route.

Where this leads

The two curves and one crossing point derived here do something remarkable: they take the independent, conflicting wishes of a whole crowd of buyers and sellers and compress them into a single prediction — this price, this quantity — plus a rule for how that prediction moves when the world shifts. But the shifts so far were treated as given: demand moved by 20 thousand bushels, supply by 10 thousand, and we never asked how much price responds to a shift of a given size, or what it is about buyers and sellers that makes that response large or small. That question — how strongly quantity reacts to price, and why it matters for everything from farm policy to tax burdens — has a name and a measure. It is the subject of the next topic: Elasticity and Its Applications.

Check yourself

4 questions

  1. In the wheat market Qd=1004PQ_d = 100 - 4P and Qs=20+6PQ_s = -20 + 6P, suppose the price is sitting at $8, below the equilibrium of $12. What actually happens next, and why?

  2. Income rises and the new demand curve becomes Qd=1204PQ_d = 120 - 4P, with supply unchanged at Qs=20+6PQ_s = -20 + 6P. What is the new equilibrium price?

  3. A bad harvest shifts supply to Qs=30+6PQ_s = -30 + 6P while demand stays Qd=1004PQ_d = 100 - 4P. What is the new equilibrium quantity traded?

  4. Why does a demand-side shift move price and quantity in the same direction, while a supply-side shift moves them in opposite directions?