Skip to content
K Knidox Search…
Economics · Microeconomics

Deadweight Loss Calculator

Measure the welfare lost to a per-unit tax as the triangle between the trades that stop happening.

$
Amount of the per-unit tax on each unit sold.
units
Equilibrium quantity traded with no tax.
units
Quantity traded once the tax is imposed.
Try a scenario
Deadweight loss
$20.00

A $2.00 tax cuts quantity from 100 to 80 units (ΔQ = 20), destroying $20.00 of surplus. Tax revenue is $160.00.

Reduction in quantity (ΔQ)
20 units
Total tax revenue
$160.00
The tax wedge shrinks trade from Q_after to Q_before — the shaded triangle is the loss
Deadweight loss and tax revenue on a supply-and-demand diagramPriceQuantityQ_afterQ_before
Deadweight loss ($20.00)Tax revenue ($160.00)

Deadweight loss is the surplus destroyed when a tax stops mutually beneficial trades. It equals the triangle ½ × tax per unit × the drop in quantity. With a $2 tax that cuts quantity from 100 to 80 units, the loss is ½ × $2 × 20 = $20, while the tax raises $2 × 80 = $160 in revenue.

How a tax creates deadweight loss

A per-unit tax drives a wedge between the price buyers pay and the price sellers keep. At the equilibrium quantity every trade was worth doing — each buyer valued the unit more than it cost to make. Once the tax raises the buyer’s price and lowers the seller’s take, the units near the margin no longer clear: buyers who valued them just above cost, and sellers who could just cover cost, walk away. Those trades that no longer happen are the deadweight loss. The gain to each was small, but summed across the missing units it forms a triangle whose area the tax revenue can never recover — the value simply vanishes from the economy.

DWL = ½ × tax per unit × ΔQ where ΔQ = Q_before − Q_after

The loss is a triangle: its height is the per-unit tax and its base is the fall in quantity traded.

Worked example

A market clears at 100 units. A $2 per-unit tax pushes the quantity traded down to 80 units.

  1. 1
    Find the drop in quantity. Subtract the quantity after the tax from the quantity before it: ΔQ = 100 − 80 = 20 units. These are the trades the tax prevents.
  2. 2
    Set the triangle’s height. The height of the deadweight-loss triangle is the per-unit tax — here $2, the wedge between the buyer’s price and the seller’s price.
  3. 3
    Apply the triangle-area formula. DWL = ½ × tax × ΔQ = ½ × $2 × 20 = $20. That is the surplus lost to trades that no longer occur.
  4. 4
    Compute tax revenue for context. Revenue = tax × Q_after = $2 × 80 = $160. This transfers to the government rather than vanishing, so it is not part of the loss.
  5. 5
    Compare the two. The government collects $160 while $20 of surplus disappears — the efficiency cost of raising that revenue with this tax.

Tax revenue vs deadweight loss, and the role of elasticity

Revenue is a transfer; deadweight loss is value destroyed. How much is lost depends on how much quantity responds to the tax.

ConceptWhat it representsEffect on the loss
Tax revenue (tax × Q_after)Money moved from buyers and sellers to the government — a transfer, not a loss.Larger when quantity barely falls; not counted in deadweight loss.
Deadweight loss (½ × tax × ΔQ)Surplus from mutually beneficial trades that the tax prevents — value that disappears entirely.Grows with the size of the tax and with the drop in quantity.
Elastic supply or demandBuyers or sellers respond strongly to the price change, so quantity falls a lot.Large ΔQ → large deadweight loss.
Inelastic supply or demandQuantity barely changes when the tax shifts the price.Small ΔQ → small deadweight loss, so more revenue per unit of loss.

Reading the result

Revenue is not a loss. The tax revenue is a transfer from buyers and sellers to the government — someone still has that money. Only the deadweight-loss triangle is value that no one captures, which is why economists judge a tax’s efficiency by the loss, not the revenue.

The loss rises faster than the tax. Doubling the tax roughly doubles ΔQ as well, so the triangle — being ½ × tax × ΔQ — grows with the square of the tax rate. Small taxes are cheap in welfare terms; large ones are disproportionately costly.

Elasticity drives everything. Because ΔQ is the base of the triangle, taxing goods with inelastic demand or supply (few substitutes, hard to avoid) destroys the least surplus. That is the standard efficiency argument behind taxing staples and addictive goods more heavily than easily-substituted luxuries.

What is deadweight loss?
Deadweight loss is the value of mutually beneficial trades that a tax (or other distortion) prevents. On a linear market it is the triangle ½ × tax per unit × the drop in quantity — $20 in the worked example, where a $2 tax cuts quantity from 100 to 80 units.
Why does a tax cause deadweight loss?
A tax raises the price buyers pay and lowers the price sellers receive, so trades near the margin — worth doing before the tax — no longer clear. The surplus those units would have created disappears; it is captured by neither buyers, sellers, nor the government.
How does elasticity affect the size of the loss?
The more elastic supply or demand is, the more quantity falls when the tax shifts the price, so ΔQ and the triangle both grow. Taxing inelastic goods — ones people keep buying regardless — causes a smaller deadweight loss for the same revenue.
Is tax revenue part of the deadweight loss?
No. Tax revenue (tax × quantity after the tax, or $160 in the example) is a transfer from buyers and sellers to the government — the money still exists. Deadweight loss counts only surplus that vanishes entirely, so the two are kept separate.
Why is the loss a triangle?
With linear supply and demand, the per-unit tax (the triangle’s height) is constant while the lost trades run from Q_after up to Q_before (the base). Summing the shrinking gains across those units gives a right triangle, so the area is ½ × base × height.
Does a bigger tax always cause a proportionally bigger loss?
It causes a more-than-proportional loss. A larger tax raises both the height and the base of the triangle, so deadweight loss grows roughly with the square of the tax rate — doubling the tax can quadruple the loss.
Can this be used for a subsidy or price control?
The same triangle logic applies whenever output is pushed away from the equilibrium quantity — by a subsidy, price ceiling, or quota. Enter the resulting quantity and the per-unit wedge; the ½ × wedge × ΔQ area still measures the lost surplus.