Tutorials › VEE Economics › Total Surplus and Gains From Trade

VEE Economics · Surplus and Economic Efficiency · Tutorial 403 of 998

Total Surplus and Gains From Trade

Learn to calculate consumer, producer, and total surplus and test whether a proposed trade creates a net gain.

Intermediate 9 min read

What You'll Learn

  • Define consumer surplus, producer surplus, and total surplus for completed trades
  • Derive why the payment between buyer and seller cancels from total surplus
  • Calculate surplus from willingness to pay, seller costs, and transaction prices
  • Identify when a trade creates positive, zero, or negative gains
  • Check the assumptions behind using private gains from trade to assess efficiency

Why Add Consumer and Producer Surplus?

A transaction has two sides: the buyer gives up money and receives a good or service; the seller gives up the good or service and receives money. Looking only at the payment does not reveal whether the transaction benefits the participants overall. To assess that, compare what the buyer is willing to pay with the seller’s opportunity cost.

The earlier material on consumer surplus and producer surplus defines the gains on each side of a transaction. Adding them gives total surplus. In a simple market without external costs or benefits, this sum measures the net gains created by the trades that actually occur. It also makes clear why a trade can create value even though its payment is a cost to the buyer and revenue to the seller: the payment is transferred between them, not used up.

Definition: For a completed trade, consumer surplus is the buyer’s willingness to pay minus the amount paid. Producer surplus is the amount received by the seller minus the seller’s opportunity cost of supplying the good. Total surplus is the sum of consumer and producer surplus. For a set of trades, add the surplus from each trade.

For one buyer with willingness to pay \(v\), one seller with opportunity cost \(c\), and transaction price \(p\), the definitions are

$$ CS=v-p,\qquad PS=p-c,\qquad TS=CS+PS. $$

Here \(CS\), \(PS\), and \(TS\) denote consumer, producer, and total surplus. Willingness to pay is the greatest amount the buyer would voluntarily pay for the unit. Opportunity cost is the value of the resources the seller gives up by supplying it. In a simple model with no other costs of completing the transaction, both are measured in the same monetary units.

Why the Payment Cancels

Substitute the two definitions into total surplus:

$$ TS=(v-p)+(p-c)=v-c. $$

The buyer’s payment \(p\) is subtracted when calculating consumer surplus and added when calculating producer surplus. Those equal and opposite terms cancel. The remaining amount, \(v-c\), is the net gain from the trade: the buyer values the unit by \(v\), while supplying it uses resources worth \(c\).

This also gives a direct test of whether a trade creates gains. If \(v>c\), then \(v-c>0\): the buyer values the unit more than the seller’s opportunity cost, so a price can potentially be found at which both sides benefit. If \(v=c\), the trade creates zero total surplus. If \(v<c\), the trade reduces total surplus, even if a transfer between the parties could make one side appear to benefit.

Result: Under the simple model, a voluntary trade can give both parties nonnegative surplus only if \(v\geq p\geq c\). Such a price exists when \(v\geq c\). A strictly positive gain from trade requires \(v>c\). For several completed trades, total surplus equals the sum of buyers’ willingness to pay minus the sum of sellers’ opportunity costs.

The condition describes the potential for mutually beneficial exchange, not a guarantee that a trade will happen. The parties must find one another, agree on terms, and be able to complete the exchange. The simple calculation also assumes that the stated opportunity cost includes all relevant costs of supplying the good and that there are no effects on people outside the transaction. If those assumptions fail, private consumer and producer surplus may not capture all the gains or costs to society.

Worked Examples

Worked Example: Adding Surplus Across Three Trades

A hypothetical market has three buyers with willingness to pay of $72, $58, and $43 per unit, and three sellers with opportunity costs of $12, $28, and $38 per unit. Each unit sells for $40. Assume each buyer and seller can trade at most one unit, the highest-valued buyers are matched with the lowest-cost sellers, and there are no other costs or external effects. Find the quantities demanded and supplied at this price, then calculate consumer, producer, and total surplus.

Method. First compare each buyer’s willingness to pay with the $40 price. The $72 and $58 buyers are willing to buy; the $43 buyer is also willing to buy. Thus, quantity demanded is 3 units. Next compare each seller’s cost with $40. Costs of $12, $28, and $38 are all no greater than the price, so quantity supplied is also 3 units. All three units trade under the stated assumptions.

For the buyers, the individual surpluses are:

$$ 72-40=32,\qquad 58-40=18,\qquad 43-40=3. $$

Therefore, consumer surplus is \(32+18+3=\$53\). For the sellers, the individual surpluses are:

$$ 40-12=28,\qquad 40-28=12,\qquad 40-38=2. $$

Therefore, producer surplus is \(28+12+2=\$42\). Total surplus is \(53+42=\$95\).

Check by gains from trade. The three matched buyer-seller pairs have gains of \(72-12=\$60\), \(58-28=\$30\), and \(43-38=\$5\). Their total is \(60+30+5=\$95\), which agrees with consumer surplus plus producer surplus. The common mistake is to count the $40 payments as resources consumed; they are transfers, and cancel when the two sides’ surpluses are added.

Worked Example: Different Prices, Same Total Gain

In a hypothetical online exchange, Buyer A has willingness to pay $90 and buys from Seller A, whose opportunity cost is $55, for $70. Buyer B has willingness to pay $75 and buys from Seller B, whose opportunity cost is $60, for $68. Assume both transactions occur and there are no additional costs. Calculate each side’s surplus and verify total surplus using the willingness-to-pay and cost figures.

Method. Apply the relevant definition to each transaction, using that transaction’s own price. For the first trade, Buyer A’s consumer surplus is \(90-70=\$20\). Seller A’s producer surplus is \(70-55=\$15\). The first trade therefore contributes \(20+15=\$35\) to total surplus.

For the second trade, Buyer B’s consumer surplus is \(75-68=\$7\). Seller B’s producer surplus is \(68-60=\$8\). The second trade contributes \(7+8=\$15\). Across both trades, consumer surplus is \(20+7=\$27\), producer surplus is \(15+8=\$23\), and total surplus is \(27+23=\$50\).

Check by gains from trade. The first trade creates \(90-55=\$35\); the second creates \(75-60=\$15\). Thus, aggregate gains from trade are \(35+15=\$50\), matching the surplus calculation. The two prices differ, but each price cancels within its own buyer-seller pair. A common mistake is to assume that a single market price is necessary for this identity; it is not.

Worked Example: Distinguishing a Beneficial Trade from a Nonbeneficial One

A hypothetical neighborhood service market has buyers with willingness to pay of $84, $62, and $45, and providers with opportunity costs of $30, $50, and $52. The market price is $55 per service. Each participant can make or buy at most one service, and there are no other costs or external effects. Assuming the highest-valued buyers are matched with the lowest-cost providers, determine the trades and calculate the resulting surplus.

Method. A buyer purchases at the stated price only if willingness to pay is at least $55. The $84 and $62 buyers meet that condition; the $45 buyer does not. Thus, quantity demanded is 2. A provider supplies at the price only if opportunity cost is no more than $55. The providers with costs of $30 and $50 meet that condition; the provider with cost $52 also meets it. Thus, quantity supplied is 3. Since only two buyers are willing to purchase, two units trade, with the two lowest-cost providers.

Consumer surplus is \((84-55)+(62-55)=29+7=\$36\). Producer surplus is \((55-30)+(55-50)=25+5=\$30\). Total surplus is \(36+30=\$66\).

Check by gains from trade. The two trades create \(84-30=\$54\) and \(62-50=\$12\), for a total of \(54+12=\$66\). The remaining buyer values a service at $45, while the remaining provider’s cost is $52. That potential trade would have a gain of \(45-52=-\$7\), so it should not be added to the completed trades. The common mistake is to treat every willing seller as evidence that another trade is beneficial; a buyer and seller must both be willing, and the buyer’s value must cover the seller’s cost for the trade to add surplus.

Interpreting Total Surplus

Total surplus is an aggregate measure, not a statement that every participant gains equally. In the second worked example, one buyer receives $20 of surplus and another receives $7, while the sellers receive $15 and $8. The distribution depends on the transaction prices. But because the price is a transfer between the buyer and seller, changing the division of the gains does not, by itself, change the total surplus from a fixed set of trades.

In the simple setting used here, an allocation creates the greatest possible total surplus when it includes all trades with positive gains and excludes trades with negative gains, subject to the available buyers, sellers, and units. For each potential trade, compare the buyer’s willingness to pay with the seller’s opportunity cost. This is the essential economic logic behind gains from trade; the calculation does not require knowing how the surplus is divided.

That conclusion has limits. It treats the stated willingness to pay and opportunity costs as the relevant benefits and resource costs, and assumes no uncompensated effects on others. A trade can be privately beneficial to buyer and seller while imposing a cost on someone else. In that case, the private-surplus calculation alone is not a complete measure of social efficiency. For the basic gains-from-trade calculation, keep the model’s assumptions explicit rather than treating the result as universal.

Common Mistakes

  • Counting the price as a net resource gain. Revenue to the seller is expenditure by the buyer. Add consumer and producer surplus, and the payment cancels.
  • Using price instead of opportunity cost. Producer surplus is price received minus the seller’s cost of supplying the unit, not the seller’s revenue alone.
  • Calling every transaction beneficial in total. The sign of \(v-c\), not the sign of either party’s surplus in isolation, determines the total gain in the simple model.
  • Adding gains for a trade that does not occur. Total surplus from completed trades is calculated for those trades. A potential trade is not part of that total unless it is made.
  • Ignoring the model boundary. The private-surplus identity does not automatically include external costs, external benefits, or other transaction costs omitted from the stated data.
Key takeaway: For each completed trade, consumer surplus plus producer surplus equals willingness to pay minus opportunity cost. The payment determines how the gains are divided; the difference between value and cost determines their total.

Check Your Understanding

For each problem, use the stated assumptions and check total surplus both as consumer surplus plus producer surplus and, where possible, as gains from trade.

  1. Two buyers have willingness to pay of $48 and $33, and two sellers have opportunity costs of $18 and $25. The price is $30, each can trade one unit, and the lowest-cost sellers are matched with the highest-valued buyers. Find the number of trades and total surplus. (Answer: 2 trades; consumer surplus $21, producer surplus $17, total surplus $38.)
  2. Two hypothetical contracts are completed. In the first, willingness to pay is $120, cost is $77, and price is $100. In the second, willingness to pay is $86, cost is $70, and price is $80. Find aggregate consumer surplus, producer surplus, and total surplus. (Answer: consumer surplus $26, producer surplus $33, total surplus $59.)
  3. Buyers’ willingness to pay is $95, $75, and $52; sellers’ opportunity costs are $20, $48, and $61. At a price of $55, determine quantities demanded and supplied, the number of units traded, and total surplus, assuming the highest-valued buyers are matched with the lowest-cost sellers. (Answer: quantity demanded 2, quantity supplied 2, 2 trades; consumer surplus $60, producer surplus $42, total surplus $102.)
  4. Two trades occur at different prices. Trade A has willingness to pay $68, cost $30, and price $50. Trade B has willingness to pay $54, cost $49, and price $52. Calculate aggregate consumer surplus, producer surplus, and total surplus, then verify the result using gains from trade. (Answer: consumer surplus $20, producer surplus $23, total surplus $43, equal to gains of $38+$5.)
  5. In a hypothetical market, buyer values are $110, $90, and $64, seller costs are $25, $60, and $72, and the price is $70. Each participant can trade at most one unit; match the highest-valued buyers to the lowest-cost sellers. Determine quantity demanded and supplied, the number of trades, and total surplus. (Answer: quantity demanded 2, quantity supplied 2, 2 trades; consumer surplus $60, producer surplus $55, total surplus $115.)
Clinical Biostats