Professor Turing

Study guides

What is consumer surplus?

Last updated: 2026-11-26

Consumer surplus is the gap between what buyers would have been willing to pay and what they do pay, and on the standard diagram it is the area above the price line and below the demand curve. Wikipedia attributes the concept's fame to Alfred Marshall and states the area rule: triangular when the curves are straight lines, the region above the equilibrium price and below the demand curve. The definition is easy; the shading is where the marks go, because the area changes once a price control or tax enters the picture.

Start learning No account needed

1. Two definitions that say the same thing

Wikipedia's opening defines consumer surplus as "the monetary gain obtained by consumers because they are able to purchase a product for a price that is less than the highest price that they would be willing to pay." The same article then gives the working rule for a straight-line demand curve: CS = ½ × Qmkt × (Pmax − Pmkt), where Pmax is where the demand curve meets the price axis, Pmkt is the price, and Qmkt is the quantity actually purchased at that price. For curved demand, the article adds, the same area is a definite integral. Producer surplus mirrors it below the price line, above the supply curve.

The quantity matters: the area runs only over units actually traded. A price control can change both the price and the traded quantity, and then the area may no longer be a triangle.

2. A worked example: demand P = 20 − 2Q, supply P = 2Q

The output below comes from a short script, scripts/what-is-consumer-surplus-worked-example.py in the Professor Turing repository.

equilibrium: demand P = 20 - 2Q meets supply P = 2Q at Q = 5, P = 10
consumer surplus = 0.5 x 5 x (20 - 10) = 25.00
producer surplus = 0.5 x 5 x (10 - 0) = 25.00
total surplus = 50.00
integral check: integral of (20 - 2Q) from 0 to 5 = 75, minus spending 50 = 25.00
ceiling at P = 6: buyers want Q = 7, sellers offer Q = 3, traded Q = 3, shortage = 4
consumer surplus over traded units = 51.00 - 18.0 = 33.00
producer surplus over traded units = 18.0 - 9.00 = 9.00
total surplus = 42.00, down 8.00 from the free market's 50.00
as a trapezoid: rectangle 3 x 8 = 24.00 plus triangle 0.5 x 3 x 6 = 9.00, total 33.00
for comparison, the first 3 units at the free price: 51.00 - 30.0 = 21.00
wrong formula with the old quantity: 0.5 x 5 x (20 - 6) = 35.00
wrong shade out to the old quantity: 75 - 30 = 45.00, which counts 2 units that are not traded
test yourself: demand P = 12 - Q at price 4 -> Q = 8, consumer surplus = 0.5 x 8 x 8 = 32.00
checks passed

The market clears where 20 − 2Q = 2Q, at Q = 5 and P = 10. Buyers' triangle has base 5 (the units traded) and height 20 − 10 (the willingness-to-pay intercept down to the price), so 25.00. The integral check computes the same 25.00 by measuring the whole area under demand out to Q = 5, which is 75, and subtracting the 50 the buyers spent. Same area, two readings: formula first, integral as the check.

Now set a binding ceiling at P = 6. At that price buyers want 7 units and sellers offer 3, so 3 units trade and 4 go short. Consumer surplus exists only on traded units. Assume the 3 units go to the buyers who value them most (if others get them, consumer surplus is lower). The area under demand out to Q = 3 is 51.00 and buyers spend 18.00, so consumer surplus is 33.00. The shape is a trapezoid, a rectangle of 24.00 plus a triangle of 9.00. Producer surplus falls to 9.00 and total surplus to 42.00. The lost 8.00 is called deadweight loss. The Wikibooks supply-and-demand source works the same geometry in words: at a maximum price below equilibrium, the price line passes the supply curve at a quantity Qs smaller than the demand-side Qd, suppliers provide only Qs, and the gap is the shortage.

3. A common misconception: keep the old quantity when the price changes

One shortcut keeps the free-market quantity and puts the new price into the triangle formula: 0.5 × 5 × (20 − 6) = 35.00. Another shades under demand and above 6 all the way to Q = 5, which gives 45.00. Both count units 4 and 5, which sellers do not supply under the ceiling; the answer over the 3 traded units is 33.00. First read the traded quantity off the short side of the market, then find the area out to that quantity.

The paired mistake reads a rise in consumer surplus as a gain overall. Consumer surplus rises from 25.00 to 33.00, but producer surplus falls from 25.00 to 9.00, so total surplus falls from 50.00 to 42.00. The gains from trading units 4 and 5 are lost. Consumer surplus is one piece of the welfare picture, and the pieces can move in different directions.

4. Where it shows up

Surplus measures help compare policies. Wikipedia's article says producer surplus is used to find out how interventions such as taxes, subsidies and price controls affect producers, and that adding consumer surplus gives total economic surplus, a measure widely used for the efficiency and welfare effects of economic policies. When an exam question hands you a control or a tax, start by finding the quantity traded.

For the surrounding course, see how to study for an economics exam. For how practice checks work, see how to test yourself.

5. Test yourself

Close this page and work this one: demand P = 12 − Q, market price 4, with sellers supplying whatever buyers want at that price. Find the traded quantity, then the consumer surplus. Compare with the last script line: Q = 8 and surplus 32.00. If you reached for a different quantity, reread section 1 before going on; that hesitation is the part to study again.

What the sources found, and their limits

Wikipedia, "Economic surplus". It gives both definitions this page uses (the monetary gain against willingness to pay, and the triangular area above price and below demand for linear curves), the CS formula, the integral reading for curved demand, the producer-surplus mirror, Marshall's role in the concept's fame, the statement that producer surplus is used to trace how taxes, subsidies and price controls affect producers, the use of total surplus to measure efficiency and welfare, and the term deadweight loss. Source: Economic surplus, read on 2026-11-25.

Wikibooks, "Microeconomics/Supply and Demand". It describes consumer surplus as the gap between a good's price and a buyer's willingness to pay (with a hot-dog example), works the maximum-price geometry this page's ceiling case follows (at a binding maximum price the price line meets the supply curve at Qs, which is below the demand-side Qd, sellers supply only Qs, and the difference is the shortage), and illustrates who ends up holding the scarce units with its example of tickets resold at a markup. Source: Supply and Demand, read on 2026-11-25.

Wikipedia, "Price ceiling". It defines the ceiling as a limit on how high a price can be charged and collects real cases, including rent control and shortages attributed to ceilings. It includes a figure of the effects of a binding ceiling; the worked quantity rule on this page follows the Wikibooks passage. Source: Price ceiling, read on 2026-11-25.

Limits: two encyclopedia articles and one wikibook page, none of which works a linear-market surplus or a price ceiling with these numbers. The assumption that scarce units go to the buyers who value them most, the demand and supply equations, the ceiling case and the figures on this page are ours, chosen so the arithmetic stays in whole numbers; the welfare reading of the 8.00 gap follows Wikipedia's economic-surplus article, which names total surplus a measure used for efficiency and welfare effects.

How Professor Turing helps

Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start.

Bring a diagram you cannot shade, such as a market with a tax or a floor added. Its first reply asks what you already know before it teaches anything. If you answer with a bare guess, it asks how you got there instead of saying right or wrong, and when you stay stuck it changes its approach and makes the next step smaller instead of handing over the answer. Later in a session it can offer a short test without help, scored apart from the tutoring, so you can tell what you can do alone from what the tutor carried you through. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.

FAQ

Why does a price ceiling not simply hand buyers the whole difference? Because fewer goods get traded. In the example on this page, a ceiling at 6 leaves sellers offering 3 units against 7 that buyers want, so only 3 units change hands. If those units go to the buyers who value them most, consumer surplus rises from 25.00 to 33.00, but total surplus falls from 50.00 to 42.00, and the 8.00 gap is value the market stopped creating. If other buyers get the units, consumer surplus is lower. Who gets scarce goods is a real question, which the Wikibooks source illustrates with its example of scarce tickets resold at a markup.

Is consumer surplus money the buyer keeps? It is a measure of benefit, stated in money units. The buyer did pay the full price; the surplus says the purchase was worth more to them than what they paid, by the gap between the demand curve and the price line. Nothing extra changes hands, which is why the number shows up in welfare comparisons rather than in anyone's account balance.

Start with what you're working on

Tell the tutor which market you are shading and let it ask you the questions.

Start learning No account needed

See also: how to study for an economics exam · what is supply and demand · all study guides