| HowItWorksLab · Simulators
English

Supply & Demand Curve

Two straight lines set the price where a market clears. Slide demand or supply and watch the crossing point, the price and the two surplus triangles all move together.

0 150 300 450 600 750 0 25 50 75 100 Quantity Q Price P Demand D Supply S Consumer surplus Producer surplus E Qe Pe
Equilibrium quantity Qₑ
350
Equilibrium price Pₑ
45
Total surplus
—
What happens, in order Demand shift → Supply shift → Curves move → Equilibrium → Surplus
Display mode

Detailed Explanation

What is a supply and demand model?

It is the simplest picture of a market. A downward demand line says buyers want less at higher prices; an upward supply line says sellers offer more at higher prices. Their crossing is the equilibrium, the one price at which the market clears.

This simulator draws both lines on a price-and-quantity chart and lets you slide them, so you can see how the equilibrium responds to a change in the market.

Why look at it?

Shifts happen constantly: incomes change, tastes change, costs change. The model predicts the direction the price and quantity should move when a curve shifts, without tracking individual shoppers.

Two ideas matter most: moving one line changes both price and quantity, and the gaps between the price line and each curve measure the value buyers and sellers gain from trading.

Components & their role

1. The axes frame the market

Quantity runs along the horizontal axis and price up the vertical one. Every pair of numbers on the chart is one possible deal between buyers and sellers.

2. Demand and supply are drawn

The red demand line falls from top-left to bottom-right, and the blue supply line climbs from bottom-left to top-right. Their slopes set how strongly buyers and sellers respond to price.

3. A slider slides a whole line

The demand slider lifts or lowers the demand line; the supply slider slides the supply line. Each one is a shift of the whole curve, not a move along it.

4. The crossing point moves

Wherever the two lines meet is the new equilibrium. Dashed guides carry that point down to the equilibrium quantity Qe and across to the price Pe on the axes.

5. The surplus triangles redraw

The red triangle above the price line is consumer surplus and the blue triangle below it is producer surplus. Both are rebuilt around the new equilibrium, and their combined area is the total surplus readout.

What does the equilibrium point show?

It is where the demand and supply curves cross. At that price the quantity buyers want equals the quantity sellers offer, so the market clears.

What is a shift of the demand curve?

It is a change in how much people want at every price, such as a rise in incomes. The whole curve moves; it is not the same as moving along the curve.

What is a shift of the supply curve?

It is a change in how much sellers offer at every price, such as a fall in production costs. The curve slides left or right as the slider changes.

What is consumer surplus?

It is the area under the demand curve and above the price line: the extra value buyers get because they pay less than they were willing to. Shown as the red triangle.

What is producer surplus?

It is the area above the supply curve and below the price line: the extra sellers receive above the least they would accept. Shown as the blue triangle.

Why is total surplus used as a measure?

Adding the two triangles gives total surplus, a simple gauge of how much value the trade creates at the current market price.

Common Misconceptions

Moving along a curve and shifting it are the same thing. People use "demand changed" for both.
A shift moves the whole line. A price change moves you along the curve; a shift moves the entire curve to a new position.
More demand always means a higher quantity at the same price. Buyers simply get more of the good.
Price and quantity both change. A demand shift raises price and quantity together; the new crossing sets both.
Surplus is money left over in the market. It sounds like cash sitting unspent.
Surplus is value gained from trade. It measures the benefit to buyers and sellers, not a pile of money.
The equilibrium is set by the government or a seller. Someone must be choosing that price.
It falls out of the two curves. The crossing price emerges from how much is wanted and offered, not from a single decision.
Disclaimer: Diagrams are heavily simplified for educational demonstration only. Real-world systems contain far more variables and complexity. Not for engineering production use. Not financial, political or professional advice. Economic models here are simplified for teaching and are not investment or financial advice.