Deadweight Loss Calculator

Compute deadweight loss (excess burden) from a per-unit tax using linear demand & supply curves. Visualize the tax wedge, consumer/producer burden, and the Harberger triangle.

Positive number: slope = |ΔP/ΔQ| of demand curve.
Positive number (upward sloping supply).
Enter a positive value for tax, negative for subsidy (DWL shown as absolute).
? Cigarette Tax (inelastic demand, moderate supply)
⛽ Gasoline Tax (both inelastic)
? Luxury Tax (elastic demand & supply)
?️ Labor Tax (payroll tax scenario)
? Low Tax Scenario
Privacy assured: All calculations run locally in your browser. No data is uploaded or stored.

What Is Deadweight Loss? Economic Intuition

Deadweight loss (DWL) represents the efficiency cost of a market distortion — commonly a tax, subsidy, price ceiling, or floor. When a per-unit tax is imposed, it creates a wedge between the price consumers pay and the price producers receive, reducing the equilibrium quantity below the socially optimal level. The lost consumer and producer surplus that is not transferred to government revenue constitutes the excess burden or Harberger triangle. This calculator uses linear supply/demand curves to compute DWL precisely.

Deadweight Loss = ½ × t × (Q₀ − Qₜ)

where t = per-unit tax, Q₀ = original quantity, Qₜ = quantity after tax.

Formula derivation: DWL = ½ × tax × change in quantity, reflecting the triangular area between the demand and supply curves from the new quantity to the original equilibrium.

Model Assumptions & Linearity

The tool reconstructs linear demand: P = a - b·Q (b = demand slope absolute), and linear supply: P = c + d·Q (d = supply slope). Given initial equilibrium (P₀, Q₀) and slopes, intercepts are derived uniquely. After tax t: Pd = Ps + t; solving yields new quantity Qₜ, consumer price Pd, producer price Ps. Tax revenue = t·Qₜ, consumer burden = (Pd - P₀)·Qₜ, producer burden = (P₀ - Ps)·Qₜ. The deadweight loss is always non-negative and increases with the square of the tax rate.

Elasticity and DWL Magnitude

The size of DWL depends on price elasticities of demand and supply. More elastic curves → larger deadweight loss because quantity responds strongly to the tax wedge, creating a larger reduction in trade. Inelastic markets (e.g., essential goods) yield smaller DWL but higher tax revenue per unit. The calculator visually shows how the tax wedge shifts the equilibrium.

Market Type Demand / Supply Elasticity Deadweight Loss Tax Incidence
Cigarettes (short-run) Inelastic demand, elastic supply Moderate Mostly on consumers
Luxury yachts Elastic demand, elastic supply High Shared based on relative slopes
Labor (payroll tax) Relatively inelastic supply & demand Low-to-moderate Depends on elasticities
Gasoline (short-term) Inelastic both sides Small Mostly on consumers
Policy Case: Soda Tax (sugar-sweetened beverage tax)

Many cities impose a $0.01–0.02 per ounce tax. Using conservative estimates: initial price $1.80 per 20oz bottle, Q₀ = 500 units/day, demand slope 0.008, supply slope 0.005, tax $0.40 per bottle. DWL calculation shows a moderate loss compared to revenue, but health benefits may offset. The graph illustrates the reduction in consumption and the efficiency cost. Our tool enables “what-if” policy analysis.

Step-by-Step Calculation Process

  1. Input initial equilibrium price and quantity (pre-tax market clearing).
  2. Set demand slope (|ΔP/ΔQ|) — how steep the demand curve; higher slope = more inelastic.
  3. Set supply slope (ΔP/ΔQ) — reflects producer responsiveness.
  4. Define per-unit tax t. The model reconstructs full linear curves and computes new equilibrium.
  5. Outputs include DWL, tax revenue, post-tax prices, and the incidence split. The interactive graph displays the demand/supply lines, shaded deadweight loss triangle, and tax revenue rectangle.

Visualizing the Harberger Triangle

On the graph, the blue line is demand, orange line supply. After tax, the effective supply curve shifts upward by the tax amount (illustrated as a dashed line). The area between the demand and supply curves from Qₜ to Q₀ is shaded in red — that is the deadweight loss. The green rectangle between Pd and Ps over quantity Qₜ represents government tax revenue. The graph automatically scales to fit the relevant price and quantity ranges.

Common Misconceptions about Deadweight Loss

  • Myth: All taxes create large DWL. Fact: Inelastic markets have minimal DWL, but can still distort decisions in the long run.
  • Myth: Tax revenue is always larger than DWL. Fact: For very high taxes, DWL can exceed revenue (Laffer curve effects on quantity).
  • Myth: The side that legally pays the tax bears the burden. Fact: Statutory incidence differs from economic incidence; our tool shows true burden based on relative slopes.

Rigorous Economic Framework – This calculator implements standard microeconomic theory of excise taxation (based on Pindyck & Rubinfeld, "Microeconomics"; Mankiw "Principles of Economics"). It aligns with Harberger's classic welfare analysis. All formulas are peer-reviewed and consistent with linear approximation methods. Last updated: June 2026.

Frequently Asked Questions

If a curve is perfectly inelastic (vertical), quantity does not change, so there is no reduction in quantity, thus no deadweight loss – the tax is fully absorbed by the inelastic side with no efficiency loss.

Yes: enter a negative tax value (e.g., -2.00) to model a per-unit subsidy. The DWL will be shown as an absolute value, representing the efficiency loss from overproduction.

Zero slope means perfectly elastic (horizontal) curve. The calculator handles it, but ensure the slopes produce positive intercepts. For perfect elasticity, DWL may be very large because quantity responds sharply.

Linear models approximate well for small tax changes around equilibrium. For large taxes, curvature matters, but this tool remains pedagogically sound and widely used in introductory economics.
References: Harberger, A. C. (1964). "The Measurement of Waste"; Mankiw, N.G. (2021) "Principles of Economics"; Wolfram MathWorld: Deadweight Loss.