Saved

Press the star next to a tool's name to save it.

All my tools

Consumer Surplus Calculator

Use this consumer surplus calculator to find buyers' gain from a market with straight-line demand, plus producer surplus and total surplus from the supply curve.

Restored your last values ·

units
More options

For a straight-line demand curve, the highest price is where the curve meets the price axis. Add the supply curve's starting price to see producer surplus and total surplus too.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Fill in the boxes and press Calculate.

See full result

A consumer surplus calculator measures how much buyers gain from a market: the difference between what they would have been willing to pay and what they actually pay, added up over everyone who buys. Enter the highest price anyone would pay, the market price and the quantity bought. The calculator shows the consumer surplus and the total spending, and if you add the lowest price any seller would accept, it also shows producer surplus and total surplus.

What consumer surplus is

Wikipedia's Economic surplus article defines consumer surplus as the difference between the maximum price a consumer is willing to pay and the actual price they do pay. Someone who would have paid $45 for a ticket that costs $20 gains $25 of surplus. Adding these gains for every buyer gives the consumer surplus of the whole market. Producer surplus is the mirror image: the amount producers benefit by selling at a market price higher than the least they would be willing to sell for.

The consumer surplus formula

Consumer surplus = ½ × quantity × (highest price − market price)
Producer surplus = ½ × quantity × (market price − lowest price)
Total surplus = consumer surplus + producer surplus

With a straight-line demand curve, consumer surplus is the triangle below the demand curve and above the market price. Wikipedia gives the formula as one half times the quantity bought times the difference between the price where demand meets the price axis and the market price. Producer surplus is the triangle below the market price and above the supply curve, so with a straight-line supply curve it is one half times the quantity times the difference between the market price and the supply curve's starting price.

How to use the consumer surplus calculator

  1. Enter the highest price on the demand curve, where quantity demanded would be zero.
  2. Enter the market price that buyers actually pay.
  3. Enter the quantity bought at that price.
  4. Optionally enter the lowest price sellers accept, where the supply curve starts.
  5. Press Calculate.

Worked example

In a market for concert tickets, demand falls to zero at $50, the market price is $20 and 300 tickets are sold. Consumer surplus is ½ × 300 × ($50 − $20) = $4,500. If the supply curve starts at $5, producer surplus is ½ × 300 × ($20 − $5) = $2,250, and total surplus is $6,750. Buyers spend $6,000 in total, but they value what they get at $4,500 more than that.

Why economists measure surplus

Surplus puts a money value on how well a market serves the people in it. Comparing surplus before and after a change, such as a tax, a price cap or a new competitor, shows who gains, who loses and whether the market as a whole is better or worse off. A tax, for example, raises the price buyers pay and lowers the price sellers receive, shrinking both surpluses; part of the loss goes to the government as revenue, and the rest, called deadweight loss, is lost to everyone.

How price changes surplus

Highest priceMarket priceQuantityConsumer surplus
$50$20300$4,500
$50$30200$2,000
$50$10400$8,000
$100$401,200$36,000

In the first three rows, a lower price brings more buyers in and gives every existing buyer a bigger gain, so consumer surplus grows quickly as the price falls. For percentage changes between scenarios, use the percentage calculator.

Finding the figures

In textbook problems the demand and supply curves are given as equations, such as P = 50 − 0.1Q. The highest price is the constant term, 50, and the quantity at any price follows from the equation: at a price of 20, Q = 300. In real markets the curves are estimated from data, so the result is an approximation. Surveys of willingness to pay are one way businesses estimate the demand curve for a new product.

Consumer surplus and pricing

Businesses think about consumer surplus when they set prices, even if they do not use the term. A single price leaves surplus with every buyer who would have paid more. Discounts for some groups, different versions of a product at different prices, and early-bird and late tickets are all ways sellers try to capture part of that surplus by charging people closer to what they are willing to pay. From the buyer's side, comparing what you would have paid with what you did pay is a simple way to judge whether a purchase was good value.

Changes in surplus

To see the effect of a price change, run the calculator twice with the old and new figures and compare the results. In the table above, a fall in price from $20 to $10 raises consumer surplus from $4,500 to $8,000. Part of the gain goes to buyers who were already buying, who now pay less, and part to new buyers who come into the market at the lower price.

Common mistakes

  • Forgetting the half. With straight-line curves the surplus is a triangle, not a rectangle.
  • Using a quantity from a different price. The quantity must be the amount bought at the market price.
  • Mixing up the intercepts. The demand intercept is the highest price; the supply intercept is the lowest.

What next

Use this often? Add Consumer Sur to your Home screen.

Frequently asked questions

How does a consumer surplus calculator work?

It multiplies half the quantity bought by the difference between the highest price on the demand curve and the market price.

What is the consumer surplus with a $50 top price, $20 market price and 300 units?

½ × 300 × $30 = $4,500.

What is producer surplus?

The gain sellers make by selling at a market price above the least they would accept. With straight-line supply it is ½ × Q × (P − lowest price).

What is total surplus?

Consumer surplus plus producer surplus: the total gain to buyers and sellers from the market.

Does the formula work for curved demand?

No. It assumes a straight-line demand curve. With a curve, the surplus is the area under the actual curve.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools