We generalize the classic concept of compensating variation and the welfare compensation principle to a general equilibrium environment with distortionary taxes. We derive in closed-form the solution to the problem of designing a tax reform that compensates the welfare gains and losses induced by an arbitrary economic disruption. In partial equilibrium, average taxes simply increase or decrease to counteract the revenue gains or losses caused by the disruption. In general equilibrium, the compensation features three elements that depart from this benchmark and respectively account for (i) the incidence of the initial exogenous shock, and the fact that the tax reform itself induces indirect welfare effects caused by (ii) the non-constant mar...