A change in volume (or pressure) can be seen as doing work and can be calculated with . If there is an increase in volume, then the gas must do work to the surrounding to overcome the atmospheric pressure (or other pressure), thus is negative as it loses energy for the expansion.