Tutorials › VEE Economics › Deriving Triangle Formulas for Linear Surplus

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

Deriving Triangle Formulas for Linear Surplus

Derive and apply the linear-curve triangle formulas for consumer and producer surplus, including the conditions that make each surplus area triangular.

Intermediate 9 min read

What You'll Learn

  • Write linear demand and supply as inverse curves relating price to quantity.
  • Derive consumer surplus from the demand intercept, market price, and quantity.
  • Derive producer surplus from the supply intercept, market price, and quantity.
  • Identify the conditions under which surplus is a triangle rather than a trapezoid.
  • Calculate and check surplus areas in single-market examples.
  • Avoid using the wrong vertical height or applying the triangle formula outside its conditions.

Why Linear Surplus Areas Have a Simple Formula

When demand and supply are linear, consumer and producer surplus can often be calculated without adding the value or cost of every individual unit. Each area is a triangle: its horizontal base is the quantity traded, and its vertical height is the relevant price difference. The key is identifying the correct height and confirming that the curves meet the market price at the traded quantity.

This tutorial derives those formulas from the geometry of linear curves. It focuses on the surplus areas themselves, not on how to find a market-clearing price and quantity. The results are aligned with the SOA VEE Economics (Validation by Educational Experience) syllabus.

Definition: Write a linear inverse demand curve as \(p_D(q)=a-bq\), where \(p_D(q)\) is buyers’ willingness to pay for quantity \(q\), \(a\) is the price intercept, and \(b>0\) is the slope magnitude. Write a linear inverse supply curve as \(p_S(q)=c+dq\), where \(p_S(q)\) is sellers’ marginal cost at quantity \(q\), \(c\) is the price intercept, and \(d>0\). At a constant market price \(P\) and traded quantity \(Q\), consumer surplus is the area between demand and price, and producer surplus is the area between price and supply, over quantities from zero to \(Q\).

Deriving the Consumer-Surplus Triangle

Suppose the demand curve is linear, quantity begins at zero, and the traded quantity \(Q\) is the quantity buyers demand at price \(P\). In symbols, \(p_D(Q)=P\). At zero quantity, willingness to pay is \(a\); at quantity \(Q\), it is \(P\). The area under demand from zero to \(Q\) is a trapezoid. Buyers’ total expenditure is the rectangle with height \(P\) and width \(Q\). The difference is consumer surplus.

$$ \begin{aligned} \text{Area under demand} &= \frac{Q(a+P)}{2},\\ \text{Expenditure} &= PQ,\\ CS &= \frac{Q(a+P)}{2}-PQ\\ &= \frac{Q(a-P)}{2}. \end{aligned} $$

The same result follows by seeing consumer surplus directly as a triangle: its base is \(Q\), and its height is the difference between the demand intercept and market price, \(a-P\). Thus the triangle formula is valid when \(Q\) lies on the demand curve at price \(P\), so the surplus gap at the right endpoint is zero. For positive consumer surplus, the intercept must exceed the price: \(a>P\).

Result: For a linear demand curve \(p_D(q)=a-bq\), if \(p_D(Q)=P\) and \(0\leq Q\), then $$ CS=\frac{1}{2}(a-P)Q. $$ The relevant height is the demand intercept minus the market price, not the demand intercept alone.

Deriving the Producer-Surplus Triangle

For a linear supply curve, suppose the traded quantity \(Q\) is the quantity sellers supply at price \(P\), so \(p_S(Q)=P\). At zero quantity, marginal cost is \(c\); at quantity \(Q\), it is \(P\). The area under the supply curve is a trapezoid. Sellers’ revenue is the rectangle \(PQ\). Subtracting the area under supply from revenue gives producer surplus.

$$ \begin{aligned} \text{Area under supply} &= \frac{Q(c+P)}{2},\\ \text{Revenue} &= PQ,\\ PS &= PQ-\frac{Q(c+P)}{2}\\ &= \frac{Q(P-c)}{2}. \end{aligned} $$

Geometrically, producer surplus is a triangle with base \(Q\) and height \(P-c\): the market price minus the supply intercept. This formula assumes the supply curve begins at quantity zero and that its value at \(Q\) equals the market price. For positive producer surplus, \(P>c\).

Result: For a linear supply curve \(p_S(q)=c+dq\), if \(p_S(Q)=P\) and \(0\leq Q\), then $$ PS=\frac{1}{2}(P-c)Q. $$ The relevant height is market price minus the supply intercept.

Conditions Behind the Triangle Formulas

Both formulas use the same geometric principle: the area of a triangle is one-half the base multiplied by the height. The base is the traded quantity. The height is the difference between the curve’s intercept at zero quantity and the constant market price. The curve and price form the triangle’s sloping and horizontal sides.

The condition \(p_D(Q)=P\) matters for consumer surplus, and \(p_S(Q)=P\) matters for producer surplus. If the quantity traded does not lie on the relevant curve at price \(P\), the vertical surplus gap at \(Q\) may not be zero. The area is then generally a trapezoid, not the triangle given by the shortcut. For example, if the demand curve remains above price at \(Q\), consumer surplus has positive vertical gaps at both ends of the interval.

More generally, when the relevant gap is nonnegative over the interval and the curve is linear, the area is the width times the average of the endpoint gaps. For consumer surplus, those gaps are \(p_D(0)-P\) and \(p_D(Q)-P\). For producer surplus, they are \(P-p_S(0)\) and \(P-p_S(Q)\). If one endpoint gap is zero, this trapezoid expression reduces to the triangle formula. Checking the endpoint is a useful way to decide which formula applies.

1
Identify the curve and its intercept.
For demand, read \(a=p_D(0)\). For supply, read \(c=p_S(0)\). Use the price-axis intercept, not the slope.
2
Check the endpoint condition.
Verify \(p_D(Q)=P\) for the consumer-surplus triangle or \(p_S(Q)=P\) for the producer-surplus triangle.
3
Calculate the relevant height and area.
Use \(a-P\) for consumer surplus or \(P-c\) for producer surplus, then multiply by \(Q/2\).
4
Check sign and units.
A positive triangle requires a nonnegative height. Price per unit multiplied by units traded gives total surplus in dollars.

Worked Applications

Worked Example: Consumer Surplus from a Linear Demand Curve

A hypothetical digital service faces inverse demand \(p_D(q)=140-2q\), where price is in dollars per subscription and quantity is the number of subscriptions. At a market price of \(P=\$60\), 40 subscriptions are purchased. Find consumer surplus and explain why the triangle formula applies.

Method and condition. Use the demand-intercept triangle, but first check that the given quantity is demanded at the stated price. At \(q=40\),

$$ p_D(40)=140-2(40)=140-80=60. $$

The curve therefore meets the market price at the traded quantity. The demand intercept is \(a=140\) dollars per subscription, so the triangle’s height is

$$ a-P=140-60=80\text{ dollars per subscription}. $$

The base is \(Q=40\) subscriptions. Hence

$$ CS=\frac{1}{2}(80)(40)=40(40)=\$1{,}600. $$

Check. The triangle’s height is positive, and the endpoint demand price equals the market price. The area has units of dollars per subscription times subscriptions, so the surplus is \(\$1{,}600\). A common mistake is to use \(140\) as the height and calculate \(\frac12(140)(40)=\$2{,}800\). That ignores the \(\$60\) buyers pay for each unit; the correct height is the difference \(140-60\).

Worked Example: Producer Surplus from a Linear Supply Curve

A hypothetical repair cooperative has inverse supply \(p_S(q)=15+0.5q\), with price in dollars per repair and quantity measured in repairs. At a market price of \(P=\$75\), 120 repairs are supplied. Calculate producer surplus.

Method and condition. Use the supply-intercept triangle after checking that the endpoint on supply has price \(\$75\):

$$ p_S(120)=15+0.5(120)=15+60=75. $$

The supply intercept is \(c=\$15\) per repair. The vertical height between market price and the intercept is

$$ P-c=75-15=60\text{ dollars per repair}. $$

The base is 120 repairs, so

$$ PS=\frac{1}{2}(60)(120)=30(120)=\$3{,}600. $$

Check. The supply curve reaches the market price at 120 repairs, and the price is above its intercept, giving a positive area. The units are dollars per repair times repairs. A common mistake is to use the supply intercept as the triangle’s height; it is the price gap \(75-15\), not \(15\), that measures producer surplus.

Worked Example: Both Surplus Triangles at a Given Market Outcome

In a hypothetical market, inverse demand is \(p_D(q)=200-4q\) and inverse supply is \(p_S(q)=20+2q\), with prices in dollars per unit. The market outcome is reported as \(Q=30\) units at \(P=\$80\). Calculate consumer surplus, producer surplus, and total surplus.

Method and condition. Check that both curves pass through the reported price and quantity. Demand gives

$$ p_D(30)=200-4(30)=200-120=80. $$

Supply gives

$$ p_S(30)=20+2(30)=20+60=80. $$

Both endpoint conditions hold, so each area is a triangle. The demand intercept is \(\$200\), making the consumer-surplus height \(200-80=\$120\) per unit. Thus

$$ CS=\frac{1}{2}(120)(30)=60(30)=\$1{,}800. $$

The supply intercept is \(\$20\), making the producer-surplus height \(80-20=\$60\) per unit. Thus

$$ PS=\frac{1}{2}(60)(30)=30(30)=\$900. $$

Total surplus is the sum of the two areas:

$$ CS+PS=1{,}800+900=\$2{,}700. $$

Check. The price lies between the two intercepts, and both curves equal \(\$80\) at quantity 30. The total surplus equals the sum of the separately calculated areas. The common error this method avoids is assigning the demand-side gap \(200-80\) to producer surplus as well; producer surplus uses the distinct gap \(80-20\).

Common Mistakes and Interpretation

The triangle shortcut is compact, but only after the geometry has been checked. In particular, do not confuse the curve’s intercept with the triangle’s height: surplus measures a difference from the market price. Also, do not substitute a quantity into the triangle formula merely because it is the amount traded. If the curve does not meet price at that quantity, calculate the area using both endpoint gaps instead.

A second check is dimensional. If price is measured in dollars per unit and quantity in units, their product is dollars. If quantity is instead stated in thousands of units, the area is in thousands of dollars unless it is converted. State the quantity scale before reporting the result.

These formulas make the determinants of linear surplus visible: holding quantity fixed, a larger relevant price gap makes the triangle taller and increases its area proportionally; holding the gap fixed, a larger quantity makes it wider and increases area proportionally. The factor of one-half is essential because the surplus region is triangular, not a rectangle.

Key takeaway: When the linear demand or supply curve meets the market price at the traded quantity, consumer surplus is one-half times quantity times the demand-intercept-to-price gap, and producer surplus is one-half times quantity times the price-to-supply-intercept gap. Confirm the endpoint condition before using either triangle formula.

Check Your Understanding

For each problem, check whether the stated quantity lies on the relevant curve at the stated price before choosing a triangle or trapezoid calculation.

  1. A hypothetical market has inverse demand \(p_D(q)=90-3q\). Price is \(\$30\) and 20 units are bought. Find consumer surplus. (Answer: \(\$600\))
  2. A repair firm has inverse supply \(p_S(q)=12+0.4q\). At a price of \(\$52\), it supplies 100 repairs. Find producer surplus. (Answer: \(\$2{,}000\))
  3. Demand is \(p_D(q)=180-2q\) and supply is \(p_S(q)=30+q\). A reported market outcome is 50 units at \(\$80\). Verify the endpoint conditions and find consumer surplus, producer surplus, and total surplus. (Answer: Endpoint conditions hold; consumer surplus \(\$2{,}500\), producer surplus \(\$1{,}250\), total surplus \(\$3{,}750\))
  4. Demand is \(p_D(q)=160-2q\) and supply is \(p_S(q)=40+q\). A fixed allocation trades 30 units at a price of \(\$80\). Since this quantity does not put either curve at \(\$80\), calculate each surplus using the average of its endpoint gaps. (Answer: Consumer surplus \(\$1{,}500\); producer surplus \(\$750\))
Clinical Biostats