Consumer surplus is the value that consumers receive from an allocation minus what it costs them to obtain it. Consumer surplus is measured as the area under the demand curve minus the consumer’s cost. The cost to the consumer is the area
under the price line, bounded from the left by the vertical axis and the right by the quantity of the good. This rectangle, which captures price times quantity, represents consumer expenditure on this quantity of the good.