Consumer surplus is a measure of consumer welfare that represents the difference between what consumers are willing to pay for a good or service and what they actually pay. Consumer surplus is represented by the area under the demand curve and above the market price. An increase in supply costs leads to higher market prices and a reduction in consumer surplus, while an increase in market demand causes consumer surplus to rise. When demand is inelastic, consumer surplus is greater because some buyers are willing to pay high prices, but when demand is perfectly elastic, consumer surplus is zero as the price paid equals willingness to pay.