Total Surplus Calculator

Consumer surplus, producer surplus and total welfare from supply and demand intercepts, plus the deadweight loss of a per-unit tax and who ends up paying it.

$
$
$
$
Changes the symbol only. No exchange-rate conversion is applied.
Total Economic Surplus

Total Surplus Formula

Total Surplus = Consumer Surplus + Producer Surplus

Total surplus measures the total welfare generated by a market transaction. When a market is in perfect competition and free from interference, total surplus is maximized.

Consumer Surplus

Consumer Surplus is the benefit buyers receive when they pay less than they were willing to pay.

Consumer Surplus = ½ × (Maximum Willingness to Pay − Market Price) × Quantity

This is the area of the triangle above the price line and below the demand curve.

Producer Surplus

Producer Surplus is the benefit sellers receive when they receive more than the minimum they were willing to accept.

Producer Surplus = ½ × (Market Price − Minimum Willingness to Accept) × Quantity

This is the area of the triangle below the price line and above the supply curve.

The Triangle Area Method

Both formulas use the area of a right triangle: ½ × base × height.

  • For CS: base = quantity, height = (max WTP − price)
  • For PS: base = quantity, height = (price − min WTA)

Deadweight Loss

When governments impose price controls or taxes, or when monopolies restrict output, total surplus falls. The lost surplus is called Deadweight Loss (DWL):

DWL = ½ × (Tax or price wedge) × (Q_free_market − Q_traded)

DWL represents transactions that would have benefited both buyer and seller, but don’t happen because of market interference. Enter a per-unit tax in the optional field and the calculator works this out, along with who ends up paying it.

Who actually pays a tax

This is the part that surprises people. A tax levied on sellers does not fall on sellers, and a tax levied on buyers does not fall on buyers. It splits according to the relative slopes of supply and demand, and the legal wording has nothing to do with it.

With linear curves through the intercepts this page uses, the split is fixed by the two triangles. The steeper side of the market absorbs more of the tax, because the steeper side is the one less willing to walk away. That is why cigarette taxes land almost entirely on smokers and why a tax on a commodity with many substitutes lands mostly on producers.

Why the loss is a triangle

The lost surplus is a triangle rather than a rectangle because the trades destroyed by a tax are not the average trade. They are the marginal ones: the buyer who valued the good at barely above cost, and the seller who could barely produce it at that price. Those trades were worth very little to begin with, so a small tax destroys almost nothing. Double the tax, though, and the loss goes up fourfold, because the triangle grows in both directions at once. That squaring is the single most useful fact about tax policy in this whole model.

Pareto Efficiency

A market outcome is Pareto efficient if no one can be made better off without making someone else worse off. Perfectly competitive markets achieve Pareto efficiency because they maximize total surplus. Any intervention that creates deadweight loss is Pareto inefficient.

Worked Example

A market for textbooks has:

  • Maximum WTP (demand intercept): $100
  • Market equilibrium price: $60
  • Minimum WTA (supply intercept): $20
  • Equilibrium quantity: 200 books

Consumer Surplus = ½ × ($100 − $60) × 200 = ½ × $40 × 200 = $4,000 Producer Surplus = ½ × ($60 − $20) × 200 = ½ × $40 × 200 = $4,000 Total Surplus = $4,000 + $4,000 = $8,000

Perfect Competition and Total Surplus

In perfect competition:

  • Price = Marginal Cost
  • All mutually beneficial trades occur
  • Total surplus is maximized
  • Deadweight loss is zero

Monopoly, oligopoly, and government price controls all reduce total surplus by preventing some trades from occurring.

Pro Tips

  • Consumer surplus grows when prices fall, which is why lower production costs and real competition benefit buyers directly.
  • Producer surplus grows when prices rise or costs fall.
  • A tax equal to the externality cost (a Pigouvian tax) can actually increase total surplus in markets with negative externalities.
  • Total surplus maximization is the standard benchmark economists use to evaluate market policies.

How we build and check this calculator

This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.

SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.


Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.