In economics, economic surplus is calculated as the sum of producer surplus and consumer surplus. It is mainly the gain that producers and consumers make when they sell or buy goods/ services.