Supply and Demand Graph Maker

Set linear demand and supply, shift the curves, and see equilibrium, surpluses, price ceilings and floors, taxes and subsidies on a shaded graph with working.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Set the curves

    Enter the demand and supply intercepts and slopes.

  2. 2
    Read the equilibrium

    See the price, quantity and surpluses on the graph.

  3. 3
    Shift a curve

    Use the shift buttons and compare with the dashed original.

  4. 4
    Add a policy

    Choose a ceiling, floor, tax or subsidy and set its value.

  5. 5
    Follow the algebra

    Read the steps for each result.

  6. 6
    Practise

    Use the Practice tab for equilibrium, surplus and tax questions.

About this tool

Supply and demand diagrams are the backbone of introductory economics, from IGCSE and A level to first-year university. Students need to draw them, shift them, read the new equilibrium and shade areas for consumer surplus, producer surplus, tax revenue and deadweight loss. This graph maker does that with real numbers. Enter linear demand and supply curves as P = a − bQ and P = c + dQ, and the equilibrium price and quantity are calculated and marked. Buttons shift demand or supply left and right, with the original curves shown dashed. Choose a policy: a price ceiling or floor shows the shortage or surplus and the deadweight loss; a per-unit tax or subsidy shifts supply and shows the price buyers pay, the price sellers keep, the revenue or cost, the share of the burden on each side and the deadweight loss. Every result comes with the algebra.

Who it is for

Economics students at IGCSE, A level, IB and university, and teachers who want accurate diagrams for slides and worksheets.

The model

Demand slopes down: P = a − bQ, where a is the price at which nobody buys and b the slope. Supply slopes up: P = c + dQ. Setting them equal gives Q* = (a − c) ÷ (b + d) and P* from either curve. Consumer surplus is the triangle between the demand curve and the price; producer surplus the triangle between the price and the supply curve.

Shifts

An increase in demand (more income for a normal good, a rise in the price of a substitute, a change in tastes) moves the demand curve right, raising both price and quantity. An increase in supply (cheaper inputs, better technology) moves supply right, lowering price and raising quantity. The tool shifts a curve by 10 price units at each press; Set as starting point keeps the new position as the reference.

Price controls

A price ceiling below equilibrium, such as rent control, creates a shortage: quantity demanded exceeds quantity supplied, and only the smaller amount is traded. A price floor above equilibrium, such as a minimum price, creates a surplus. Both reduce total surplus, and the lost part is the deadweight loss shaded in red.

Taxes and subsidies

A per-unit tax on sellers shifts supply up by the tax. Buyers pay more, sellers keep less, the government collects the tax on each unit sold, and the quantity falls. The side with the less elastic (steeper) curve bears more of the tax. A subsidy works in reverse.

Worked example

Demand P = 100 − 2Q and supply P = 10 + Q give Q* = 30 and P* = 40, consumer surplus 900 and producer surplus 450. A tax of 9 per unit cuts the quantity to 27: buyers pay 46, sellers keep 37, tax revenue is 243, buyers bear two thirds of the tax because demand is steeper, and the deadweight loss is 13.5.

Limits

The model uses straight-line curves and a single competitive market, the standard textbook case. Real markets have curved demand, market power, externalities and time lags that this tool does not model. Elasticity is reported at the equilibrium point only, because it changes along a straight line.

Worked example

P = 100 − 2Q, P = 10 + Q: Q* 30, P* 40; tax of 9 → Q 27, buyers 46, sellers 37, revenue 243, DWL 13.5.

Quick facts

Frequently asked questions

How is the equilibrium found?

Set the demand price equal to the supply price and solve for Q, then put Q back into either equation for P.

What is consumer surplus?

The difference between what buyers would be willing to pay and what they actually pay, shown as the triangle under demand and above the price.

What does a price ceiling do?

If set below equilibrium it creates a shortage, because more is demanded than supplied at the controlled price.

Who pays a tax?

Both sides share it. The side with the steeper (less elastic) curve pays the larger share, whoever the law says pays.

What is deadweight loss?

The total surplus lost because fewer units are traded than at the free-market equilibrium.

Can I use non-linear curves?

No. The tool uses straight lines, which are what most exam questions use.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages