Learn all about calculating the consumer surplus as an area in just a few minutes! Professor Jadrian Wooten of Penn State University walks through the process of calculating consumer surplus as an area.

The sum of individual consumer surpluses is the total consumer surplus, shown on a graph as the area below the market demand curve and above the market price.

Consumer surplus is the difference between how much a consumer is willing to pay for something and the actual price of that thing. It can be calculated as an area. A step diagram uses horizontal lines to represent intervals (steps): a range from one point to another point. By drawing a demand curve as a step diagram, each individual's consumer surplus (the area below a consumer's willingness to pay and above the market price) is also the area of a rectangle. Total consumer surplus is the sum of all individual consumer surpluses, so it is the total area below the market demand curve and above the market price.

The area of a rectangle is its base multiplied by its height. The base of Andrea's step is the additional number of cups she adds to the market ($1 - 0=1$). The height of her step is her willingness to pay minus the market price, which is two ($\$4 -\$2=\$2$). Andrea's consumer surplus is the base of her step times the height of her step: $\$2\times1=\$2$. For Brett, the base of his step is also one ($2-1=1$). The height of his step is one ($\$3 -\$2=\$1$). Brett's consumer surplus is $\$1\times1=\$1$. For Christy, her consumer surplus is $\$0.50\times 1=\$0.50$. Adding up the area of each rectangle gives the total consumer surplus: $\$2+\$1+\$0.50=\$3.50$. There is no surplus for Deb, Eddie, or Frank because the market price is above their willingness to pay, so they choose not to purchase coffee.
The demand curve can be drawn as a step diagram for a scenario involving only few potential consumers in the market. With a big market that has a large number of consumers in it, those individual steps will smooth out and we will have a demand curve that is a downward sloping line. Smoothing out data is done to show key patterns in data, without zeroing in on fine details.
The coffee market in the United States is a big market with a large number of consumers. It is estimated that half of the US population, around 150 million people, drink coffee. Americans consume 400 million cups of coffee per day, with an average price in a coffee shop of $2.38 per cup.
With a smoothed out demand curve because of the size of the market, the consumer surplus (the area below the demand curve and above the market price) is now the area of a triangle. More specifically, it is a right triangle, because two of the sides (the axes) form a right angle.
The area of a right triangle is $\left(1/2\right) \times b \times h$, where $b$ is the base of the triangle and $h$ is the height. The base of the triangle is 400 million. The height of the triangle is eight. In the example, the demand curve crosses the price axis at $10.00, and the price line is at $2.38, so the height is $\$10.00-\$2.38=\$7.62$. The consumer surplus in the example is thus $1.524 billion:

$\$1.524\;\text{billion per day}=\frac{1}{2}\times 400\;\text{million}\times\$7.62$