Consumer surplus is the difference between the average price a consumer pays for a good and the price they would be willing to pay for the last unit of the goods, while producer surplus is the difference between the average price a producer receives for a good and the price they would be willing to accept for the last unit of the goods.