In a closed system, Boyle’s law applies as long as the gas volume and temperature stay constant. Under such circumstances, Boyle’s law’s inverse relationship dictates that any changes in the gas’s volume translate into corresponding changes in pressure. Boyle’s law, however, might not be able to anticipate the relationship between pressure and volume precisely if other variables, such as temperature or gas volume, alter.