b2KIT

Supply & Demand Curve Simulator

Shift supply and demand curves and see equilibrium price and quantity adjust. Explore elasticity, surplus, and price controls.

Tested tool guide Tested browser tools Checked August 16, 2026

What Supply & Demand Curve Simulator does, with a checked example

Set up a market as two lines - demand sloping down, supply sloping up - and this tool draws both, finds where they cross, and reports the equilibrium price and quantity that clear the market. Drag a curve, change a slope, or impose a price control, and it recomputes the crossing along with elasticity at the equilibrium and the consumer and producer surplus triangles. The thing most people get wrong: a ceiling set below equilibrium does not make the good cheaper for everyone. It chokes off supply, and the quantity actually traded falls - which is exactly what the policy debate is about.

Worked example

A concrete input and expected output from the current implementation.

Input

Demand: Qd = 100 - 2P. Supply: Qs = 10 + 3P. Then add a price ceiling at 12.

Expected output

Equilibrium price 18, quantity 64. With the ceiling at 12: quantity demanded 76, quantity supplied 46, so 46 units trade and the shortage is 30. Elasticity of demand 0.56 (inelastic), of supply 0.84.

Setting Qd = Qs gives 100 - 2P = 10 + 3P, so P* = 18; substituting back, Q* = 64 in both curves. At a ceiling of 12, supply is the binding side: 46 offered against 76 wanted, hence a 30-unit shortage.

How the result is produced

1

Finding the equilibrium

Each curve is a function of price: demand falls as price rises, supply rises as price rises, and the equilibrium is the price where the two quantities are equal - the crossing point on the chart. With linear curves, the tool solves two equations in two unknowns, plots the intersection, marks price and quantity on the axes, and reports the surplus triangles and elasticity at that point.

2

Price controls and which side binds

A ceiling or floor binds only on the wrong side of the equilibrium price: a ceiling below it, a floor above it. When a control binds, the quantity traded is the smaller of what buyers want and what sellers offer at the controlled price - a shortage under a ceiling, a surplus under a floor. The tool shades the gap and recomputes the surplus, exposing the deadweight loss.

Good uses

  • Exam prep: check whether a shift in income, tastes, or input costs raises or lowers equilibrium price and quantity before committing to an answer on a problem set.
  • Policy homework: model a rent-control ceiling or minimum-wage floor and see the resulting shortage or surplus, the quantity actually traded, and how much surplus disappears.
  • Elasticity intuition: build steep and flat demand curves and compare how far the equilibrium quantity moves for the same supply shift - or how the surplus divides between buyers and sellers.

Limits and checks

  • A change in the good's own price is a move along a curve, not a shift. If you drag a curve to answer 'what if the price rises?', you are modeling a change in tastes or costs instead, and the equilibrium you get answers a different question.
  • Controls that do not bind change nothing. A ceiling set above the equilibrium price (or a floor below it) leaves the market untouched; no visible change is the correct result, not a frozen tool.
  • Elasticity is a magnitude and it varies along the curve. The value reported is the absolute value at the equilibrium point - the underlying slope is negative for demand - and the inelastic-elastic boundary is 1, so 0.56 is inelastic while 1.4 is elastic.

Common questions

I set a price ceiling below the equilibrium and the tool shows fewer units trading. Shouldn't a lower price sell more?

Only if supply can respond. At a ceiling of 12 in the example market, buyers want 76 units but sellers offer only 46, so 46 change hands - supply, not demand, is the binding side, and the 30-unit gap is the shortage. The good is cheaper only for the buyers who still get it, and total surplus falls by the deadweight loss.

Why is my demand elasticity positive when demand slopes down?

Demand's elasticity is quoted as an absolute value, so the tool shows a positive number even though the underlying slope is negative - that is why price and quantity move in opposite directions. The number is the size of the response, and 1 is the boundary: below 1 inelastic, above 1 elastic. Total revenue peaks where elasticity equals 1 on a linear demand curve.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools