On an individual business level, producer surplus can be calculated using the formula: Producer surplus = total revenue – total cost. On a macro level, we need to calculate the area beneath the price and above the supply curve. This is similar as to how you would calculate the area of a triangle: