Calculate total surplus by adding consumer and producer surplus, or find total, consumer and producer surplus from a linear supply and demand graph.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Add consumer and producer surplusFinds total surplus from the two surpluses when both are already knownRequires the consumer surplus and the producer surplus in dollars
Consumer, producer and total surplus from a graphFinds total surplus from a supply and demand graph with straight-line curves, and splits it into consumer and producer surplusRequires the demand price intercept, the supply price intercept and the equilibrium quantity. The equilibrium price is optional and is needed only for the split

All prices are in dollars per unit and the quantity is in units, for one market over one period. If the quantity on a graph is in thousands, the surplus is in thousands of dollars.

Total Surplus Formulas

TS = CS + PS [1]
TSTotal surplus ($)
CSConsumer surplus: what buyers were willing to pay, less what they paid ($)
PSProducer surplus: what sellers received, less their marginal cost of each unit ($)

Total surplus is the whole gain from trade in a market. On a graph it is the area between the demand curve and the supply curve, up to the quantity traded [1].

Add consumer and producer surplus

The two amounts are added. A consumer surplus of $25 and a producer surplus of $15 give a total surplus of 25 + 15 = $40.

Consumer, producer and total surplus from a graph

TS = ½ × Q × (Pmax − Pmin)

With straight-line curves, the area between demand and supply is a triangle. Pmax is the price where the demand curve meets the price axis, Pmin is the price where the supply curve meets it, and Q is the equilibrium quantity. The equilibrium price Peq divides that triangle into two:

CS = ½ × Q × (Pmax − Peq)
PS = ½ × Q × (Peq − Pmin)

Consumer surplus is the triangle above the price and below demand, and producer surplus is the triangle below the price and above supply. With a demand intercept of $10, a supply intercept of $2 and 100 units traded at $6, total surplus is ½ × 100 × (10 − 2) = $400, made up of ½ × 100 × (10 − 6) = $200 of consumer surplus and ½ × 100 × (6 − 2) = $200 of producer surplus. The demand intercept cannot be below the supply intercept, and the equilibrium price has to lie between the two.

Limits of This Estimate

  • The graph function assumes straight supply and demand curves that cross at the quantity entered. Curved lines need the area found another way, and the calculator does not check that the numbers describe a real equilibrium.
  • With a tax, the government’s revenue is counted as part of total surplus as well [1]. The calculator adds consumer and producer surplus only, and it does not account for subsidies or costs that fall on third parties.
  • Total surplus is highest at the competitive equilibrium quantity. Trading less than that leaves a deadweight loss, which this calculator does not measure [1].
  • Surplus is an economic measure of gains from trade. Producer surplus is not accounting profit, because fixed costs are not deducted.

Sources

  1. The CORE Team, The Economy 1.0, Unit 8: Supply and demand: Price-taking and competitive markets: consumer, producer and total surplus as areas between the demand and supply curves, total surplus with a tax, and deadweight loss