The van der Waals equation improves upon the ideal gas law by accounting for the volume of the gas molecules and for the attractive forces present between the molecules.