Same way that consumer surplus is the area between demand and the price, its just that the demand curve is above the price, the producer surplus is the area between supply and the price its just that the supply curve is below the price. 