Deadweight loss is the economic inefficiency that occurs when the socially optimal quantity of a good or service is not produced or consumed. It represents the loss in total surplus, or societal well-being, that results from a market failure or government intervention in a market.