Following the ideal gas law PV = nRT, and changing it in terms of temperature, we get T = PV/nR. When volume of a sample of an ideal gas to double when the pressure of the sample remains the same, the temperature doubles because temperature is directly proportional with pressure and volume.