Boyle’s law, a relation concerning the compression and expansion of a gas at constant temperature. This empirical relation, formulated by the physicist Robert Boyle in 1662, states that the pressure of a given quantity of gas varies inversely with its volume at constant temperature.