What is customer surplus?

Customer surplus is the difference between the amount a customer is willing to pay for a good or service and the amount they actually pay. It is a measure of consumer benefit and is used to measure the economic welfare of a market.