Skip to content

Deadweight Loss Calculator

Find the equilibrium, consumer and producer surplus and the deadweight loss of a tax, subsidy, price ceiling, price floor or quota from linear supply and demand.

Calculator Details

Deadweight loss:$8See results ↓

Intercepts and slopes, or two points on each curve

Price at which nobody buys (demand P = a − bQ)

How much the price falls per extra unit demanded (positive)

Lowest price at which anything is supplied (supply P = c + dQ)

How much the price rises per extra unit supplied (positive)

A per-unit tax or subsidy, a price ceiling or floor, or a quota

Dollars per unit

Your Results

Deadweight loss: $8

Deadweight loss

$8

18 units traded instead of 20

Equilibrium

20 units at $60

Buyers pay / sellers get

$64 / $56

Consumer surplus

$324

Free market $400

Producer surplus

$324

Free market $400

Tax revenue

$144

Buyers bear 50%

The free market clears at 20 units and $60. With the tax, 18 units trade and the deadweight loss is $8 of a total surplus of $800.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Who gains and who loses
MeasureFree marketWith policyChange
Consumer surplus$400$324−$76
Producer surplus$400$324−$76
Tax revenue$0$144+$144
Total surplus$800$792−$8
Deadweight loss$0$8+$8

Deadweight loss = free-market total surplus − total surplus with the policy (including tax revenue, minus subsidy cost, plus quota rent).

How This Calculator Works

How it's calculated

demand P = 100 − 2Q · supply P = 20 + 2Q

Q* = (100 − 20) ÷ (2 + 2) = 20 · P* = $60

CS = ½ × (100 − 60) × 20 = $400 · PS = ½ × (60 − 20) × 20 = $400

DWL = ½ × 8 (gap between the demand and supply prices at Q = 18) × |20 − 18| = $8

The deadweight loss is the triangle between the demand and supply curves for the units that no longer trade (or, with a subsidy, that trade although they cost more to make than buyers value). Ceilings and floors assume the units go to the buyers who value them most and come from the lowest-cost sellers, so the real loss is usually larger.

Frequently Asked Questions

What is deadweight loss?

The total surplus (consumer plus producer, plus any government revenue) that disappears when a market moves away from its equilibrium. It comes from trades that would have benefited both sides but no longer happen, or from trades that happen although they cost more than they are worth to buyers.

How do you calculate the deadweight loss of a tax?

For linear curves it is a triangle: ½ × tax per unit × the drop in quantity. With demand P = 100 − 2Q and supply P = 20 + 2Q, a $8 tax cuts the quantity from 20 to 18, so DWL = ½ × 8 × 2 = $8. The tax raises $8 × 18 = $144, while buyers and sellers lose $152 of surplus between them.

Who pays a tax, buyers or sellers?

It doesn’t matter who sends the cheque: the burden is shared according to the slopes. Buyers bear b ÷ (b + d) of it, where b is the demand slope and d the supply slope. When demand is steep (inelastic), as for gasoline or cigarettes, buyers bear most of the tax.

Why does a price ceiling cause a shortage?

At a price below equilibrium, buyers want more than sellers will supply. With a $50 ceiling in the default market, 25 units are demanded but only 15 supplied: a shortage of 10. The 5 units between 15 and the equilibrium 20 are no longer traded, which is the deadweight loss of $50.

Does a minimum wage create deadweight loss?

In the simple competitive model, a wage floor above equilibrium reduces the number of jobs and creates a deadweight loss, with the surplus of labour showing up as unemployment. Real labour markets are more complicated (employer market power, search costs), and empirical studies of modest increases often find small employment effects, so treat the textbook result as a model, not a forecast.

Do subsidies create deadweight loss too?

Yes. A subsidy pushes the quantity above equilibrium, so some units cost more to produce than buyers value. Buyers and sellers gain, but the subsidy costs the government more than they gain together. An $8 subsidy in the default market costs $176 and raises consumer and producer surplus by $168, a $8 loss.

What is a quota rent?

With a quota, the price buyers pay rises above what sellers need to supply the limited quantity. The gap times the quantity goes to whoever holds the right to sell: licence or quota holders, such as taxi medallion owners or supply-managed farm quota in Canada. It is a transfer, not a loss; the deadweight loss is the triangle for the units no longer sold.

How do I get the slopes from real data?

Use two price–quantity observations on each curve: slope = change in price ÷ change in quantity. Choose "Two points on each curve" and enter them. Real curves are rarely straight, so this is an approximation around the prices you observed.

A textbook model (OpenStax Principles of Economics 3e §3.4–3.5 and §5.3): straight-line supply and demand, a competitive market and per-unit policies. Ceilings assume the scarce units go to the buyers who value them most and floors that the lowest-cost sellers supply, so real losses are usually larger. Not included: percentage (ad valorem) taxes, curved demand or supply, government purchases of surplus output, black markets, search and queueing costs, and the diagram shading (the chart shows the curves and the surplus bars).

Deadweight Loss Calculator: Taxes, Subsidies, Price Controls and Quotas

By FindMySum · Last reviewed

A deadweight loss calculator measures how much value a market loses when a tax, subsidy, price control or quota stops it from reaching equilibrium. In a competitive market, buyers and sellers trade until the last unit is worth exactly what it costs to make; any policy that changes the quantity either blocks trades that would have helped both sides or forces trades that aren't worth their cost. This page finds the equilibrium of a straight-line supply and demand model, the consumer and producer surplus, who bears a tax, and the deadweight loss of each policy. The worked example uses the defaults: demand P = 100 − 2Q, supply P = 20 + 2Q and an $8 per-unit tax.

Equilibrium and surplus

Demand and supply cross where 100 − 2Q = 20 + 2Q, so Q* = 80 ÷ 4 = 20 units and P* = 100 − 40 = $60.

  • Consumer surplus is what buyers would have paid above the price: the triangle under the demand curve and above $60, ½ × (100 − 60) × 20 = $400.
  • Producer surplus is what sellers receive above their cost: the triangle above the supply curve and below $60, ½ × (60 − 20) × 20 = $400.

Total surplus, $800, is as large as it can be at the equilibrium. That is the sense in which a competitive market is efficient.

The deadweight loss of a tax

An $8 tax per unit drives a wedge between what buyers pay and what sellers keep. The new quantity is where the gap between the curves equals $8: 100 − 2Q − (20 + 2Q) = 8, so Q = 18. Buyers pay $64, sellers keep $56.

Free marketWith $8 taxChange
Consumer surplus$400$324−$76
Producer surplus$400$324−$76
Tax revenue—$144+$144
Total$800$792−$8

Buyers and sellers lose $152, the government gains $144, and $8 is lost to everyone. That loss is the triangle between the curves for the two units no longer traded: ½ × $8 × (20 − 18) = $8.

Who really pays the tax

The legal incidence (who sends the money to the government) doesn't decide who bears the cost. The price buyers pay rises by $4 and the price sellers keep falls by $4, so they split it evenly here, because the curves are equally steep. In general, buyers bear b ÷ (b + d) of the tax, where b and d are the slopes of demand and supply. Try demand P = 120 − 3Q with supply P = 10 + Q and a $12 tax: buyers pay $9 more and sellers keep $3 less, so buyers bear 75%. Steep demand means buyers can't easily cut back, so they absorb more of the tax.

Subsidies

A subsidy is a negative tax: the government pays sellers per unit. An $8 subsidy raises the quantity to 22; sellers receive $64 and buyers pay $56. Consumer and producer surplus each rise to $484, but the subsidy costs $176, more than their combined $168 gain. The extra two units cost more to make than buyers value them, and that $8 is the deadweight loss.

Price ceilings and floors

A price ceiling below equilibrium, such as rent control, caps the price. At $50, sellers supply only 15 units while buyers want 25: a shortage of 10. Consumer surplus can rise (to $525 here) because those who get a unit pay less, but producer surplus falls to $225, and the 5 units between 15 and 20 are lost, a deadweight loss of $50.

A price floor above equilibrium, such as a minimum price or wage, does the reverse. At $70, buyers take 15 units while sellers would offer 25: an excess supply of 10. Producers who sell gain, consumers lose, and the deadweight loss is again $50. A ceiling above the equilibrium price, or a floor below it, doesn't bind and changes nothing.

These results assume the best possible allocation: the scarce units under a ceiling go to the buyers who value them most, and under a floor the lowest-cost sellers make the sales. In practice queues, search costs and black markets make the losses larger.

Quotas

A quota limits quantity directly. Capping sales at 15 units means buyers pay $70 (the demand price at 15) while sellers need only $50 (the supply price). The $20 gap on each unit, $300 in all, is quota rent that goes to whoever holds the right to sell, such as licence holders. The deadweight loss is the same $50 triangle as for the price controls, because the same 5 units are lost.

Using your own numbers

Enter the price intercepts and slopes directly, or two price–quantity points on each curve and let the calculator find the lines. Real demand and supply curves are rarely straight, so the result is an approximation that works best for small policy changes around the observed prices.

More questions

Why is it called deadweight loss?

Because nobody gets it. A tax moves money from buyers and sellers to the government, which is a transfer, but the surplus from trades that no longer happen is simply lost, a dead weight on the economy. Economists also call it excess burden.

Is a bigger tax twice as bad as a small one?

Worse. With linear curves the deadweight loss grows with the square of the tax: doubling the tax roughly quadruples the loss, because both the height and the width of the triangle double. That is one reason economists prefer broad taxes at low rates to narrow taxes at high rates.

Does rent control in Canada cause deadweight loss?

The textbook model says a binding rent ceiling reduces the supply of rental housing and creates a shortage and a deadweight loss. Ontario, BC, Quebec and other provinces limit rent increases for existing tenants rather than setting a fixed rent, and exempt some newer buildings, so the effects depend on the rules. Economists still debate their size.

Can a tax ever have no deadweight loss?

Yes, when either curve is perfectly inelastic (vertical): the quantity doesn't change, so no trades are lost. Land taxes come close, because the supply of land is fixed, which is why economists from Henry George onward have favoured them.

How does elasticity affect deadweight loss?

The more elastic (flatter) the curves, the more the quantity falls when a tax is added, and the bigger the deadweight loss. Taxing goods with inelastic demand, such as fuel or tobacco, raises revenue with relatively little lost surplus, though it falls heavily on buyers.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy