Interactive LabEconomics
Supply and Demand Lab
Move the demand and supply curves, or try a real-world scenario, and see how the equilibrium price and quantity respond. Set a price away from equilibrium to create a shortage or a surplus.
Live Interactive Sandbox · Runs 100% locally in your browser
Safe fictional data · Reset any timeDemand (D)Supply (S)Dashed faint lines: starting curves
Change in quantity demanded at every price.
Change in quantity supplied at every price.
Try setting a price above or below equilibrium.
Try a scenario
What the model shows
Equilibrium price
$10
Equilibrium quantity
60 units
Elasticity at equilibrium
-0.67
- Both curves are in their starting positions.
- At $10, buyers want 60 units and sellers offer 60 units. The market clears: there is no shortage or surplus.
- Demand at equilibrium is inelastic: quantity responds less than proportionally to price.
Show the data as a table
| Price | Quantity demanded | Quantity supplied |
|---|---|---|
| $0 | 100 | 10 |
| $5 | 80 | 35 |
| $10 | 60 | 60 |
| $15 | 40 | 85 |
| $20 | 20 | 110 |
| $25 | 0 | 135 |
Simplified linear learning model: demand Q = 100 − 4P, supply Q = 10 + 5P. Real markets are not this tidy.
Lab guide & concepts
What to try
- Increase demand. Both the equilibrium price and quantity rise.
- Decrease supply. The price rises but the quantity traded falls.
- Increase demand and supply together. Quantity rises, but the effect on price depends on which shift is bigger.
- Set a price below equilibrium, as a price ceiling would. Buyers want more than sellers offer, so a shortage appears.
About this model
The lab uses straight-line demand and supply curves so that the cause and effect are easy to see. Real demand and supply curves are rarely straight, shift for many reasons at once, and are estimated from imperfect data. Use the lab to build intuition, then read thesupply and demand lesson for the fuller picture.