On a supply-and-demand graph, consumer surplus is the triangle below the demand curve and above the market price. If you were willing to pay $10 for a book but buy it for $6, your personal surplus is $4. Adding this up across every buyer gives the total consumer surplus.