Tutorials › VEE Economics › Marginal Gains from Trade Across Units

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

Marginal Gains from Trade Across Units

Calculate unit-by-unit gains from trade, determine which discrete trades create surplus, and add those gains to obtain total surplus.

Intermediate 9 min read

What You'll Learn

  • Define a unit’s gain from trade as marginal willingness to pay minus marginal cost.
  • Rank buyers and sellers so that marginal values are paired appropriately.
  • Calculate total surplus by summing the gains from individual trades.
  • Identify when an additional unit creates no gain or a negative gain.
  • Avoid errors from mispairing units or counting negative gains as positive.

Why Measure Gains One Unit at a Time?

When a good is traded in discrete units, the value of one more unit need not be the same as the value of the previous unit. A buyer’s willingness to pay for an additional unit may fall as that buyer acquires more, while a seller’s cost of supplying an additional unit may rise. Comparing willingness to pay and cost unit by unit shows which trades create value and how much value they create.

This approach is useful when the data describe individual units or ranked buyers and sellers rather than smooth curves. It gives a direct way to calculate total gains from trade without relying on a graph or assuming that the marginal values change continuously. The calculations below use hypothetical values, stated in dollars per unit.

Definition: A unit’s marginal willingness to pay is the maximum amount a buyer would pay for that particular additional unit. Its marginal cost is the seller’s cost of providing that unit. The unit’s gain from trade is marginal willingness to pay minus marginal cost. For a trade between buyer \(i\) and seller \(j\), write $$ G_{ij} = W_i - C_j, $$ where \(W_i\) is the buyer’s marginal willingness to pay and \(C_j\) is the seller’s marginal cost. A positive value means the buyer values the unit more than it costs the seller to provide; a negative value means the cost exceeds the buyer’s value.

The calculation requires a clear unit-by-unit comparison. If buyers differ in their willingness to pay, consider them in descending order of marginal willingness to pay. If sellers differ in cost, consider their units in ascending order of marginal cost. Then pair the highest-value buyer with the lowest-cost seller, the next-highest-value buyer with the next-lowest-cost seller, and so on. This is the pairing that avoids missing a higher-gain trade in favor of a lower-gain one.

For the basic calculation, assume each listed value and cost applies to one unit, each unit can be traded at most once, and buyers’ values and sellers’ costs add across units. Assume also that there are no external costs or benefits from a trade: the value to the buyer and cost to the seller capture the relevant benefit and resource cost. Under these assumptions, a positive unit gain increases total surplus, a negative unit gain reduces it, and a zero unit gain leaves total surplus unchanged.

Calculating and Adding Unit Gains

For a proposed set of trades, calculate each traded unit’s gain separately and add the results. If the units are paired in the efficient order described above, gains are nonincreasing: the first paired unit has at least as large a gain as the second, and so on. Thus, if a marginal unit has a negative gain, later units in that ranking cannot have positive gains. With no constraint requiring trade, the surplus-maximizing quantity includes units with positive gains, excludes units with negative gains, and may include or exclude a zero-gain unit without changing total surplus.

$$ G_k = W_k - C_k \qquad\text{and}\qquad TS(Q) = \sum_{k=1}^{Q} G_k $$

Here \(G_k\) is the gain on the \(k\)th paired unit, and \(TS(Q)\) is total surplus from trading \(Q\) units. This sum applies to the stated set of trades; it is not a claim that every possible trade must occur. If a problem specifies a quantity, add the gains for those trades and report any negative gain rather than silently treating it as positive. If the question asks which quantity maximizes surplus, compare the gains across the possible units.

Worked Example: Gains for Four Ranked Units

A hypothetical workshop considers four one-unit orders for a component. The buyers’ marginal willingness to pay, listed from highest to lowest, is $42, $35, $29, and $21. The sellers’ marginal costs, listed from lowest to highest, are $12, $18, $26, and $31. Calculate the gain on each paired unit, identify which units should trade to maximize total surplus, and calculate that surplus.

Method. Pair the buyer values and seller costs in their stated rankings, then subtract cost from willingness to pay for each unit:

$$ \begin{aligned} G_1 &= \$42 - \$12 = \$30,\\ G_2 &= \$35 - \$18 = \$17,\\ G_3 &= \$29 - \$26 = \$3,\\ G_4 &= \$21 - \$31 = -\$10. \end{aligned} $$

The first three gains are positive, so those trades add \( \$30 + \$17 + \$3 = \$50\) to total surplus. The fourth gain is negative: the buyer values that unit at $21, but supplying it costs $31. Excluding that trade avoids a $10 reduction in surplus.

Answer and check. Trade three units; total surplus is $50. The marginal gain on the third unit is positive, while the fourth is negative, consistent with stopping after the third unit. The common mistake to avoid is adding the fourth unit’s cost minus value as a positive $10; the defined gain is willingness to pay minus cost, so this unit’s gain is \(-\$10\).

Why Adding the Gains Gives Total Surplus

The addition rule follows from what each trade contributes. For one unit, the buyer receives value \(W_k\), while the seller uses resources with cost \(C_k\). The net value created by that trade is therefore the value received minus the resources used:

$$ G_k = W_k - C_k. $$

For several units, the stated additivity assumption means that total buyer value is the sum of the values of the traded units, and total seller cost is the sum of their costs. Subtracting total cost from total value gives:

$$ \begin{aligned} TS(Q) &= \left(\sum_{k=1}^{Q} W_k\right) - \left(\sum_{k=1}^{Q} C_k\right)\\ &= \sum_{k=1}^{Q}(W_k-C_k)\\ &= \sum_{k=1}^{Q}G_k. \end{aligned} $$

The second line follows by distributing the subtraction across the sums: each unit’s willingness to pay is matched with that unit’s cost. This is why the gains must be calculated for the actual pairs of units and then added. The result measures the value created by the trades, not how that value is divided between buyer and seller.

Worked Example: Reorder Before Pairing

A hypothetical market has four potential buyers with marginal willingness to pay of $54, $41, $47, and $33 per unit. Four potential sellers have marginal costs of $19, $28, $24, and $36 per unit. Find the gains from trade using the efficient ranking and calculate the maximum total surplus.

Method. First reorder the buyer values from highest to lowest: $54, $47, $41, $33. Reorder the seller costs from lowest to highest: $19, $24, $28, $36. The original listing order does not establish which buyer should be paired with which seller.

$$ \begin{aligned} G_1 &= \$54 - \$19 = \$35,\\ G_2 &= \$47 - \$24 = \$23,\\ G_3 &= \$41 - \$28 = \$13,\\ G_4 &= \$33 - \$36 = -\$3. \end{aligned} $$

The first three trades create \( \$35 + \$23 + \$13 = \$71\) of surplus. The fourth trade would subtract $3, so it should not be included when maximizing surplus.

Answer and check. The surplus-maximizing quantity is three units, and maximum total surplus is $71. The sorted rankings produce positive gains followed by a negative gain, as expected. A common mistake is to pair buyers and sellers in the order they were listed; that gives arbitrary pairings and need not reveal the largest available gains.

Marginal Gains and the Choice of Quantity

The gain on the next unit answers a specific question: how much does total surplus change if one more unit is traded, using the stated pairing? If the next gain is positive, adding that unit increases total surplus by that amount. If it is negative, adding it reduces total surplus by the absolute value of the gain. If it is zero, trading it has no effect on total surplus. This interpretation applies to a marginal gain, not to the total surplus accumulated from earlier units.

For example, a negative gain on the fourth unit does not erase the positive gains on the first three units. It means only that the fourth trade should be excluded from the surplus-maximizing set when there is no requirement to trade it. The total from the first three trades remains the sum of their own gains.

Worked Example: Check a Proposed Quantity

A hypothetical distributor evaluates five paired units. Marginal willingness to pay, in ranked order, is $88, $74, $61, $49, and $37. Marginal costs, in ranked order from lowest to highest, are $22, $34, $45, $53, and $60. Calculate the gain for each unit. If all five units are required to trade, find the total gain; then identify the quantity that maximizes surplus if the distributor may choose the quantity.

Method. Subtract each ranked cost from its corresponding ranked willingness to pay:

$$ \begin{aligned} G_1 &= \$88 - \$22 = \$66,\\ G_2 &= \$74 - \$34 = \$40,\\ G_3 &= \$61 - \$45 = \$16,\\ G_4 &= \$49 - \$53 = -\$4,\\ G_5 &= \$37 - \$60 = -\$23. \end{aligned} $$

If all five trades occur, their net gain is \( \$66 + \$40 + \$16 - \$4 - \$23 = \$95\). If quantity is optional, the first three trades yield \( \$66 + \$40 + \$16 = \$122\). Adding the fourth would reduce that amount to \( \$118\), and adding the fifth would reduce it again to \( \$95\).

Answer and check. All five trades together create $95 of net surplus, but the surplus-maximizing quantity is three units, with total surplus of $122. The check is that the fourth and fifth gains are negative; including them cannot raise the surplus from the first three trades. The common mistake is to report $95 as the maximum merely because it is the net sum when all five units are traded.

Common Mistakes and Practical Checks

A reliable calculation keeps the direction of subtraction and the pairing rule explicit. Use willingness to pay minus cost, not cost minus willingness to pay. If values and costs are supplied in an unsorted list, rank them before comparing units. After calculating, inspect the signs: under the efficient ranking, the gains should not rise as the unit number increases. If a later unit has a positive gain after an earlier unit has a negative gain, check the ranking and arithmetic.

  • Do not take absolute values. A gain of \(-\$8\) is a loss of $8 in total surplus, not a positive gain of $8.
  • Do not confuse the marginal gain with the total. The gain on unit four is the change from adding that unit; total surplus at four units includes the gains on units one through four.
  • Do not stop at a positive total when quantity is optional. A set of trades can have positive total surplus and still include a negative-gain trade that lowers the best achievable total.
  • Do not infer an unlisted unit’s value or cost. A conclusion about whether to trade another unit requires that unit’s marginal willingness to pay and marginal cost, or other information that determines them.

These calculations are aligned with the SOA VEE Economics (Validation by Educational Experience) syllabus. For exam-style questions, state the ranking, show each subtraction, and distinguish the surplus at a specified quantity from the quantity that maximizes surplus. That makes both the method and the conclusion easy to verify.

Check Your Understanding

For each problem, show the unit-level gains before deciding which quantity is best.

  1. A hypothetical repair cooperative has three buyer values, already ranked, of $63, $52, and $44. Seller costs, already ranked, are $17, $31, and $40. Find each gain and the maximum total surplus if the quantity is optional. (Answer: Gains are $46, $21, and $4; trade 3 units for total surplus of $71.)
  2. Four potential buyers have marginal willingness to pay of $38, $57, $46, and $33. Three sellers have marginal costs of $20, $33, and $29. Rank and pair the units, then find the surplus-maximizing quantity and total surplus. (Answer: Ranked buyer values are $57, $46, $38, $33; ranked costs are $20, $29, $33; gains are $37, $17, and $5; trade 3 units for total surplus of $59.)
  3. A hypothetical equipment exchange has ranked buyer values of $90, $75, $68, and $57, and ranked seller costs of $25, $42, $50, and $61. Calculate the gain from each of the four trades and the maximum total surplus. (Answer: Gains are $65, $33, $18, and \(-\$4\); trade 3 units for total surplus of $116.)
  4. Three ranked buyer values are $72, $58, and $46, and three ranked seller costs are $30, $40, and $52. If two units must trade, calculate their total gain. If quantity is optional, find the surplus-maximizing quantity and total surplus. (Answer: Gains are $42, $18, and \(-\$6\); the required two trades yield $60, and the optional surplus-maximizing quantity is 2 units with total surplus of $60.)
  5. For a hypothetical allocation, the ranked unit gains are $14, $8, $0, and \(-\$6\). How many units can be traded while maximizing total surplus, and what is that maximum? Explain whether including the zero-gain unit changes the result. (Answer: Maximum total surplus is $22; trade the first 2 units, or include the zero-gain third unit without changing surplus.)
Clinical Biostats