Deadweight Loss Calculator

Deadweight loss calculator.

Money Harberger triangle Tax revenue comparison
Rate this calculator · 5.0 (1)

Deadweight loss calculator

Harberger triangle · tax DWL · price-change DWL

Instructions — Deadweight Loss Calculator

1

Enter pre-tax quantity

This is the equilibrium quantity sold in the market before any tax, price ceiling, price floor or other intervention. Use the same unit (boxes, gallons, hours) consistently across the two quantity inputs.

2

Enter post-tax quantity

The new equilibrium after the intervention. For a tax, this is the smaller quantity buyers and sellers transact at the higher price. The difference (Q1 - Q2) is the Harberger triangle base.

3

Enter the price change

For a per-unit tax this equals the tax. For a price floor or ceiling, it is the absolute gap between the regulated price and the free-market price. The calculator returns deadweight loss, tax revenue, the percentage quantity drop and DWL as a share of revenue.

The triangle is quadratic in tax. Doubling the tax rate roughly quadruples the deadweight loss because both the base and the height of the triangle scale with the intervention size. Small taxes produce small DWL; large taxes burn welfare disproportionately.
Elasticity matters more than rate. A 10% tax on insulin (inelastic) generates much less DWL than a 10% tax on luxury watches (elastic). The wider the wedge between the demand and supply curves, the larger the triangle.

Formulas

Deadweight loss measures the welfare not captured by anyone after an intervention. It is the area of the triangle bounded by the demand curve, the supply curve and the price wedge introduced by the tax or regulation.

Harberger triangle
$$ DWL = \tfrac{1}{2} \times \Delta Q \times \Delta P $$
Arnold Harberger published this formulation in 1954 in the Proceedings of the Conference on the Economics of Monopoly. dQ is the drop in quantity caused by the intervention, dP is the per-unit price wedge. Assumes linear demand and supply over the relevant range.
Elasticity form
$$ DWL = \tfrac{1}{2} \times |e_d| \times Q \times \frac{(\Delta P)^2}{P} $$
When the elasticity of demand e_d is known, the triangle expresses as a quadratic in the price change. This is the form economists use to forecast DWL from a proposed tax rate before observing the new quantity.
Tax revenue
$$ R = Q_{post} \times t $$
Revenue collected by the government equals the post-tax quantity times the per-unit tax. The DWL is the welfare loss in excess of this transfer. A 25% DWL-to-revenue ratio is typical for moderate consumption taxes.
Excess burden ratio
$$ EB = \frac{DWL}{R} $$
Public-finance economists use the excess burden ratio to compare taxes. The Congressional Budget Office reports excess burden of 15-40% for most US federal taxes. Lump-sum taxes have an excess burden of zero; corporate income taxes can exceed 50%.

Reference

Approximate excess burden by tax type (US)
TaxExcess burden ratioNotes
Lump-sum tax0%Theoretical, no behaviour change
Property tax (real estate)10-20%Inelastic land base limits DWL
Sales tax (broad)15-25%Spreads burden across many goods
Excise tax (cigarettes)25-40%Demand more elastic at high price
Personal income tax30-50%Labour supply, savings respond
Corporate income tax40-60%Investment, location decisions

How elasticity drives deadweight loss

The same 10% tax produces wildly different deadweight loss depending on how price-sensitive buyers are. Inelastic goods (necessities, addictions, items with no substitutes) absorb taxes with little quantity drop. Elastic goods (luxuries, substitutable items) see buyers exit the market quickly, leaving a large triangle behind.

Inelastic goods
GoodElasticityDWL
Salt-0.1Tiny
Gasoline (short run)-0.25Small
Tobacco (heavy smokers)-0.4Modest
Insulin-0.05Near zero
Elastic goods
GoodElasticityDWL
Restaurant meals-1.6Large
Luxury watches-2.5Very large
Soft drinks-1.3Large
Air travel (leisure)-2.0Large

Source: Congressional Budget Office reviews, Bureau of Labor Statistics consumer expenditure surveys.

Article — Deadweight Loss Calculator

Deadweight loss calculator: the cost of a tax in one triangle

Deadweight loss is the value of trades that fail to happen because a tax, price ceiling, or other intervention pushes price away from the market-clearing level. The standard formula is DWL = ½ × ΔQ × ΔP, where ΔQ is the drop in quantity sold and ΔP is the per-unit price wedge. A $2 tax that reduces sales from 1,000 to 800 units creates deadweight loss of $200. The loss is welfare nobody captures: not buyers, not sellers, not the government.

Arnold Harberger formalised the idea in 1954, drawing the loss as a triangle bounded by the supply curve, the demand curve, and the price wedge. The calculator above accepts pre-tax quantity, post-tax quantity and the price change, and returns the triangle area along with tax revenue and the excess burden ratio.

What is deadweight loss?

Deadweight loss is a welfare concept. In a free market, every buyer who values a good above the price buys it, and every seller whose cost falls below the price sells it. The sum of consumer surplus and producer surplus measures the welfare those trades generate.

Insert a tax and that surplus shrinks. Part transfers to the government as revenue. Part disappears entirely: the trades that would have happened at the original price stop once the tax wedge makes them unprofitable. That vanished surplus is deadweight loss.

How to calculate deadweight loss

Deadweight loss formulas
DWL = ½ × ΔQ × ΔP
ΔQ = Q₁ - Q₂
Tax revenue = Q₂ × ΔP

Suppose a state imposes a $2 excise tax on a product selling 1,000 units at $10. After the tax, sales fall to 800 units. The Harberger triangle has base 200 and height $2. The area is ½ × 200 × 2 = $200 of deadweight loss. The state collects $2 × 800 = $1,600 in revenue. The excess burden ratio is 200 / 1,600 = 12.5%.

The Harberger triangle and its formulation

Harberger published "Monopoly and Resource Allocation" in 1954, and the triangle became the canonical visualisation of welfare loss. Before Harberger, economists discussed deadweight loss in abstract terms.

Did you know

Harberger's original estimate of monopoly deadweight loss in the United States was about 0.1% of GDP — much smaller than economists had assumed. The number sparked decades of debate. Later studies using broader definitions of monopoly (including markup over marginal cost) push the figure higher, but the small-triangle insight persisted: most market failures are smaller in welfare terms than commentary suggests.

The triangle is geometrically robust. As long as supply and demand are approximately linear over the relevant price range, the formula DWL = ½ × ΔQ × ΔP holds. For larger price changes, an elasticity-based version captures the curvature: DWL = ½ × |e| × Q × (ΔP)² / P. Public finance courses introduce both forms.

Deadweight loss and price elasticity

Elasticity is the lever that determines triangle size. The more responsive quantity is to price, the larger the quantity drop for a given tax, and the larger the deadweight loss. The Ramsey rule, named after Frank Ramsey's 1927 paper, captures this: to minimise total deadweight loss, tax inelastic goods most heavily.

  • Insulin (e = -0.05) tiny DWL; quantity barely responds to price
  • Salt (e = -0.1) near-zero DWL even at high tax rates
  • Gasoline short run (e = -0.25) moderate DWL; long run more elastic
  • Tobacco (e = -0.4) modest DWL among addicted users, larger among teens
  • Restaurant meals (e = -1.6) large DWL; many substitutes exist
  • Luxury watches (e = -2.5) very large DWL per dollar of revenue
  • Air travel leisure (e = -2.0) large DWL; booking decisions are price-sensitive

This explains why economists support broad-based consumption taxes rather than narrow excise taxes. A small tax on many goods produces less deadweight loss than a large tax on a few elastic goods.

Deadweight loss from price controls

A binding price ceiling such as rent control creates a shortage. Buyers want more housing than landlords are willing to supply at the capped rent. The trades that would happen at the market rent simply do not occur. Those forgone trades form a deadweight-loss triangle identical in structure to the tax case.

Price floors work the same way in reverse. A minimum wage above the market-clearing wage creates a labour surplus: workers willing to work at the minimum cannot find employment. The unemployed worker-hours are the base of a deadweight-loss triangle. The Congressional Budget Office's 2019 review of a $15 federal minimum wage estimated lost employment of 1.3 million workers, with deadweight loss of roughly $9 billion per year against gains for those who kept their jobs.

Tip

Price controls produce more deadweight loss in the long run than the short run. Supply elasticity rises over time as producers exit the market, retool, or build alternatives. Rent control's small initial DWL grows as landlords convert apartments to condos and developers stop building. New York's rent-stabilisation rules, in place since 1969, are the textbook long-run example.

Deadweight loss from monopoly

A monopolist sets price above marginal cost, restricting output to capture more producer surplus. The trades that would occur in a competitive market but do not occur under the monopoly form a deadweight-loss triangle. Modern estimates put US monopoly deadweight loss at 1-3% of GDP, higher than Harberger's original figure because the definition of market power has broadened.

The Federal Trade Commission and Department of Justice use deadweight loss as one criterion in antitrust enforcement, weighing the welfare cost of a merger against expected efficiency gains.

Deadweight loss vs tax revenue

Tax revenue is the transfer from buyers and sellers to the government. Deadweight loss is the welfare that disappears entirely. The ratio between them, the excess burden ratio, lets economists rank tax instruments by efficiency.

! Excess burden is not the only consideration

A tax with high excess burden may still be the right policy if it addresses an externality or distributes burden fairly. Carbon taxes have high DWL relative to revenue, but the social benefit from reduced emissions can outweigh it. Deadweight loss is one cost on a scorecard, not a final verdict.

The CBO reports excess burden ranges of 15-25% for broad sales taxes, 30-50% for personal income taxes, and 40-60% for corporate income taxes. Lump-sum taxes have an excess burden of zero by construction, which is why economists since Henry George have proposed land-value taxation as the most efficient revenue source.

Common deadweight loss mistakes

Confusing deadweight loss with tax revenue. Revenue is the transfer; DWL is the loss. The two come out of the same surplus pool, but they are not the same thing. A $1 billion tax that funds a project worth $1.5 billion is net positive even if its DWL is $100 million.

Assuming the triangle is linear at all scales. The formula assumes linear supply and demand over the relevant range. For very large taxes (50% or more), the elasticity-based form is more accurate: DWL grows as the square of the price change, not linearly.

Ignoring long-run elasticity. Short-run elasticities understate behavioural response. A gasoline tax may seem to generate little DWL in the first year, but five years out vehicle stock changes and the elasticity doubles or triples.

Treating monopoly DWL as the whole cost. Monopolies impose welfare losses beyond the static triangle: reduced innovation, captured regulators, distortion of complementary markets. Static DWL is a lower bound.

Forgetting general-equilibrium effects. A tax on one good shifts demand and supply in related markets. The deadweight loss measured in the taxed market may understate or overstate the total welfare cost once cross-market effects propagate.

FAQ

Deadweight loss is the value of mutually beneficial trades that fail to happen because of a tax, regulation or other market intervention. It is welfare that vanishes — neither buyers, sellers nor the government capture it. Arnold Harberger formalised the concept in 1954 by showing that the loss equals the area of a triangle on the supply-and-demand diagram, with the price wedge as height and the quantity drop as base.
The standard formula is DWL = 1/2 x dQ x dP, where dQ is the drop in quantity caused by the tax and dP is the per-unit price change. A $2 tax that reduces sales from 1,000 units to 800 generates DWL of 0.5 x 200 x $2 = $200. The formula assumes linear demand and supply curves over the relevant range.
A tax inserts a wedge between the price buyers pay and the price sellers receive. Some trades that would happen at the free-market price are not worth completing once the wedge is added. Those forgone trades represent value that nobody captures: not the buyer, not the seller, not the government. Lump-sum taxes (head taxes) are the only kind that avoid this loss.
Yes, and the relationship is quadratic. Doubling the tax rate roughly quadruples the deadweight loss because both the height (dP) and the base (dQ) of the Harberger triangle grow with the intervention. A small tax produces a small triangle; a large tax produces a disproportionately large one. This is why economists prefer many small taxes to one large one.
Elasticity sets the size of the quantity response. A tax on inelastic goods (insulin, gasoline, addictive products) creates little quantity drop and small DWL. A tax on elastic goods (luxuries, items with substitutes) creates large quantity drops and large DWL. Public finance economists call this the Ramsey rule: tax inelastic goods most heavily to minimise total deadweight loss.
Tax revenue is what the government collects (post-tax quantity times the per-unit tax). Deadweight loss is value destroyed on top of that transfer. Both come out of the surplus that buyers and sellers used to share. Revenue is a transfer; DWL is a loss. The ratio DWL divided by revenue (excess burden) lets economists compare taxes — values typically range from 15% (broad sales tax) to over 50% (corporate income tax).
Yes. A binding price ceiling (rent control, gasoline price caps) creates a shortage: buyers want more than sellers will supply at the capped price. The lost trades form a triangle identical in structure to the tax case. Price floors (minimum wage above market clearing) create surpluses with the same triangular loss. DWL appears whenever any intervention pushes price away from the market-clearing level.
Not necessarily. Some taxes correct externalities (carbon, tobacco) and the social benefit can outweigh the DWL. Other taxes fund public goods (defence, roads) where the alternative is worse. Deadweight loss is a cost to weigh, not a verdict. The relevant question is whether the value of what the revenue buys exceeds the DWL plus the revenue itself.
A monopolist restricts output to push price above marginal cost. The trades that would happen in a competitive market but do not happen under the monopoly form a deadweight-loss triangle. Harberger estimated US monopoly DWL at about 0.1% of GDP in 1954, much smaller than typical tax DWL. Modern estimates run higher, particularly for tech platforms and pharma.