MicroeconomicsConsumer SurplusProducer SurplusDeadweight LossSupply and Demand

Consumer and Producer Surplus Explained (With a Worked Example)

·8 min read
Jude Wallis

Jude Wallis

Founder of EconLearn · 2nd place internationally, Economics Olympiad (econolympiad.org)

Consumer surplus is the difference between the most a buyer was willing to pay for a good and the price they actually paid. Producer surplus is the difference between the price a seller received and the lowest price they would have been willing to accept. Add the two together and you get total surplus, the standard measure of how much value a market creates. On a supply and demand graph both are areas you can read off directly: consumer surplus is the region under the demand curve and above the market price, and producer surplus is the region above the supply curve and below the market price.

This guide defines each one precisely, shows how to calculate them with a worked triangle-area example using real numbers, and connects them to deadweight loss, the concept that intro-micro and AP exams almost always pair with surplus.

What consumer surplus measures

Every buyer in a market has a willingness to pay, the maximum price they would hand over rather than go without the good. The demand curve is really just a lineup of those willingness-to-pay values, sorted from highest to lowest. The person at the top of the demand curve values the good the most; each buyer further down the curve values it a little less.

When a market settles on a single price, everyone whose willingness to pay is above that price still buys, and each of them pockets the gap between what they would have paid and what they actually paid. That gap, summed across all buyers, is consumer surplus. It is the value consumers get from a market beyond what they spend. If you would have paid $30 for a pair of headphones and the store charges $18, you personally captured $12 of consumer surplus on that purchase.

What producer surplus measures

Producer surplus is the mirror image. Every seller has a minimum acceptable price, usually tied to their marginal cost of making one more unit. The supply curve lines those costs up from lowest to highest. A seller whose cost is below the market price is happy to produce, and they keep the difference between the price they receive and their cost.

Summed across all sellers, that difference is producer surplus: the benefit producers get from selling at the market price instead of their bare minimum. It is closely related to, though not identical to, profit, because in the short run producer surplus does not subtract fixed costs. On the graph it is simply the area above the supply curve and below the price line.

Reading surplus off a supply and demand graph

Draw a standard downward-sloping demand curve and upward-sloping supply curve. They cross at the equilibrium price and quantity. Now find the three reference points you need:

  • The choke price, where demand hits the vertical axis (the highest willingness to pay).
  • The equilibrium price, where the two curves cross.
  • The supply intercept, where supply hits the vertical axis (the lowest acceptable price).

Consumer surplus is the triangle bounded by the demand curve on top, the price line on the bottom, and the vertical axis on the left. Producer surplus is the triangle bounded by the price line on top, the supply curve below, and the vertical axis on the left. Because AP-style graphs use straight lines, both regions are right triangles, so you can find their area with one formula: area = 0.5 times base times height.

You can watch both regions grow and shrink as the curves move in the interactive supply and demand sandbox. Shifting demand right, for example, raises price and quantity and enlarges producer surplus, which makes the mechanics concrete in a way a static picture cannot.

Worked example with numbers

Suppose a market has these linear curves, with price P in dollars and quantity Q in units:

  • Demand: P = 20 - 2Q
  • Supply: P = 2 + Q

Step 1: Find equilibrium. Set demand equal to supply:

20 - 2Q = 2 + Q, so 18 = 3Q, giving Q = 6 and P = 8.

At equilibrium, 6 units trade at $8 each.

Step 2: Find the reference prices. The choke price is demand at Q = 0, which is P = 20. The supply intercept is supply at Q = 0, which is P = 2.

Step 3: Calculate consumer surplus. The consumer surplus triangle has a height equal to the choke price minus the equilibrium price, and a base equal to the equilibrium quantity:

  • Height = 20 - 8 = 12
  • Base = 6
  • Consumer surplus = 0.5 times 6 times 12 = $36

Step 4: Calculate producer surplus. The producer surplus triangle has a height equal to the equilibrium price minus the supply intercept, and the same base:

  • Height = 8 - 2 = 6
  • Base = 6
  • Producer surplus = 0.5 times 6 times 6 = $18

Step 5: Total surplus. Add them: 36 + 18 = $54. This is the total value the market creates at equilibrium, and no other price or quantity produces a larger number. That last fact is the whole reason economists treat the competitive equilibrium as efficient.

If you want to check your own numbers on a different set of curves, the consumer surplus calculator and producer surplus calculator walk each step with the arithmetic shown, and the full calculate hub covers the rest of the quantitative micro toolkit.

How surplus connects to deadweight loss

Here is the payoff, and the reason surplus is worth mastering. At the competitive equilibrium, total surplus is as large as it can possibly be, because every unit whose value to a buyer exceeds its cost to a seller actually gets traded. Anything that pushes the market away from that quantity, a tax, a price ceiling, a price floor, a monopoly restricting output, causes some of those mutually beneficial trades to stop happening.

The value of those lost trades does not go to consumers, producers, or the government. It simply disappears. That vanished surplus is deadweight loss, and on the graph it shows up as a triangle between the demand and supply curves over the range of units that are no longer traded. In other words, deadweight loss is the shrinkage in the combined consumer-plus-producer surplus that you just learned to measure.

Take the example above and impose a $6 per-unit tax. Quantity falls below 6, the consumer surplus triangle gets smaller, the producer surplus triangle gets smaller, part of what remains becomes government tax revenue (a transfer, not a loss), and the leftover gap is deadweight loss. For the full mechanics, including a step-by-step tax calculation and the monopoly and price-control cases, work through the companion guide on what deadweight loss is.

Common mistakes to avoid

Confusing surplus with the price itself. Surplus is never the price. It is the gap between value and price. A low price is not automatically high consumer surplus if buyers valued the good barely above that price.

Forgetting to use the choke price and intercept. The triangle heights come from those axis points, not from the equilibrium alone. Sketch the graph and label all three prices before you plug numbers in.

Treating a transfer as a loss. When a tax moves surplus from buyers and sellers to the government, that portion is redistributed, not destroyed. Only the untraded units count as deadweight loss.

Assuming producer surplus equals profit. In the short run producer surplus ignores fixed costs, so it usually overstates true economic profit. The two coincide only when there are no fixed costs.

Master these areas and you have the core of welfare analysis in microeconomics. Once you can find consumer surplus, producer surplus, and the deadweight loss triangle on any linear graph, most exam questions about taxes, subsidies, price controls, and monopoly become variations on the same picture.

Frequently asked questions

What is consumer surplus in simple terms?

Consumer surplus is the difference between the most a buyer was willing to pay for a good and the price they actually paid, summed across all buyers. On a supply and demand graph it is the area under the demand curve and above the market price. If you would have paid $30 for headphones and bought them for $18, you gained $12 of consumer surplus.

How do you calculate consumer surplus?

On a linear demand curve, consumer surplus is a triangle: area equals 0.5 times base times height. The base is the quantity traded and the height is the choke price (where demand meets the vertical axis) minus the market price. For demand P = 20 - 2Q with equilibrium at Q = 6 and P = 8, consumer surplus is 0.5 times 6 times (20 - 8), which equals $36.

What is the difference between consumer surplus and producer surplus?

Consumer surplus is the benefit buyers get, the gap between willingness to pay and the price, shown as the area under the demand curve and above the price. Producer surplus is the benefit sellers get, the gap between the price received and their minimum acceptable price, shown as the area above the supply curve and below the price. Together they make up total surplus.

How are consumer and producer surplus related to deadweight loss?

At the competitive equilibrium, consumer plus producer surplus (total surplus) is at its maximum. A tax, price control, or monopoly reduces the quantity traded, shrinking both surpluses. The lost surplus that goes to no one, not buyers, sellers, or the government, is deadweight loss, shown as a triangle between the demand and supply curves over the untraded units.

Why is total surplus maximized at equilibrium?

At the equilibrium quantity, every unit whose value to a buyer exceeds its cost to a seller gets produced and traded, so no beneficial trade is left on the table. Producing less would forgo valuable trades, and producing more would mean making units that cost more than buyers value them. Either move lowers total surplus, so the equilibrium is efficient.

Ready to study?

EconLearn has interactive graphs, 398 practice questions, and flashcards for every AP Economics topic.

Start Learning Free

Get new study guides in your inbox

Occasional emails with new posts, study tips, and exam-season reminders. Free, no spam.

No spam. Unsubscribe anytime.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, EconLearn.