Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Supply & demand simulator

Move supply and demand curves and see the market price change, who really pays a tax, and what price ceilings and floors do to a market.

Demand: price = a − b × quantity
Supply: price = c + d × quantity

(more buyers, higher incomes, a fashion…)

(up = costs rise, down = cheaper to make)

consumer surplus   producer surplus   tax raised   deadweight loss (lost to everyone)

How to use

  1. Pick an example market, or type your own straight-line demand and supply.
  2. The chart shows where they cross: the market price and quantity. Shaded areas show how much buyers and sellers gain from trading.
  3. Drag Shift demand or Shift supply and watch the price and quantity move.
  4. Choose a tax to see who really pays it, or a price ceiling or floor to see the shortage or surplus it creates.

Keyboard and touch

TabMove between boxes, sliders and lists
← →Move a shift slider
EnterUpdate after typing a number

Tips

  • More demand raises both price and quantity; more supply lowers the price but raises the quantity.
  • A tax is shared: whoever is less flexible (the steeper line) pays the bigger part, whatever the law says about who hands it over.
  • A maximum price only matters if it is below the market price; then buyers want more than sellers offer, so there is a shortage.
  • A minimum price only matters above the market price; then sellers offer more than buyers want, a surplus.
  • Deadweight loss is the trade that no longer happens: value lost to buyers and sellers that nobody gains.

About this simulator

It uses straight-line (linear) demand and supply, as in introductory economics. The equilibrium is where a − bQ = c + dQ. Surplus and deadweight loss are the areas of the triangles and rectangles on the chart. A tax of t per unit moves the supply line up by t; elasticities are measured at the equilibrium point.

Real markets have curved lines, time lags and many other effects, so this is a model for learning, not a forecast. The tests check every result against formulas worked out with exact fractions in Python.

Everything runs on your device.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product