Deadweight Loss Calculator
How much economic value does a tax or price control destroy?
When a tax, subsidy, or price control shifts a market away from equilibrium, some surplus is destroyed entirely — not transferred, but gone. Enter the prices and quantities before and after the intervention to find that lost value.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Imagine a farmers market where buyers and sellers have already found a price both sides accept. Every transaction at that price makes both parties better off — buyers pay less than they would have been willing to, and sellers receive more than their minimum acceptable price. That gap between actual price and each side's reservation value is called surplus, and it accumulates across every trade made.
Now introduce a tax. The consumer pays more; the seller receives less. Some buyers whose reservation price sits between the old and new price simply walk away — those trades no longer happen. The surplus those transactions would have generated does not go to the tax collector; it is not redistributed anywhere. It is eliminated. That eliminated surplus is deadweight loss.
The same mechanism operates in reverse for subsidies pushing prices below equilibrium, or for price controls that cause markets to clear at non-equilibrium prices. Whenever a policy-driven wedge between buyer price and seller price prevents willing trades, the triangle of lost surplus appears. The size of that triangle depends on how much the price moved and how much the quantity responded — nothing else.
When To Use This
Right tool, right situation
Use this calculator when you have observed or estimated market data from before and after a policy change — a new excise tax, the introduction of a price floor or ceiling, a targeted subsidy, or a regulatory constraint that affects how many units a market clears. The result is most reliable when the market is reasonably competitive, the demand and supply curves are roughly linear in the observed range, and the quantity change is primarily driven by the price change rather than unrelated demand shocks occurring at the same time.
It is also appropriate for textbook and coursework problems where you are working with stylized linear supply and demand schedules. Policy analysts use this formula as a first-pass estimate before building full econometric models, because it requires only four data points and still captures the order of magnitude of efficiency costs correctly under linear assumptions.
Do not rely on this calculator when the market has strong non-linearities, when multiple simultaneous interventions make it impossible to isolate the quantity change due to price alone, or when the market exhibits significant externalities that the equilibrium price does not reflect. In those cases, the simple triangle formula understates or overstates the true welfare cost, and integration over the actual demand curve is necessary. It is also not the right tool for measuring distributional effects — who gains and who loses — because it aggregates all surplus changes into a single net number.
Common Mistakes
Why results sometimes look wrong
Using the price change before taking the absolute value. When an intervention lowers price — a subsidy, a price ceiling, or a demand-side shock — the raw price change is negative. Forgetting to take the absolute value produces a negative deadweight loss, which is meaningless. Efficiency losses are always non-negative: the worst a market can do is break even at zero loss, never generate negative loss. Always work with magnitudes.
Confusing tax revenue with deadweight loss. The total welfare effect of a tax has two components: the transfer (tax revenue collected, which moves from consumers to government) and the loss (deadweight loss, which moves nowhere). Many students and even some practitioners confuse the full area of the price-change rectangle with the loss triangle. Tax revenue is the rectangle; deadweight loss is the smaller triangle cut off at the corner where demand and supply curves diverge. This tool calculates only the triangle.
Entering quantity in inconsistent units before and after. If original quantity is measured in barrels per day and new quantity is measured in total barrels per year, the quantity change is meaningless and the resulting deadweight loss will be wrong by orders of magnitude. Both quantities must reflect the same time period, same market, and same unit of measure. This is the most common data-entry error when working from real policy documents that report pre- and post-intervention figures in different formats.
The Math
Worked examples and deeper derivation
The formula derives from a single geometric observation: plot price on the vertical axis and quantity on the horizontal axis. The equilibrium is a point. After the intervention, the market settles at a new price and new quantity. Connect those two points with the supply and demand curves and you have a triangle whose three vertices are the original equilibrium, the new price-quantity combination on each curve. The area of that triangle is the deadweight loss.
Area of a triangle = 0.5 × base × height. The base of the deadweight loss triangle is the quantity reduction: |200 units| units in the example. The height is the price change: |$2.00|. Multiplying: DWL = 0.5 × |price change| × |quantity change|, which gives $200.00 for the example inputs.
The absolute value signs in the formula ensure the calculation works regardless of intervention direction. A tax raises consumer price and lowers quantity — both changes are positive losses when expressed as magnitude. A subsidy lowers price and may raise quantity beyond equilibrium — the magnitude of the overshoot still creates a triangle of wasted surplus. The formula treats both identically because the geometry is symmetric: a triangle defined by two points and an origin has the same area formula whether those points sit above or below the origin.
Expert Unlock
The thing most explanations skip
The triangle formula assumes linear supply and demand over the relevant range, which means it systematically underestimates deadweight loss when curves are convex to the origin (typical of demand curves with constant elasticity). For large price changes — say, a tax that doubles the market price — the true loss region is closer to a curved segment than a straight-sided triangle, and the underestimate can be substantial. Economists working with constant-elasticity demand use the Harberger formula, which incorporates price elasticity directly and does not require observed quantity data.
A second limitation is the partial-equilibrium framing: this formula treats the taxed market in isolation. When the taxed good has close substitutes, the intervention creates additional deadweight loss in adjacent markets as consumers shift spending — losses this tool does not capture. General-equilibrium analysis is required to measure the full efficiency cost of broad interventions like income taxes or economy-wide carbon prices.
Why does my deadweight loss come out higher than the tax revenue collected?
Deadweight loss is the economic value permanently destroyed when a market intervention prevents trades that would have benefited both buyer and seller. Unlike tax revenue — which transfers value from consumers to the government — deadweight loss is surplus that vanishes entirely, benefiting no one.
It matters for policy analysis because it represents the hidden cost of intervention beyond the intended redistribution. A tax that raises revenue equal to its deadweight loss is twice as costly to society as the budget line suggests: every dollar collected destroys an additional dollar of value that simply disappears.
The 0.5 factor comes directly from the geometry of the loss: on a standard supply-and-demand diagram, the destroyed surplus takes the shape of a triangle, and the area of a triangle is always one-half times base times height. The base of that triangle is the quantity reduction and the height is the price change.
This triangular shape arises because supply and demand curves slope — as price rises, consumers with lower willingness-to-pay drop out one by one rather than all at once. The last unit lost before the intervention was barely worth trading; the first unit lost after the intervention imposed the smallest cost. That graduated dropout is what creates the triangular, not rectangular, region of lost surplus.
Yes — deadweight loss equals zero when an intervention changes price but causes no change in quantity traded, as the third verification case shows. This happens when demand or supply is perfectly inelastic: buyers or sellers have no ability to reduce transactions in response to the price shift.
In practice, perfectly inelastic markets are rare but approximated in cases like life-saving medications or essential utilities with no substitutes. Policymakers targeting these markets can raise significant revenue with minimal efficiency loss — though distributional consequences (who bears the price burden) remain a separate concern this tool does not address.
Need something this doesn't cover?
Suggest a tool — we'll build it →