Study and Productivity

Supply and Demand Diagrams: Equilibrium, Shifts and Taxes

A clear guide to supply and demand diagrams: finding equilibrium, shifting curves, consumer and producer surplus, price controls and the effects of a tax.

Saizul Amin
Saizul Amin3 Nov 2026 · 3 min read
Supply and Demand Diagrams: Equilibrium, Shifts and Taxes

Supply and Demand Diagrams: Equilibrium, Shifts and Taxes

Supply and demand diagrams appear in nearly every economics exam, and they can be drawn with numbers as well as shapes. This guide explains how to find the equilibrium, how shifts work, what consumer and producer surplus measure, and how price controls and taxes change a market. Each idea can be explored in the free supply and demand graph maker.

The two curves

The demand curve shows how much buyers want at each price. It slopes down: at lower prices people buy more. The supply curve shows how much sellers offer at each price. It slopes up: higher prices make production more worthwhile. With straight lines, demand can be written P = a − bQ and supply P = c + dQ.

Equilibrium

The market settles where the curves cross, because there quantity demanded equals quantity supplied. Set the two equations equal and solve. With demand P = 100 − 2Q and supply P = 10 + Q, you get 100 − 2Q = 10 + Q, so Q = 30 and P = 40.

Shifts versus movements

A change in the good's own price moves you along a curve. A change in anything else shifts the whole curve. Demand shifts right when incomes rise (for normal goods), when a substitute gets dearer, when a complement gets cheaper or when tastes change. Supply shifts right when costs fall or technology improves. In an exam, always say which curve shifts, in which direction and why, then state the new equilibrium price and quantity.

Consumer and producer surplus

Consumer surplus is the gap between what buyers would have paid and what they actually pay: the triangle under the demand curve and above the price. Producer surplus is the gap between the price and sellers' costs: the triangle above the supply curve and below the price. In the example, consumer surplus is ½ × 30 × (100 − 40) = 900 and producer surplus ½ × 30 × (40 − 10) = 450.

Price ceilings and floors

A price ceiling is a legal maximum price. If set below equilibrium, as with some rent controls, quantity demanded exceeds quantity supplied: a shortage. At a ceiling of 30 in the example, buyers want 35 units but sellers offer only 20. A price floor is a legal minimum, such as a minimum price for alcohol or a minimum wage in a labour market. Set above equilibrium, it causes a surplus. Both reduce the quantity traded and create a deadweight loss: surplus that nobody gets.

Taxes and who pays them

A tax per unit on sellers shifts the supply curve up by the tax. The new equilibrium has a higher price for buyers, a lower price kept by sellers and a smaller quantity. With a tax of 9 in the example, the quantity falls to 27, buyers pay 46 and sellers keep 37. The government collects 9 × 27 = 243. Buyers bear 6 of the 9 (two thirds) because demand is steeper than supply here. The general rule: the side with the less elastic curve bears more of the tax, whoever legally pays it. The deadweight loss is the triangle ½ × 9 × 3 = 13.5.

A subsidy works the other way: supply shifts down, buyers pay less, sellers receive more and the government pays the cost.

Drawing good diagrams

Label the axes (price and quantity), label each curve, mark the original and new equilibrium with dotted lines to the axes, and shade areas clearly. Draw shifted curves parallel to the originals. The graph maker shows original curves as dashed lines, which is a good habit to copy.

Practice

The practice tab asks for equilibrium quantities, consumer surplus and prices after a tax, with the algebra shown after each answer.

Limits

The model uses straight lines and a single competitive market. Real markets can have curved demand, firms with market power, externalities and slow adjustment, which simple diagrams do not capture.

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